Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281697 - dev-lang/php-5.2.10-r1 fails with autoconf-2.64 due to change in diversion behavior
Summary: dev-lang/php-5.2.10-r1 fails with autoconf-2.64 due to change in diversion be...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL: http://lists.gnu.org/archive/html/bug...
Whiteboard:
Keywords:
Depends on:
Blocks: autoconf-2.64
  Show dependency tree
 
Reported: 2009-08-16 18:03 UTC by SpanKY
Modified: 2011-03-12 10:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
aclocal log (aclocal.out,2.44 KB, text/plain)
2009-08-16 18:04 UTC, SpanKY
Details
autoheader log (autoheader.out,2.93 KB, text/plain)
2009-08-16 18:04 UTC, SpanKY
Details
autoconf log (autoconf.out,2.22 KB, text/plain)
2009-08-16 18:04 UTC, SpanKY
Details
libtoolize log (libtoolize.out,563 bytes, text/plain)
2009-08-16 18:04 UTC, SpanKY
Details
patch for the build problem (php-divert.patch,1.76 KB, patch)
2009-10-29 23:47 UTC, Rafał Mużyło
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2009-08-16 18:03:24 UTC
>>> Emerging (1 of 317) dev-lang/php-5.2.10-r1
 * Determining SAPI(s) to build
 *   Enabled  SAPI: cli
 *   Enabled  SAPI: cgi
 *   Enabled  SAPI: apache2
>>> Unpacking source...
>>> Unpacking php-5.2.10.tar.bz2 to /var/tmp/portage/dev-lang/php-5.2.10-r1/work
>>> Unpacking php-patchset-5.2.10-r1.tar.bz2 to /var/tmp/portage/dev-lang/php-5.2.10-r1/work
 * Applying multilib-search-path.patch ...                               [ ok ]
 * Applying various patches (bugfixes/updates) ...
 *   enable-getopt-long.patch ...                                        [ ok ]
 *   imap-symlink.patch ...                                              [ ok ]
 *   iodbc-config.patch ...                                              [ ok ]
 *   ldap--as-needed.patch ...                                           [ ok ]
 *   mysql-charsetphpini.patch ...                                       [ ok ]
 *   mysqli-charsetphpini.patch ...                                      [ ok ]
 *   pdo_mysql-charsetphpini.patch ...                                   [ ok ]
 *   prefork-peruser-itk.patch ...                                       [ ok ]
 *   with-iodbc.patch ...                                                [ ok ]
 * Done with patching
 * Applying various patches (bugfixes/updates) ...
 *   001_tests-ignore-php-ini.patch ...                                  [ ok ]
 *   002_interbase-precision-fix.patch ...                               [ ok ]
 *   003_curl-fix-regression.patch ...                                   [ ok ]
 * Done with patching
 * Running eautoreconf in '/var/tmp/portage/dev-lang/php-5.2.10-r1/work/php-5.2.10' ...
 * Running aclocal ...                                                   [ ok ]
 * Running libtoolize --copy --force --install ...                       [ ok ]
 * Running aclocal ...                                                   [ ok ]
 * Running autoconf ...                                                  [ ok ]
 * Running autoheader ...                                                [ ok ]
 * Running elibtoolize in: php-5.2.10
 *   Applying sed-1.5.6.patch ...
 * Running elibtoolize in: php-5.2.10/ext/pdo_sqlite/sqlite
 *   Applying install-sh-1.5.patch ...
 *   Applying portage-1.5.10.patch ...
 *   Applying max_cmd_len-1.5.20.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-1.5.patch ...
rm: cannot remove `tests/lang/bug45392.phpt': No such file or directory
>>> Source unpacked in /var/tmp/portage/dev-lang/php-5.2.10-r1/work
>>> Compiling source in /var/tmp/portage/dev-lang/php-5.2.10-r1/work/php-5.2.10 ...
 *   Enabling pcre-regex
 *   Disabling bcmath
 *   Enabling bz2
 *   Disabling calendar
 *   Enabling ctype
 *   Enabling curl
 *   Disabling curlwrappers
 *   Disabling dbase
 *   Enabling dom
 *   Enabling exif
 *   Disabling fbsql
 *   Disabling fdftk
 *   Disabling filter
 *   Enabling ftp
 *   Enabling gettext
 *   Enabling gmp
 *   Disabling hash
 *   Enabling iconv
 *   Enabling ipv6
 *   Disabling json
 *   Disabling kerberos
 *   Enabling libxml
 *   Enabling mbstring
 *   Enabling mcrypt
 *   Disabling mhash
 *   Disabling msql
 *   Disabling mssql
 *   Enabling ncurses
 *   Enabling openssl
 *   Enabling openssl-dir
 *   Disabling pcntl
 *   Enabling pcre-regex
 *   Disabling pdo
 *   Enabling pgsql
 *   Disabling posix
 *   Enabling pspell
 *   Disabling recode
 *   Enabling reflection
 *   Disabling simplexml
 *   Disabling shmop
 *   Enabling snmp
 *   Disabling soap
 *   Enabling sockets
 *   Enabling spl
 *   Disabling sybase
 *   Disabling sybase-ct
 *   Disabling sysvmsg
 *   Disabling sysvsem
 *   Disabling sysvshm
 *   Disabling tidy
 *   Disabling tokenizer
 *   Disabling wddx
 *   Enabling xml
 *   Disabling xmlreader
 *   Disabling xmlwriter
 *   Disabling xmlrpc
 *   Disabling xsl
 *   Enabling zip
 *   Enabling zlib
 *   Disabling debug
 *   Disabling cdb
 *   Enabling db4
 *   Disabling flatfile
 *   Disabling gdbm
 *   Disabling inifile
 *   Disabling qdbm
 *   Enabling freetype-dir
 *   Enabling t1lib
 *   Disabling gd-jis-conv
 *   Enabling jpeg-dir
 *   Enabling png-dir
 *   Enabling xpm-dir
 *   Enabling gd
 *   Enabling imap
 *   Enabling imap-ssl
 *   Enabling mysql
 *   Enabling mysql-sock
 *   Disabling mysqli
 *   Enabling readline
 *   Disabling libedit
 *   Disabling mm
 *   Enabling sqlite
 *   Enabling sqlite-utf8
 * Enabling PIC support
cat: confdefs.h: No such file or directory
./configure: line 410: ac_fn_c_try_run: command not found
./configure: line 426: 5: Bad file descriptor
./configure: line 427: 6: Bad file descriptor
cat: confdefs.h: No such file or directory
./configure: line 466: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
./configure: line 466: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
./configure: line 466: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
./configure: line 466: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
./configure: line 466: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
./configure: line 466: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
./configure: line 466: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
./configure: line 466: ac_fn_c_try_run: command not found
./configure: line 489: 5: Bad file descriptor
./configure: line 490: 6: Bad file descriptor
./configure: line 492: 5: Bad file descriptor
./configure: line 493: 6: Bad file descriptor
cat: confdefs.h: No such file or directory
./configure: line 532: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
./configure: line 532: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
./configure: line 532: ac_fn_c_try_run: command not found
./configure: line 554: 5: Bad file descriptor
./configure: line 555: 6: Bad file descriptor
./configure: line 630: 5: Bad file descriptor
./configure: line 631: 6: Bad file descriptor
./configure: line 632: 5: Bad file descriptor
./configure: line 633: 6: Bad file descriptor
./configure: line 663: 5: Bad file descriptor
..... goes on like this forever until i CTRL+C .....



Portage 2.2_rc38 (default/linux/amd64/2008.0/developer, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30.3 x86_64)
=================================================================                                   
System uname: Linux-2.6.30.3-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.1
Timestamp of tree: Sat, 15 Aug 2009 04:00:01 +0000                                                  
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                           
ccache version 2.4 [enabled]                                                                        
app-shells/bash:     4.0_p28                                                                        
dev-java/java-config: 1.3.7-r1, 2.1.8-r1                                                            
dev-lang/python:     2.6.2-r1, 3.1                                                                  
dev-python/pycrypto: 2.0.1-r8                                                                       
dev-util/ccache:     2.4-r8                                                                         
dev-util/cmake:      2.6.4                                                                          
sys-apps/baselayout: 2.0.1                                                                          
sys-apps/openrc:     0.4.3-r3                                                                       
sys-apps/sandbox:    2.0                                                                            
sys-devel/autoconf:  2.13, 2.64                                                                     
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                 
sys-devel/binutils:  2.15.92.0.2-r10, 2.16-r1, 2.16.1, 2.16.1-r3, 2.16.90.0.3, 2.16.91.0.1, 2.16.91.0.2, 2.16.91.0.3, 2.16.91.0.4, 2.16.91.0.5, 2.16.91.0.6, 2.16.91.0.7, 2.16.92, 2.16.93, 2.16.94, 2.17-r1, 2.17.50.0.2, 2.17.50.0.3, 2.17.50.0.4, 2.17.50.0.5, 2.17.50.0.6, 2.17.50.0.7, 2.17.50.0.8, 2.17.50.0.9, 2.17.50.0.10, 2.17.50.0.11, 2.17.50.0.12, 2.17.50.0.13, 2.17.50.0.14, 2.17.50.0.15, 2.17.50.0.16, 2.17.50.0.17, 2.17.50.0.18, 2.18-r2, 2.18.50.0.1, 2.18.50.0.2, 2.18.50.0.3, 2.18.50.0.4, 2.18.50.0.5, 2.18.50.0.6, 2.18.50.0.7, 2.18.50.0.8, 2.18.50.0.9, 2.19, 2.19.1-r1, 2.19.50.0.1, 2.19.51.0.1, 2.19.51.0.2, 2.19.51.0.3, 2.19.51.0.4, 2.19.51.0.5, 2.19.51.0.6, 2.19.51.0.10, 2.19.51.0.11, 2.19.51.0.12, 2.19.51.0.14                                                                                                                                      
sys-devel/gcc-config: 1.4.1                                                                                                                    
sys-devel/libtool:   2.2.6a                                                                                                                    
virtual/os-headers:  2.6.30-r1                                                                                                                 
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                                                 
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -g -Wimplicit-function-declaration"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CPPFLAGS="-DCPPFLAGS_TEST"
CXXFLAGS="-O2 -march=k8 -pipe -g"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="assume-digests buildsyspkg ccache collision-protect cvs distlocks fixpackages multilib-strict noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,-z,relro"
LINGUAS="en en_US de"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/src/gentoo/overlays/vapier/enlightenment"
SYNC="rsync://gentoo/gentoo-portage"
USE="3dnow X a52 aac aalib accessibility acl acpi adns agg aio alsa amd64 apache2 asf audiofile berkdb bitmap-fonts bzip2 cairo caps cdaudio cddb cdparanoia cdr cli console cracklib crypt ctype cups curl cvs dba dbus divx4linux dri dts dvb dvd dvdr dvdread emboss encode evo exif fbcon ffmpeg firefox flac flash fortran ftp gcj gd gif glib glitz glut gmp gphoto2 gpm gtk gtk2 hal htmlhandbook iconv imap imlib ipv6 isdnlog jbig joystick jpeg jpeg2k kde kpathsea libcaca libedit libnotify lzo lzw mad maildir mailwrapper matroska mikmod mime mjpeg mmx mng modplug mp3 mp4 mpeg mplayer mtp mudflap multilib multislot musepack mysql ncurses nls nptl nptlonly nsplugin nvidia objc objc-gc offensive ogg oggvorbis openal opengl openmp pcre pdf perl pic png ppds pppd pulseaudio python qt3support qt4 quicktime readline redland reflection samba sdl session sndfile snmp spell spl sql sqlite sse sse2 ssl startup-notification subtitles subversion svg sysfs syslog tcl tcltk tcpd tga theora threads tiff tk truetype truetype-fonts type1-fonts unicode upnp usb vcd vnc vorbis webkit wma wmf x264 xanim xattr xcb xcomposite xine xinerama xml xml2 xorg xpm xrandr xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystick void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US de" USERLAND="GNU" VIDEO_CARDS="nvidia nv ati r128 radeon vga sisusb"
Unset:  CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2009-08-16 18:04:08 UTC
Created attachment 201447 [details]
aclocal log
Comment 2 SpanKY gentoo-dev 2009-08-16 18:04:18 UTC
Created attachment 201448 [details]
autoheader log
Comment 3 SpanKY gentoo-dev 2009-08-16 18:04:28 UTC
Created attachment 201449 [details]
autoconf log
Comment 4 SpanKY gentoo-dev 2009-08-16 18:04:43 UTC
Created attachment 201451 [details]
libtoolize log
Comment 5 Rafał Mużyło 2009-10-29 23:47:40 UTC
Created attachment 208689 [details, diff]
patch for the build problem

I do hope, your crusade against me will at least temporarily cease.

Anyway, this is a patch, that makes things work.
(m4_divert didn't work either, but I left it there)
I'm not sure why - m4 is beyond me right now.
Actually, I'd be glad, if somebody told me
WTF does it make things work.

Probably scripts/phpize.m4 needs to be patched same way.
Comment 6 SpanKY gentoo-dev 2009-11-22 00:03:43 UTC
Comment on attachment 208689 [details, diff]
patch for the build problem

get over yourself.  there is no "crusade".  it simply comes down to "keep your shit to yourself".

at any rate, this patch is pointless.  all it does is disable the use of diversions completely instead of figuring out what is actually wrong.
Comment 7 SpanKY gentoo-dev 2009-11-25 00:02:24 UTC
ive increased the divert number based on upstream autoconf conversation
http://sources.gentoo.org/eclass/php5_2-sapi.eclass?r1=1.26&r2=1.27

and pushed a bug upstream to the php guys to figure out which path they want to go -- drop the diversions completely or increase the numbers.
Comment 8 Rafał Mużyło 2009-11-25 01:04:11 UTC
LOL. You do realize that standard php upstream answer is:
only autoconf 2.13 is supported, anything higher and you're on your own ?

Examples:
http://bugs.php.net/bug.php?id=46744
http://bugs.php.net/bug.php?id=48098
Comment 9 SpanKY gentoo-dev 2009-11-25 01:09:17 UTC
ive read their documentation already.  instead of sticking my head in the sand, i'm going to actually do something useful.
Comment 10 Matti Bickel (RETIRED) gentoo-dev 2010-04-12 20:46:55 UTC
Sorry for taking so long to respond.

Thanks for the activity and the eclass patch in the meantime. Seems like upstream fixed the problem. PHP-5.3.2, which we currently test for inclusion in the tree, appears to work with autoconf-2.64 in my tests.

You can check out our git overlay over at http://git.overlays.gentoo.org/gitweb/?p=proj/php.git;a=summary
(Or just wait two weeks until hoffie can iron out last issues with it and puts it into gentoo-x86)

Feedback if the issue indeed is fixed would be much appreciated.
Comment 11 Matti Bickel (RETIRED) gentoo-dev 2010-04-12 20:54:52 UTC
Don't mind me, i've just discovered your sed in our src_prepare eblit.
And php-5.3.2 still uses diversions in configure.in, so should NOT be fine w/o the sed.

Dunno, i somehow doubt upstream's gonna switch their build system in the middle of 5.3. Until we can figure out if they can be arsed to or if we need to stick with your sed, i'll leave this bug open.
Comment 12 Christian Hoffmann (RETIRED) gentoo-dev 2010-04-12 21:01:44 UTC
There have been serious attempts from upstream in fixing 5.3, but they (I think mostly Rasmus himself worked on it) gave up because it seemed impossible for them to fix it without breaking BC.
php-5.4 is supposed to have the reworked code and will depend on newer autoconf, as far as I understood.

So.. for 5.2 and 5.3 we will most likely have to live with the hack.
Comment 13 Ole Markus With (RETIRED) gentoo-dev 2011-03-12 10:19:40 UTC
Seems like we have to stick with the sed.