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

Bug 117075

Summary: revdep-rebuild dont see all of the libs
Product: Portage Development Reporter: Csaba Tóth <tsabi-gentoo>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Csaba Tóth 2005-12-29 05:04:09 UTC
I have php5 installed with snmp support, i updated my net-snmp, and it breaks the snmp support, but revdep-rebuild don't see this:

================================================
mars / # emerge dev-php/PEAR-PHPUnit2
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-php/PEAR-PHPUnit2-2.3.4 to /
>>> checksums files   ;-) PEAR-PHPUnit2-2.3.4.ebuild
>>> checksums files   ;-) files/digest-PEAR-PHPUnit2-2.3.4
>>> checksums src_uri ;-) PHPUnit2-2.3.4.tgz
>>> Unpacking source...
>>> Unpacking PHPUnit2-2.3.4.tgz to /var/tmp/portage/PEAR-PHPUnit2-2.3.4/work
tar: A lone zero block at 1097
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/PEAR-PHPUnit2-2.3.4/work/PHPUnit2-2.3.4 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-php/PEAR-PHPUnit2-2.3.4

>>> Install PEAR-PHPUnit2-2.3.4 into /var/tmp/portage/PEAR-PHPUnit2-2.3.4/image/ category dev-php
/usr/lib/php5/bin/php: error while loading shared libraries: libnetsnmp.so.5: cannot open shared object file: No such file or directory

!!! ERROR: dev-php/PEAR-PHPUnit2-2.3.4 failed.
!!! Function php-pear-r1_src_install, Line 49, Exitcode 127
!!! Unable to install PEAR package
!!! If you need support, post the topmost build error, NOT this status message.
================================================


If i run revdep-rebuild, it founds the broken php5, but not because of that broken /usr/lib/php5/bin/php bin, just because of a broken apache module:


================================================
mars / # revdep-rebuild -p -v
Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries broken by a package update
will be emerged.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
  broken /usr/lib/apache2/modules/libphp5.so (requires  libnetsnmp.so.5)
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... done.
  (/root/.revdep-rebuild.4_ebuilds)

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

All prepared. Starting rebuild...
emerge --oneshot -p -v =dev-lang/php-5.0.5-r4

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

Calculating dependencies ...done!
[ebuild   R   ] dev-lang/php-5.0.5-r4  USE="-adabas -apache apache2 bcmath berkdb -birdstep bzip2 calendar cdb cgi -cjk cli crypt ctype curl curlwrappers -db2 dba dbase -dbmaker -debug -discard-path doc -empress -empress-bcs -esoob exif -fdftk -filepro -firebird flatfile -force-cgi-redirect -frontbase ftp gd -gd-external gdbm gmp -hardenedphp -hyperwave-api iconv imap -informix inifile -interbase -iodbc ipv6 -java-external -kerberos ldap -libedit -mcve memlimit mhash -ming -mnogosearch -msql -mssql mysql -mysqli ncurses nls -oci8 -odbc -oracle7 -ovrimos pcntl pcre -pdo-external pear -pfpro pic posix postgres -qdbm readline -recode -sapdb sasl session -sharedext -sharedmem simplexml snmp -soap sockets -solid spell -spl -sqlite ssl -sybase -sybase-ct sysvipc threads tidy tiff -tokenizer truetype -wddx xml2 xmlrpc xpm xsl -yaz zip zlib" 0 kB

Total size of downloads: 0 kB
Now you can remove -p (or --pretend) from arguments and re-run revdep-rebuild.
================================================

so, i think revdep-rebuild didn't scans all of the libs it should in normal situation.
Comment 1 Csaba Tóth 2005-12-29 05:05:08 UTC

*** This bug has been marked as a duplicate of 117074 ***