Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99075 - /usr/portage/eclass/php-pear.eclass: line 47: pear: command not found
Summary: /usr/portage/eclass/php-pear.eclass: line 47: pear: command not found
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-14 23:02 UTC by Analyzer
Modified: 2005-07-15 22:46 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 Analyzer 2005-07-14 23:02:50 UTC
root@localhost:/usr/portage/eclass$ emerge squirrelmail
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-php/PEAR-DB-1.7.6 to /
>>> md5 files   ;-) PEAR-DB-1.6.8.ebuild
>>> md5 files   ;-) PEAR-DB-1.7.6.ebuild
>>> md5 files   ;-) files/digest-PEAR-DB-1.6.8
>>> md5 files   ;-) files/digest-PEAR-DB-1.7.6
>>> md5 src_uri ;-) DB-1.7.6.tgz
>>> Unpacking source...
>>> Unpacking DB-1.7.6.tgz to /var/tmp/portage/PEAR-DB-1.7.6/work
tar: Нулевой блок в 1436
>>> Source unpacked.
>>> Test phase [not enabled]: dev-php/PEAR-DB-1.7.6

>>> Install PEAR-DB-1.7.6 into /var/tmp/portage/PEAR-DB-1.7.6/image/ category
dev-php
/usr/portage/eclass/php-pear.eclass: line 47: pear: command not found

!!! ERROR: dev-php/PEAR-DB-1.7.6 failed.
!!! Function php-pear_src_install, Line 47, Exitcode 127
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:




Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r5 i686)
=================================================================
System uname: 2.6.12-gentoo-r5 i686 AMD Athlon(tm)
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distcc distlocks
sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.KOI8-R"
LC_ALL="ru_RU.KOI8-R"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext 7zip X aac aalib accessibility acl acpi
activefilter adns aim alsa amuled apache2 applet artworkextra atm audio
audiofile avi bash-completion bcmath berkdb bidi bitmap-fonts bmp bonobo buttons
bzip2 bzlib cairo calendar caps cdparanoia cdr chroot clamav cpdflib
cpudetection crypt css cups curl curlwrappers customlog dba dbus dga dhcp dillo
divx4linux doc dv dvb dvd dvdr dvdread dynagraph ecc edl eds emacs emboss encode
epiphany escreen etwin exif extensions extras fam ffmpeg filepro flac
font-server foomaticdb fortran fpx freetype ftp gcj gd geoip gg ggi gif glitz
gnome-print gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal
howl iconv icq idea imagemagick imap imlib irc java jbig jpeg jpeg2k justify kde
kdeenablefinal kdexdeltas kdgraphics kig-scripting lcms ldap leim lesstif
libcaca libclamav libedit libfpx libg++ libwww lirc lj logmail logrotate lzo mad
mailbox maildir mailwrapper matroska md5sum mikmod milter mime mjpeg mmap mmx
mmxext mng mono mozilla moznomail mozsvg mozxmlterm mp3 mpeg mpi mplayer
mppe-mppc musepack mysql mythtv nas ncurses nethack network nis nls nntp nptl
nptlonly nvidia objc odbc offensive ogg oggvorbis opengl openntpd openssh oss
pam pccts pcntl pcre pdflib perl php plugin png portaudio posix povray python qt
quicktime radius rar readline real remote rss rtc rube ruby sasl sdl session
sharedext silc simplexml slang slp sockets socks5 speedo speex spell sqlite sse
ssl stats subtitles subversion svg symlink tcltk tcpd tetex theora threads tiff
toolbar truetype truetype-fonts type1 type1-fonts underscores unicode usb v4l
v4l2 vcd vda vhosts visualization vorbis win32codecs wma123 wmf xanim xface xine
xinerama xml xml2 xmms xosd xpm xrandr xsl xv xvid xvmc yahoo zeroconf zlib zvbi
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 1 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-14 23:24:51 UTC
This can only happen with package.masked versions of PHP. Which version of PHP
are you using?
Comment 2 Wolfram Schlich (RETIRED) gentoo-dev 2005-07-15 01:37:31 UTC
Same problem here:
--8<--
heartofgold mod_php # emerge -avt PEAR-PEAR

These are the packages that I would merge, in reverse order:

Calculating dependencies     ...done!
[ebuild  N    ] dev-php/PEAR-PEAR-1.3.5  105 kB 
[ebuild  N    ]  dev-php/PEAR-Console_Getopt-1.2  3 kB 
[ebuild  N    ]  dev-php/PEAR-Archive_Tar-1.3.1  14 kB 
[ebuild  N    ]  dev-php/PEAR-XML_RPC-1.3.1  0 kB 

Total size of downloads: 123 kB

Do you want me to merge these packages? [Yes/No] 
>>> emerge (1 of 4) dev-php/PEAR-XML_RPC-1.3.1 to /
>>> md5 files   ;-) PEAR-XML_RPC-1.3.1.ebuild
>>> md5 files   ;-) PEAR-XML_RPC-1.3.2.ebuild
>>> md5 files   ;-) files/digest-PEAR-XML_RPC-1.3.1
>>> md5 files   ;-) files/digest-PEAR-XML_RPC-1.3.2
>>> md5 src_uri ;-) XML_RPC-1.3.1.tgz
>>> Unpacking source...
>>> Unpacking XML_RPC-1.3.1.tgz to /var/tmp/portage/PEAR-XML_RPC-1.3.1/work
tar: A lone zero block at 236
>>> Source unpacked.
>>> Test phase [not enabled]: dev-php/PEAR-XML_RPC-1.3.1

>>> Install PEAR-XML_RPC-1.3.1 into /var/tmp/portage/PEAR-XML_RPC-1.3.1/image/
category dev-php
/usr/portage/eclass/php-pear.eclass: line 47: pear: command not found

!!! ERROR: dev-php/PEAR-XML_RPC-1.3.1 failed.
!!! Function php-pear_src_install, Line 47, Exitcode 127
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

heartofgold mod_php # 
--8<--

as the current portage php5 stuff is simply horribly broken (e.g. regarding
mysqli/mysql-4.1 support), I copied dev-php/mod_php/mod_php-5.0.4.ebuild and
dev-php/php/php-5.0.4-r1.ebuild to /usr/local/portage/dev-php/{mod_php,php} and
changed both to use php5-sapi-r3.eclass instead of -r2 (-r3 supports mysqli
whereas -r2 does not).

anyway, using the hardmasked 1.3.5-r1 of pear worked.
btw, PEAR-PhpDocumentor fails to emerge because the memory_limit gets reached
(8M). setting a higher limit in /etc/php/cli-php5/php.ini doesn't help, as it
doesn't seem to being used by the /usr/bin/pear php, so I patched it:
--8<--
heartofgold mod_php # rcsdiff -u /usr/bin/pear
===================================================================
RCS file: /usr/bin/pear,v
retrieving revision 1.1
diff -u -r1.1 /usr/bin/pear
--- /usr/bin/pear       2005/07/15 08:28:03     1.1
+++ /usr/bin/pear       2005/07/15 08:28:28
@@ -25,4 +25,4 @@
   fi
 fi
 
-exec $PHP -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php "$@"
+exec $PHP -c /etc/php/cli-php5/php.ini -C -q $INCARG -d output_buffering=1
$INCDIR/pearcmd.php "$@"
heartofgold mod_php # 
--8<--
Comment 3 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-15 22:46:23 UTC
dev-php/PEAR-PEAR-1.3.5-r1 has to be used with the package.masked versions of
PHP 5, closing.

Wolfram, please open a separate issue for the memory limit issue.