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

Bug 303033

Summary: dev-php/PEAR-Numbers_Words-0.15.0 missing a dependency
Product: Gentoo Linux Reporter: Jon Gerdes <gerdesj>
Component: [OLD] UnspecifiedAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: notordoktor
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jon Gerdes 2010-01-31 21:42:25 UTC
I tried to emerge "base" a Snort web based thing.  The emerge came up with this list:


[ebuild  N    ] dev-php/adodb-5.09a  518 kB
[ebuild  N    ] dev-php/PEAR-PEAR-1.9.0  285 kB
[ebuild  N    ] dev-php/PEAR-Numbers_Words-0.15.0  44 kB
[ebuild  N    ] dev-php/PEAR-Numbers_Roman-1.0.2  7 kB  
[ebuild  N    ] dev-php/PEAR-Image_Color-1.0.3  10 kB   
[ebuild  N    ] dev-php/PEAR-Net_Socket-1.0.9  6 kB     
[ebuild  N    ] dev-php/PEAR-Auth_SASL-1.0.3  6 kB      
[ebuild  N    ] dev-php/PEAR-DB-1.7.14_rc1  130 kB      
[ebuild  N    ] dev-php/PEAR-Image_Canvas-0.3.1  46 kB  
[ebuild  N    ] dev-php/PEAR-Net_SMTP-1.3.3  USE="-minimal" 11 kB
[ebuild  N    ] dev-php/PEAR-Mail-1.2.0_beta2  22 kB             
[ebuild  N    ] dev-php/PEAR-Image_Graph-0.7.2  360 kB           
[ebuild  N    ] dev-php/PEAR-MDB2-2.5.0_beta2  USE="mysql mysqli sqlite (-firebird) -mssql -oci8 -oci8-instant-client -postgres" 126 kB
[ebuild  N    ] dev-php/PEAR-MDB2_Driver_mysql-1.5.0_beta2  45 kB                                                                      
[ebuild  N    ] dev-php/PEAR-MDB2_Driver_sqlite-1.5.0_beta2  36 kB                                                                     
[ebuild  N    ] dev-php/PEAR-MDB2_Driver_mysqli-1.5.0_beta2  46 kB                                                                     
[ebuild  N    ] dev-php/PEAR-Log-1.11.6  USE="-minimal" 44 kB                                                                          
[ebuild  N    ] dev-php/PEAR-Mail_Mime-1.5.2  22 kB                                                                                    
[ebuild  N    ] dev-php/PEAR-Mail_mimeDecode-1.5.1  10 kB                                                                              
[ebuild  N    ] net-analyzer/base-1.4.1  USE="apache2 gd mysql -mssql -oracle -postgres -signatures -vhosts" 933 kB                    
[ebuild  N    ] dev-php/PEAR-Console_Getopt-1.2.3  4 kB                                                                                
[ebuild  N    ] dev-php/PEAR-XML_Util-1.2.1-r1  18 kB                                                                                  
[ebuild  N    ] dev-php/PEAR-Archive_Tar-1.3.5  17 kB                                                                                  
[ebuild  N    ] dev-php/PEAR-Structures_Graph-1.0.2  31 kB                                                                             
[ebuild  N    ] dev-php/pear-1.9.0  0 kB 

--------------------------------
It failed at this point:

>>> Emerging (3 of 25) dev-php/PEAR-Numbers_Words-0.15.0
 * Numbers_Words-0.15.0.tgz RMD160 SHA1 SHA256 size ;-) ...                                                                                                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                      [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                     [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                    [ ok ]
 * CPV:  dev-php/PEAR-Numbers_Words-0.15.0                                                                                                                                      
 * REPO: gentoo                                                                                                                                                                 
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU                                                                                                                   
>>> Unpacking source...                                                                                                                                                         
>>> Unpacking Numbers_Words-0.15.0.tgz to /var/tmp/portage/dev-php/PEAR-Numbers_Words-0.15.0/work                                                                               
tar: A lone zero block at 676                                                                                                                                                   
>>> Source unpacked in /var/tmp/portage/dev-php/PEAR-Numbers_Words-0.15.0/work                                                                                                  
>>> Compiling source in /var/tmp/portage/dev-php/PEAR-Numbers_Words-0.15.0/work/Numbers_Words-0.15.0 ...                                                                        
>>> Source compiled.                                                                                                                                                            
>>> Test phase [not enabled]: dev-php/PEAR-Numbers_Words-0.15.0                                                                                                                 

>>> Install PEAR-Numbers_Words-0.15.0 into /var/tmp/portage/dev-php/PEAR-Numbers_Words-0.15.0/image/ category dev-php

Warning: require_once(Console/Getopt.php): failed to open stream: No such file or directory in System.php on line 21

Warning: require_once(Console/Getopt.php): failed to open stream: No such file or directory in /usr/share/php/System.php on line 21

Fatal error: require_once(): Failed opening required 'Console/Getopt.php' (include_path='/usr/share/php') in /usr/share/php/System.php on line 21
 * ERROR: dev-php/PEAR-Numbers_Words-0.15.0 failed:                                                                                              
 *   Unable to install PEAR package                                                                                                              
 *                                                                                                                                               
 * Call stack:                                                                                                                                   
 *     ebuild.sh, line  48:  Called src_install                                                                                                  
 *   environment, line 980:  Called php-pear-r1_src_install                                                                                      
 *   environment, line 909:  Called die                                                                                                          
 * The specific snippet of code:                                                                                                                 
 *               pear -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package";                               
-----------------------------

I then emerge'd PEAR-PEAR:

emerge -va1 PEAR-PEAR

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

Calculating dependencies... done!
[ebuild   R   ] dev-php/PEAR-PEAR-1.9.0  0 kB
[ebuild  N    ] dev-php/PEAR-Console_Getopt-1.2.3  4 kB
[ebuild  N    ] dev-php/PEAR-XML_Util-1.2.1-r1  18 kB  
[ebuild  N    ] dev-php/PEAR-Archive_Tar-1.3.5  17 kB  
[ebuild  N    ] dev-php/PEAR-Structures_Graph-1.0.2  31 kB
[ebuild  N    ] dev-php/pear-1.9.0  0 kB 

... and then emerge'd base which worked.

Reproducible: Didn't try




emerge --info            
Portage 2.2_rc62 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.33-rc5 x86_64)
=================================================================                       
System uname: Linux-2.6.33-rc5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 31 Jan 2010 14:00:23 +0000                                                
app-shells/bash:     4.0_p37                                                                      
dev-java/java-config: 2.1.10                                                                      
dev-lang/python:     2.5.4-r4, 2.6.4-r1, 3.1.1-r1                                                 
dev-util/cmake:      2.8.0-r1                                                                     
sys-apps/baselayout: 2.0.1                                                                        
sys-apps/openrc:     0.6.0-r1                                                                     
sys-apps/sandbox:    2.2                                                                          
sys-devel/autoconf:  2.13, 2.65                                                                   
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1                                           
sys-devel/binutils:  2.20                                                                         
sys-devel/gcc-config: 1.4.1                                                                       
sys-devel/libtool:   2.2.6b                                                                       
virtual/os-headers:  2.6.30-r1                                                                    
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                    
ACCEPT_LICENSE="*"                                                                                
CBUILD="x86_64-pc-linux-gnu"                                                                      
CFLAGS="-march=core2 -mtune=core2 -O2 -mssse3 -msse4.1 -pipe"                                     
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -mssse3 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j3"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X Xaw3d a52 aac acl acpi activefilter additions admin administrator ads agent alsa amarok amarok2 amd64 apache2 asf augeas bash-completion bcmath berkdb bluetooth boost branding bzip2 cairo calendar caps cdda cddb cdr cdrom cgi chipcard chipcard2 chm cisco clamav clamd clamdtop cleartype cli client config-file consolekit cracklib crypt ctype cups curl custom-optimization customlog cxx daap dba dbus dell dga dhcp divx dmi dns dnsdb dragonplayer dri dv dvb dvd dvdr dvdread eap-tls edirectory embedded enca encode epson exif exim exiscan exiscan-acl expat extensions fam fbcon fbcondecor ffmpeg fftw filter firefox flac flash flexresp2 foomaticdb fortran frontend ftp fts3 fuse gd gdbm geoip geolocation gimp glitz gnutls gpm graphviz groupwise h224 h281 h323 hal hbci html htmlhandbook http-forms http-server iconv ieee1394 imagemagick imap inkjar iodbc ipod iproute2 ipv6 irda irmc jabber java java5 javacomm javamail javascript jbig jboss jce jmx jni john joystick jpeg jpeg2k jpgraph jta jumpplay kcal kde kdehiddenvisibility kdepim kerberos kexi kipi kvm latex lcd lcms ldap lm_sensors log4j logrotate lzo mad maildir math mcal mdb mdnsresponder-compat mime ming mjpeg mmkeys mmx mmxext mng modules mono mozsvg mp3 mp3tunes mp4 mp4live mpd mpeg mpeg2 mplayer msdfs mtp mudflap multilib multipath multiuser musepack musicbrainz mysql mysqli nas ncurses nls no-helper nptl nptlonly nsplugin ntfs nxclient oav office ofx ogg on-the-fly-crypt openexr opengl openmp ospfapi overlays pam passwordsave pcap pcre pda pdf perl php pic pipechan plasma plotutils png postgresql ppds pppd python qt3 qt3support qt4 quicktime quotes rdesktop readline realmedia realms redeyes reflection reiserfs ruby ruby-bindings samba sasl scanner screen sdl semantic-desktop session sip sipim slp smp sni snmp soap spf spl sql sqlite srt sse sse2 sse3 sse4a ssl ssse3 startup-notification subversion suexec svg svgz swat sysfs syslog tcpd templates theora tiff tools truetype udev uk_bleb uk_rt underscores unicode usb v4l v4l2 vboxbfe vcd visualization vorbis watchdog wav wavpack webdav webkit wifi winbind winetools winpopup wma wmf wmp wps wxwindows xanim xattr xcb xinerama xml xmlreader xmlrpc xmlwriter xorg xosd xpm xscreensaver xulrunner xv xvid xvmc xvnc yv12 zeo zip zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd                  authn_dbm authn_default authn_file authnz_ldap authz_dbm                  authz_default authz_groupfile authz_host authz_owner                  authz_user autoindex cache cgi cgid dav dav_fs dav_lock                  dbd deflate dir disk_cache env expires ext_filter file_cache                  filter headers ident imagemap include info ldap log_config                  logio mem_cache mime mime_magic negotiation proxy proxy_ajp                  proxy_balancer proxy_connect proxy_http rewrite setenvif so                  speling ssl status suexec unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jon Gerdes 2010-01-31 21:46:50 UTC
Err, having just re read this bug, have I just diagnosed that PEAR-PEAR was broken on my system?  How would I be able to detect this sort of breakage in future?  I have run revdep-rebuild etc on a pretty regular basis. 
Comment 2 Doktor Notor 2010-02-15 15:14:34 UTC
Looking at the ${PORTDIR}/eclass/php-pear-r1.eclass, DEPEND="dev-lang/php >=dev-php/PEAR-PEAR-1.6.1" is clearly bad. You need the entire pear core installed before installing any other PEAR-* stuff. It's not that case now because of PDEPEND being used in PEAR-PEAR.

If you change the eclass to something like

DEPEND="dev-lang/php
        || ( dev-php/pear >=dev-php/PEAR-PEAR-1.6.1 )"

you might get results that make some sense wrt the install order.
Comment 3 Doktor Notor 2010-02-15 15:28:53 UTC
Also, hmmm... why does >=dev-php/PEAR-PEAR-1.8.1 PDEPEND on the dev-php/pear metapackage which doesn't install anything?
Comment 4 Steve Dibb (RETIRED) gentoo-dev 2010-02-16 04:17:45 UTC
(In reply to comment #3)
> Also, hmmm... why does >=dev-php/PEAR-PEAR-1.8.1 PDEPEND on the dev-php/pear
> metapackage which doesn't install anything?
> 

Should be fixed now.  The correct deps are in the eclass.