Just emerged php and mod_php so i don't know which one produced this, maybe both... Wanted to list my PEAR packages with "/usr/bin/pear list", but it stated that no packages are installed. but in /usr/lib/php severeal pear-packages existed. So i looked into the code and found this in $PEAR_DIR/PEAR/Registry.php: <snip> function PEAR_Registry($pear_install_dir = PEAR_INSTALL_DIR) { parent::PEAR(); $ds = DIRECTORY_SEPARATOR; $this->install_dir = $pear_install_dir; $this->statedir = '/var/tmp/portage/php-4.3.0-r3/image//usr/lib/php/' . $ds.'.registry'; $this->filemap = '/var/tmp/portage/php-4.3.0-r3/image//usr/lib/php/' . $ds.'.filemap'; $this->lockfile = '/var/tmp/portage/php-4.3.0-r3/image//usr/lib/php/' . $ds.'.lock'; if (!file_exists($this->filemap)) { $this->rebuildFileMap(); } } </snip> seems like this file is build while installing in the sandbox, but after real install the paths aren't corrected... i changed this to the real values (dropped the portage-stuff), and it works like a charm... Reproducible: Always Steps to Reproduce: 1.emerge php/mod_php 2.pear list 3. Actual Results: didn't list any package Expected Results: list all installed packages Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/jakarta/tomcat/conf /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss apm avi crypt cups gif jpeg libg++ mikmod mmx mpeg pdflib png qtmt quicktime spell truetype xml2 xv gdbm berkdb slang readline arts svga tcltk java X sdl gpm tcpd pam libwww perl python esd imlib oggvorbis gtk kde motif cdr scanner pda -gnome opengl ssl oci8 sse matrox -3dnow -encode samba zlib xmms gtk2 mozilla qt mysql -nls ncurses" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer " ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
it appears that pear install blah works fine.... I'll look deeper into this.
i'm experiencing the same probleme here at home - and again php + mod_php emerged.
fixed in mod_php-4.3.1-r2.ebuild
I have both php-4.3.3-r2 and mod_php-4.3.3-r3 installed and the bug is still there, and from what I can tell from Registry.php, mod_php seems to be the one that screwed up: [lines 98-100 of Registry.php] $this->statedir = '/var/tmp/portage/mod_php-4.3.3-r3/image//usr/lib/php/' . $ds.'.registry'; $this->filemap = '/var/tmp/portage/mod_php-4.3.3-r3/image//usr/lib/php/' . $ds.'.filemap'; $this->lockfile = '/var/tmp/portage/mod_php-4.3.3-r3/image//usr/lib/php/' . $ds.'.lock';
properly fixed now.