Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 351582

Summary: dev-lang/php-5.3.5 debug ini files installed despite PHP_INI_VERSION="production"
Product: Gentoo Linux Reporter: Jeremy Huddleston Sequoia <jeremyhu>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeremy Huddleston Sequoia 2011-01-13 18:33:07 UTC
I just updated php, and etc-update showed the ini files needed to be updated.  The updates were changing from production values to debug values even though I have PHP_INI_VERSION="production" in /etc/make.conf

~ # emerge -pv php

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/php-5.3.5  USE="apache2 berkdb bzip2 cgi cjk cli crypt ctype curl exif fileinfo filter ftp gd gdbm gmp hash iconv imap ipv6 json mhash mysql mysqli nls phar pic posix readline session simplexml sockets spell sqlite sqlite3 ssl suhosin tokenizer truetype unicode xml xmlreader xpm zip zlib -adabas -bcmath -birdstep -calendar -cdb -curlwrappers -db2 -dbmaker -debug -doc -embed -empress -empress-bcs -enchant -esoob -firebird -flatfile -fpm -frontbase -gd-external -inifile -interbase -intl -iodbc -kerberos -kolab -ldap -ldap-sasl -libedit -mssql -mysqlnd -oci8 -oci8-instant-client -odbc -pcntl -pdo -postgres -qdbm -recode -sapdb -sharedext -sharedmem -snmp -soap -solid -sybase-ct -sysvipc -threads -tidy -wddx -xmlrpc -xmlwriter -xsl" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


~ # emerge --info
Portage 2.2.0_alpha14 (hardened/linux/x86, gcc-4.3.4, glibc-2.11.2-r3, 2.6.36-hardened-r4 i686)
=================================================================
System uname: Linux-2.6.36-hardened-r4-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-1.12.14
Timestamp of tree: Thu, 13 Jan 2011 10:45:02 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo anarchy hardened-dev upe
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -march=pentium4 -fomit-frame-pointer -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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"
CXXFLAGS="-march=i686 -O2 -pipe -march=pentium4 -fomit-frame-pointer -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en es ja"
PKGDIR="/usr/portage/packages"
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="/var/portage"
PORTDIR_OVERLAY="/var/lib/layman/anarchy /var/lib/layman/hardened-development /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi alsa amrnb ao apache2 asf audiofile avahi bash-completion berkdb bidi bitmap-fonts bl browserplugin bzip2 cairo cdda cddb cdparanoia cjk clamav clamdtop cli consolekit cracklib crypt cups curl cxx dba dbus deprecated device-mapper dga dri dts dv dvd eds elf emacs enca encode enscript erandom esd exif expat extensions fam fame fat ffmpeg firefox flac flash font-server fontconfig fortran fpx ftp fts3 gd gd-external gdbm gdu gif git glibc-omitfp glut glx gmp gnome gnutls gpm graphviz gs gstreamer gtk gtk2 gtkhtml guild guile gzip hal hardened hardenedphp hdri i8x0 iconv icq idn imap imlib imlib2 iproute2 ipsec ipv6 jack java jbig jp2 jpeg jpeg2k kcal kde lame lcms libcaca libclamav libgda libkms libvisual linuxthreads-tls live lm_sensors logitech-mouse logrotate lzo mad maildir md5sum mdnsresponder-compat mercurial mhash ming mixer mjpeg mmx mmxext mng mod_python modperl modules mouse mp2 mp3 mp4 mpeg mpeg2 mplayer mudflap multislot musepack musicbrainz mysql mysqli ncurses network networking new-login nfs nls nptl nsplugin oav objc ocaml ogg oggvorbis openal opendoc openexr opengl openmp oss pam pam_chroot pcre perl php pic png pnm policykit portaudio postfix povray ppds pppd pvr python pyzor q32 qca qt qt3 qt3support qt4 quicktime quotas radio rar razor readline realmedia regex reports rtc samba sasl sdk sdl semantic-desktop sensord session sndfile sockets sox spamassassin speex spell sql sqlite sqlite3 srt sse sse2 ssl startup-notification subtitles subversion suexec suhosin svg sysfs syslog tcpd teletext tga theora tiff timidity tivo transcode truetype type1 udev unicode urandom usb utf8 vcd vcdimager vfat vidix vim vim-pager vim-with-x virus-scan visualization vorbis webkit win32codecs wma wmf wxwindows x264 x86 xanim xattr xchat xfs xft xine xinetd xml xml2 xmlreader xorg xpm xrandr xscreensaver xulrunner xv xvid xvmc yahoo zip zlib zoran" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 auth_digest authn_dbd dbd ident imagemap" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es ja" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2011-01-13 20:17:28 UTC
Just did a few reinstalls with both production and development as PHP_INI_VERSION. It definitely works as expected here:
-error_reporting = E_ALL | E_STRICT
+error_reporting = E_ALL & ~E_DEPRECATED
...
-display_startup_errors = On
+display_startup_errors = Off
...
-track_errors = On
+track_errors = Off
...
-html_errors = On
+html_errors = Off
...
etc

Which values was changed to development version?
Also, take a look at the elog and make sure it says it installed the production version.
Comment 2 Jeremy Huddleston Sequoia 2011-01-14 08:43:57 UTC
All values (maybe ~10 of them, I don't remember the exact number) were set to development values.  I will look into it more (re-emerging and investigating on other machines) later this week.
Comment 3 Jeremy Huddleston Sequoia 2011-01-16 21:16:45 UTC
Unable to reproduce it on my other machine... closing for now.