Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15622 - PEAR is installed with wrong paths
Summary: PEAR is installed with wrong paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-13 05:16 UTC by Stephan Wentz
Modified: 2003-12-08 21:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Wentz 2003-02-13 05:16:41 UTC
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"
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2003-02-13 14:41:51 UTC
it appears that pear install blah works fine.... I'll look deeper into this.
Comment 2 Stephan Wentz 2003-02-13 18:41:47 UTC
i'm experiencing the same probleme here at home - and again php + mod_php 
emerged. 
Comment 3 Todd Heim (RETIRED) gentoo-dev 2003-05-08 01:16:17 UTC
fixed in mod_php-4.3.1-r2.ebuild
Comment 4 Simon Roby 2003-12-08 18:23:51 UTC
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';
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-12-08 21:03:15 UTC
properly fixed now.