Comment 10 for bug 397721

Revision history for this message
Stas Sușcov (sushkov) wrote : Re: [Bug 397721] Re: [needs-packaging] php-fpm

On Mon, 2009-08-03 at 10:02 +0000, dreamcat4 wrote:
> On Sun, Aug 2, 2009 at 4:19 AM, Stas Sușcov<email address hidden> wrote:
> > The package fails to build cause there are patches which require
> > `./buildconf --force` thus modifying the upstream `./configure` and
> > `main/php_config.h.in` files which needs patching by php-fpm.
>
> You can modify the rules file from:
>
> unprepared:
> dh_testdir
> sed -i -e 's/EXTRA_VERSION="-$(PHP5_DEBIAN_REVISION)"/EXTRA_VERSION=""/'
> configure.in
> rm -f configure aclocal.m4 config.sub config.guess
> rm -f main/php_config.h.in
> rm -f configure aclocal.m4 config.sub config.guess
> rm -f main/php_config.h.in
>
> to:
>
> unprepared:
> dh_testdir
> sed -i -e 's/EXTRA_VERSION="-$(PHP5_DEBIAN_REVISION)"/EXTRA_VERSION=""/'
> configure.in
> rm -f configure aclocal.m4 config.sub config.guess
> rm -f main/php_config.h.in
> rm -f aclocal.m4 config.sub config.guess
> rm -f prepared-stamp
>
> and that prevents the './configure' and 'main/php_config.in' files
> from being deleted. Patching then proceeds okay. Im not sure yet if
> there's any harm in keeping these files, but when I do the next patch
> file I shall report the result.
>
> These suggestion can be browsed online at github:
> http://github.com/dreamcat4/php5-fpm-ubuntu/commits/php5_5.2.6.dfsg.1-3ubuntu4.1/

You might be interested to read the log file of my build:
http://launchpadlibrarian.net/29787634/buildlog_ubuntu-hardy-i386.php5_5.2.4-2ubuntu5.7_FAILEDTOBUILD.txt.gz
Getting solved the patching problem is the easiest part.

The package won't compile with the current ./configure, so you'll need
to ./buildconf --force anyway. From that point you won't be able to
apply fpm patch to./configure.

I would say that the package should be build apart from current php5
with only security and fcgi specific patches.
The problem here is that on the official webpage, it is not documented
what exactly (from php5) fpm requires to run, I doubt it requires the
whole php to be reinstalled on the target system.

>
--
() Campania Panglicii în ASCII
/\ http://stas.nerd.ro/ascii/