[php-maint] Packaging php with fpm (5.2.10) - karmic

dreamcat four dreamcat4 at gmail.com
Thu Aug 6 00:29:13 UTC 2009


On Thu, Aug 6, 2009 at 12:25 AM, dreamcat four<dreamcat4 at gmail.com> wrote:
> Really aught to get this fixed then. Perhaps the fpm patch interferes somehow.
> Certainly the patch 100-recode_is_shared.patch is applied.

Most helpful was this thread:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443637

An entry in the changelog says:

 [ Steve Langasek ]
  * Don't patch configure or php_config.h.in in suhosin.patch, as these are
    auto-generated and including them in the patch results in a race
    condition for the necessary build-time regeneration.  Thanks to Daniel
    Schepler for reporting, and to Damyan Ivanov for helping to sort out the
    fix.  Closes: #443637.

The attachment shows which patches are being applied. I added only one
patch which is the official fpm patch. It does indeed alter
'main/php_config.h.in', and './configure.in'. Same problem all over
again. We can in the build logs:

Build log1: Successful
=================
<patches being applied>
Now at patch php-5.2.10-fpm-0.5.13.patch
touch debian/stamp-patched
dh_testdir
sed -i -e 's/EXTRA_VERSION=""/EXTRA_VERSION="-1ubuntu2"/' configure.in
./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.63 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
          Running cvsclean for you.
          To avoid this, install autoconf-2.13.
rebuilding aclocal.m4
rebuilding configure
aclocal.m4:2099: PHP_PROG_LEX is expanded from...



Build log 2: (presumably race condition)
=============================
<patches being applied>
Now at patch php-5.2.10-fpm-0.5.13.patch
touch debian/stamp-patched
dh_testdir
sed -i -e 's/EXTRA_VERSION=""/EXTRA_VERSION="-1ubuntu2"/' configure.in
./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.64 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
          Running cvsclean for you.
          To avoid this, install autoconf-2.13.
rebuilding aclocal.m4
touch prepared-stamp
dh_testdir
if [ -d apache2-build ]; then rm -rf apache2-build; fi
mkdir apache2-build
cd apache2-build && \
       CFLAGS="-g -O2 -O2 -Wall -fsigned-char -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -gstabs"
PROG_SENDMAIL="/usr/sbin/sendmail" ../configure \
               --build=i686-linux-gnulp --host=i686-linux-gnulp
--mandir=/usr/share/man --disable-debug --with-regex=php
--disable-rpath --disable-static --with-pic --with-layout=GNU
--with-pear=/usr/share/php --enable-calendar --enable-sysvsem
--enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2
--enable-ctype --with-db4 --without-gdbm --with-iconv --enable-exif
--enable-ftp --with-gettext --enable-mbstring --with-pcre-regex=/usr
--enable-shmop --enable-sockets --enable-wddx --with-libxml-dir=/usr
--with-zlib --with-kerberos=/usr --with-openssl=/usr --enable-soap
--enable-zip --with-mime-magic=/usr/share/file/magic.mime
--with-exec-dir=/usr/lib/php5/libexec --with-system-tzdata \
               --prefix=/usr --without-mm --with-curl=shared,/usr
--with-zlib-dir=/usr --with-gd=shared,/usr --enable-gd-native-ttf
--with-gmp=shared,/usr --with-jpeg-dir=shared,/usr
--with-xpm-dir=shared,/usr/X11R6 --with-png-dir=shared,/usr
--with-freetype-dir=shared,/usr --with-ttf=shared,/usr
--with-t1lib=shared,/usr --with-ldap=shared,/usr --with-ldap-sasl=/usr
--with-mhash=shared,/usr --with-recode=shared,/usr
--with-mysql=shared,/usr --with-mysqli=shared,/usr/bin/mysql_config
--with-pspell=shared,/usr --with-unixODBC=shared,/usr
--with-xsl=shared,/usr --with-snmp=shared,/usr
--with-sqlite=shared,/usr --with-mssql=shared,/usr
--with-tidy=shared,/usr --with-xmlrpc=shared --with-pgsql=shared,/usr
PGSQL_INCLUDE=`pg_config --includedir` --enable-pdo=shared
--without-pdo-dblib --with-pdo-mysql=shared,/usr
--with-pdo-odbc=shared,unixODBC,/usr
--with-pdo-pgsql=shared,/usr/bin/pg_config
--with-pdo-sqlite=shared,/usr --with-pdo-dblib=shared,/usr \
               --with-apxs2=/usr/bin/apxs2 \
               --with-config-file-path=/etc/php5/apache2 \
               --with-config-file-scan-dir=/etc/php5/apache2/conf.d
configure: warning: PGSQL_INCLUDE=/usr/include/postgresql: invalid host type
creating cache ./config.cache
checking for Cygwin environment... no
.....
<recode error>



Personally Im still unsure how to tackle this as there seem several approaches.


dreamcat4
dreamcat4 at gmail.com
-------------- next part --------------
 debian/rules build
# quilt exits with 2 as return when there was nothing to do. 
# That's not an error here (but it's useful to break loops in crude scripts)
QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null push -a || test $? = 2
Applying patch 001-libtool_fixes.patch
patching file TSRM/configure.in
patching file configure.in

Applying patch 002-static_openssl.patch
patching file acinclude.m4

Applying patch 004-ldap_fix.patch
patching file ext/ldap/ldap.c

Applying patch 006-debian_quirks.patch
patching file configure.in
patching file ext/ext_skel
patching file ext/session/session.c
patching file php.ini-dist
patching file php.ini-recommended
patching file sapi/caudium/config.m4
patching file sapi/cli/php.1.in
patching file scripts/Makefile.frag
patching file scripts/php-config.in
patching file scripts/phpize.in

Applying patch libtool2.2.patch
patching file scripts/phpize.in

Applying patch 013-force_getaddrinfo.patch
patching file configure.in

Applying patch 017-pread_pwrite_disable.patch
patching file acinclude.m4

Applying patch 019-z_off_t_as_long.patch
patching file ext/zlib/zconf.h
patching file ext/zlib/zlib.h

Applying patch 029-php.ini_paranoid.patch
patching file php.ini-paranoid

Applying patch 034-apache2_umask_fix.patch
patching file sapi/apache2handler/sapi_apache2.c

Applying patch 036-fd_setsize_fix.patch
patching file ext/sockets/sockets.c
patching file ext/standard/streamsfuncs.c

Applying patch 043-recode_size_t.patch
patching file ext/recode/recode.c

Applying patch 044-strtod_arm_fix.patch
patching file Zend/zend_strtod.c

Applying patch 045-exif_nesting_level.patch
patching file ext/exif/exif.c

Applying patch 047-zts_with_dl.patch
patching file ext/standard/dl.c

Applying patch 052-phpinfo_no_configure.patch
patching file ext/standard/info.c
patching file ext/standard/tests/general_functions/phpinfo.phpt

Applying patch 053-extension_api.patch
patching file configure.in
patching file scripts/php-config.in

Applying patch 056-mime_magic_liberal.patch
patching file ext/mime_magic/mime_magic.c

Applying patch 057-no_apache_installed.patch
patching file sapi/apache2handler/config.m4
patching file sapi/apache/config.m4
patching file sapi/apache2filter/config.m4
patching file sapi/apache_hooks/config.m4

Applying patch 100-recode_is_shared.patch
patching file ext/recode/config9.m4

Applying patch 101-sqlite_is_shared.patch
patching file ext/sqlite/config.m4

Applying patch 107-reflection_is_ext.patch
patching file ext/reflection/config.m4

Applying patch 108-64_bit_datetime.patch
patching file ext/standard/datetime.c

Applying patch 112-proc_open.patch
patching file ext/standard/proc_open.c

Applying patch 113-php.ini_securitynotes.patch
patching file php.ini-dist

Applying patch disable_dl_by_default.patch
patching file php.ini-dist
patching file php.ini-recommended

Applying patch libdb_is_-ldb
patching file ext/dba/config.m4

Applying patch suhosin.patch
patching file TSRM/TSRM.h
patching file TSRM/tsrm_virtual_cwd.c
patching file TSRM/tsrm_virtual_cwd.h
patching file Zend/Makefile.am
patching file Zend/Zend.dsp
patching file Zend/ZendTS.dsp
patching file Zend/zend.c
patching file Zend/zend.h
patching file Zend/zend_alloc.c
patching file Zend/zend_alloc.h
patching file Zend/zend_canary.c
patching file Zend/zend_compile.c
patching file Zend/zend_compile.h
patching file Zend/zend_constants.c
patching file Zend/zend_errors.h
patching file Zend/zend_hash.c
patching file Zend/zend_llist.c
patching file configure.in
patching file ext/standard/basic_functions.c
patching file ext/standard/dl.c
patching file ext/standard/file.c
patching file ext/standard/file.h
patching file ext/standard/info.c
patching file ext/standard/syslog.c
patching file main/fopen_wrappers.c
patching file main/main.c
patching file main/php.h
patching file main/php_config.h.in
patching file main/php_logos.c
patching file main/snprintf.c
patching file main/spprintf.c
patching file main/suhosin_globals.h
patching file main/suhosin_logo.h
patching file main/suhosin_patch.c
patching file main/suhosin_patch.h
patching file main/suhosin_patch.m4
patching file sapi/apache/mod_php5.c
patching file sapi/apache2filter/sapi_apache2.c
patching file sapi/apache2handler/sapi_apache2.c
patching file sapi/cgi/cgi_main.c
patching file sapi/cli/php_cli.c
patching file win32/build/config.w32

Applying patch fix_broken_upstream_tests.patch
patching file ext/soap/tests/server009.phpt
patching file ext/standard/tests/general_functions/phpinfo.phpt
patching file ext/standard/tests/strings/moneyformat.phpt

Applying patch use_embedded_timezonedb.patch
patching file ext/date/lib/parse_tz.c
patching file ext/date/lib/timelib.h
patching file ext/date/lib/timelib.m4
patching file ext/date/php_date.c

Applying patch manpage_spelling.patch
patching file sapi/cli/php.1.in

Applying patch force_libmysqlclient_r.patch
patching file ext/mysql/config.m4
patching file ext/mysqli/config.m4
patching file ext/pdo_mysql/config.m4

Applying patch 119-sybase-alias.patch
patching file ext/mssql/php_mssql.c

Applying patch libedit_is_editline.patch
patching file ext/readline/config.m4
patching file ext/readline/readline.c
patching file sapi/cli/php_cli.c
patching file sapi/cli/php_cli_readline.c

Applying patch bad_whatis_entries.patch
patching file sapi/cli/php.1.in
patching file scripts/man1/php-config.1.in
patching file scripts/man1/phpize.1.in

Applying patch fix-autoconf-ftbfs.patch
patching file ext/posix/posix.c
Hunk #1 succeeded at 18 with fuzz 2.

Applying patch curl_streams_sleep.patch
patching file ext/curl/streams.c

Applying patch gentoo/006_ext-curl-set_opt-crash.patch
patching file ext/curl/interface.c

Applying patch gentoo/009_ob-memory-leaks.patch
patching file main/output.c

Applying patch php-5.2.10-fpm-0.5.13.patch
patching file configure
patching file configure.in
Hunk #1 succeeded at 303 (offset 1 line).
Hunk #2 succeeded at 526 (offset 1 line).
Hunk #3 succeeded at 1268 (offset 7 lines).
Hunk #4 succeeded at 1379 (offset 4 lines).
patching file libevent/aclocal.m4
patching file libevent/autogen.sh
patching file libevent/buffer.c
patching file libevent/ChangeLog
patching file libevent/compat/sys/queue.h
patching file libevent/compat/sys/_time.h
patching file libevent/config.h.in
patching file libevent/configure
patching file libevent/configure.in
patching file libevent/depcomp
patching file libevent/devpoll.c
patching file libevent/epoll.c
patching file libevent/epoll_sub.c
patching file libevent/evbuffer.c
patching file libevent/event.3
patching file libevent/event.c
patching file libevent/event-config.h
patching file libevent/event-fpm.h
patching file libevent/event.h
patching file libevent/event-internal.h
patching file libevent/evhttp.h
patching file libevent/evport.c
patching file libevent/evsignal.h
patching file libevent/evutil.c
patching file libevent/evutil.h
patching file libevent/http.c
patching file libevent/http-internal.h
patching file libevent/install-sh
patching file libevent/kqueue.c
patching file libevent/log.c
patching file libevent/log.h
patching file libevent/Makefile.am
patching file libevent/Makefile.in
patching file libevent/min_heap.h
patching file libevent/missing
patching file libevent/poll.c
patching file libevent/README
patching file libevent/select.c
patching file libevent/signal.c
patching file libevent/strlcpy.c
patching file libevent/strlcpy-internal.h
patching file main/php_config.h.in
Hunk #2 succeeded at 941 (offset 3 lines).
Hunk #3 succeeded at 953 (offset 3 lines).
patching file sapi/cgi/cgi_main.c
Hunk #19 succeeded at 2114 (offset 8 lines).
Hunk #20 succeeded at 2170 (offset 8 lines).
Hunk #21 succeeded at 2187 (offset 8 lines).
Hunk #22 succeeded at 2234 (offset 8 lines).
patching file sapi/cgi/config9.m4
patching file sapi/cgi/fastcgi.c
patching file sapi/cgi/fastcgi.h
patching file sapi/cgi/fpm/acinclude.m4
patching file sapi/cgi/fpm/conf/php-fpm.conf.in
patching file sapi/cgi/fpm/config.m4
patching file sapi/cgi/fpm/fpm_arrays.h
patching file sapi/cgi/fpm/fpm_atomic.h
patching file sapi/cgi/fpm/fpm_autoconf.h.in
patching file sapi/cgi/fpm/fpm.c
patching file sapi/cgi/fpm/fpm_children.c
patching file sapi/cgi/fpm/fpm_children.h
patching file sapi/cgi/fpm/fpm_cleanup.c
patching file sapi/cgi/fpm/fpm_cleanup.h
patching file sapi/cgi/fpm/fpm_clock.c
patching file sapi/cgi/fpm/fpm_clock.h
patching file sapi/cgi/fpm/fpm_conf.c
patching file sapi/cgi/fpm/fpm_conf.h
patching file sapi/cgi/fpm/fpm_config.h
patching file sapi/cgi/fpm/fpm_env.c
patching file sapi/cgi/fpm/fpm_env.h
patching file sapi/cgi/fpm/fpm_events.c
patching file sapi/cgi/fpm/fpm_events.h
patching file sapi/cgi/fpm/fpm.h
patching file sapi/cgi/fpm/fpm_php.c
patching file sapi/cgi/fpm/fpm_php.h
patching file sapi/cgi/fpm/fpm_php_trace.c
patching file sapi/cgi/fpm/fpm_php_trace.h
patching file sapi/cgi/fpm/fpm_process_ctl.c
patching file sapi/cgi/fpm/fpm_process_ctl.h
patching file sapi/cgi/fpm/fpm_request.c
patching file sapi/cgi/fpm/fpm_request.h
patching file sapi/cgi/fpm/fpm_shm.c
patching file sapi/cgi/fpm/fpm_shm.h
patching file sapi/cgi/fpm/fpm_shm_slots.c
patching file sapi/cgi/fpm/fpm_shm_slots.h
patching file sapi/cgi/fpm/fpm_signals.c
patching file sapi/cgi/fpm/fpm_signals.h
patching file sapi/cgi/fpm/fpm_sockets.c
patching file sapi/cgi/fpm/fpm_sockets.h
patching file sapi/cgi/fpm/fpm_stdio.c
patching file sapi/cgi/fpm/fpm_stdio.h
patching file sapi/cgi/fpm/fpm_str.h
patching file sapi/cgi/fpm/fpm_trace.c
patching file sapi/cgi/fpm/fpm_trace.h
patching file sapi/cgi/fpm/fpm_trace_mach.c
patching file sapi/cgi/fpm/fpm_trace_pread.c
patching file sapi/cgi/fpm/fpm_trace_ptrace.c
patching file sapi/cgi/fpm/fpm_unix.c
patching file sapi/cgi/fpm/fpm_unix.h
patching file sapi/cgi/fpm/fpm_worker_pool.c
patching file sapi/cgi/fpm/fpm_worker_pool.h
patching file sapi/cgi/fpm/init.d/php-fpm.in
patching file sapi/cgi/fpm/Makefile.frag
patching file sapi/cgi/fpm/xml_config.c
patching file sapi/cgi/fpm/xml_config.h
patching file sapi/cgi/fpm/zlog.c
patching file sapi/cgi/fpm/zlog.h
patching file sapi/cgi/Makefile.frag

Now at patch php-5.2.10-fpm-0.5.13.patch


More information about the pkg-php-maint mailing list