Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260412 - revdep-rebuild fails to rebuild /usr/bin/xmllint after readline update
Summary: revdep-rebuild fails to rebuild /usr/bin/xmllint after readline update
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-26 18:14 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-11-30 19:30 UTC (History)
0 users

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


Attachments
/var/cache/revdep-rebuild (revdep-rebuild.tbz2,296.43 KB, application/x-bzip2)
2009-02-26 18:15 UTC, Diego Elio Pettenò (RETIRED)
Details
emerge --info, eix gentoolkit, revdep-rebuild -pL libreadline.so.5, etc. (260412.tar.gz,4.56 KB, application/x-compressed-tar)
2010-01-21 00:58 UTC, Louis Frayser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-02-26 18:14:40 UTC
yamato tinderbox-scripts # xmllint
xmllint: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
yamato tinderbox-scripts # scanelf -n /usr/bin/xmllint 
 TYPE   NEEDED FILE 
ET_EXEC libreadline.so.5,libxml2.so.2,libc.so.6 /usr/bin/xmllint 

revdep-rebuild fails to rebuild libxml2 though, I'm going to attach the cache directory tarball.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-02-26 18:15:13 UTC
Created attachment 183287 [details]
/var/cache/revdep-rebuild
Comment 2 michael@smith-li.com 2009-04-14 15:59:42 UTC
Curious. Please give emerge --info, the version of gentoolkit you have, and the output of revdep-rebuild -pL libreadline.so.5

Thanks!
Comment 3 Paul Varner (RETIRED) gentoo-dev 2009-04-30 17:54:50 UTC
I cannot duplicate this behavior on my test system. 
Comment 4 Louis Frayser 2010-01-21 00:58:17 UTC
Created attachment 217033 [details]
emerge --info, eix gentoolkit, revdep-rebuild -pL libreadline.so.5, etc.
Comment 5 Louis Frayser 2010-01-21 01:04:46 UTC
(In reply to comment #2)
> Curious. Please give emerge --info, the version of gentoolkit you have, and the
> output of revdep-rebuild -pL libreadline.so.5
> 
> Thanks!
> 


I get the the same problem every time sys-libs/readline gets updated:
revdep-rebuild misses libreadline.so. 

I updated readline on Dec 30th, 2009 and today I got "sqlite: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory.", thought I've run revdep-rebuild several times since then.

root@gentoo:/root/Portage# ldd /usr/bin/sqlite
	linux-gate.so.1 =>  (0xffffe000)
	libsqlite.so.0 => /usr/lib/libsqlite.so.0 (0xb77fe000)
	libreadline.so.5 => not found
	libc.so.6 => /lib/libc.so.6 (0xb76b6000)
	/lib/ld-linux.so.2 (0xb7884000)
--
log=log/revdep-201001201609.log ;\
	script -c "exec revdep-rebuild -- -b -av"  $log "2>&1 || less -c $log"
Script started, file is log/revdep-201001201609.log
 * 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
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 100% ]                 

 * Dynamic linking on your system is consistent... All done. 
Script done, file is log/revdep-201001201609.log
--

[I] app-portage/gentoolkit (0.2.4.5@07/12/09): Collection of administration scripts for Gentoo
--

root@gentoo:~/Portage# revdep-rebuild -pL libreadline.so.5 2>&1|tee bugzilla/260412/rebdep-rebuild-pL_libreadline.so.5.txt
 * Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries using libreadline.so.5
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Checking dynamic linking 
 *   found /usr/bin/sqlite
 *   found /usr/lib/gcl-2.6.8/gcl-tk/gcltkaux
 *   found /usr/lib/gcl-2.6.8/unixport/saved_ansi_gcl
 *   found /usr/local/lib/greencard-3.01/greencard-bin
 *   found /usr/local/lib/hmake/ix86-Linux/HInteractive
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/bin/sqlite -> dev-db/sqlite
 *   /usr/lib/gcl-2.6.8/gcl-tk/gcltkaux -> dev-lisp/gcl
 *   /usr/lib/gcl-2.6.8/unixport/saved_ansi_gcl -> dev-lisp/gcl
 *  !!! /usr/local/lib/greencard-3.01/greencard-bin not owned by any package is broken !!!
 *   /usr/local/lib/greencard-3.01/greencard-bin -> (none)
 *  !!! /usr/local/lib/hmake/ix86-Linux/HInteractive not owned by any package is broken !!!
 *   /usr/local/lib/hmake/ix86-Linux/HInteractive -> (none)
 * Generated new 4_raw.rr and 4_owners.rr
 * Cleaning list of packages to rebuild
 * Generated new 4_pkgs.rr
 * Assigning packages to ebuilds
 * Generated new 4_ebuilds.rr
 * Evaluating package order
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --oneshot --pretend dev-db/sqlite:0
dev-lisp/gcl:0

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

Calculating dependencies... done!
[ebuild   R   ] dev-db/sqlite-2.8.16-r4 
[ebuild   R   ] dev-lisp/gcl-2.6.8_pre20090419 
 * Now you can remove -p (or --pretend) from arguments and re-run revdep-rebuild.
--
emerge --info attached as part of 260412.tar.gz
Comment 6 Louis Frayser 2010-01-21 04:38:56 UTC
(In reply to comment #5)
> (In reply to comment #2)
> > Curious. Please give emerge --info, the version of gentoolkit you have, and the
> > output of revdep-rebuild -pL libreadline.so.5
> > 
> > Thanks!
> > 
> 
> 
> I get the the same problem every time sys-libs/readline gets updated:
> revdep-rebuild misses libreadline.so. 
> 
> I updated readline on Dec 30th, 2009 and today I got "sqlite: error while
> loading shared libraries: libreadline.so.5: cannot open shared object file: No
> such file or directory.", thought I've run revdep-rebuild several times since
> then.
> 
> root@gentoo:/root/Portage# ldd /usr/bin/sqlite
>         linux-gate.so.1 =>  (0xffffe000)
>         libsqlite.so.0 => /usr/lib/libsqlite.so.0 (0xb77fe000)
>         libreadline.so.5 => not found
>         libc.so.6 => /lib/libc.so.6 (0xb76b6000)
>         /lib/ld-linux.so.2 (0xb7884000)
> --
It seems that revdep-rebuild misses certain binaries not installed by current packages, but catches certain others.  I don't know what the rules are; but "revdep-rebuild -L libSomelib.so" finds things that revdep-rebuild without -L misses. 

After emerging dev-db/sqlite again, it became apparent that /usr/bin/sqlite isn't installed by this package, even though "qfile /usr/bin/sqlite" names the sqlite package.  The sqlite ebuild only installs a command named "sqlite3."  I just made a symlink from sqlite3 -> sqlite.  I don't know what the old sqlite file was; maybe it was a copy of something older than the corresponding sqlite3 binary. 
Comment 7 Christian Ruppert (idl0r) gentoo-dev 2010-01-21 12:19:21 UTC
Please try the most recent version of gentoolkit, which is 0.3.0_rc8-r1 currently.
Also you should rather use "scanelf -n" or similar, instead of "ldd".
Comment 8 Louis Frayser 2010-07-05 17:08:11 UTC
(In reply to comment #7)
> Please try the most recent version of gentoolkit, which is 0.3.0_rc8-r1
> currently.
> Also you should rather use "scanelf -n" or similar, instead of "ldd".
> 

Since gentoolkit upgrade Tue Feb 16 20:49:33 2010 >>> app-portage/gentoolkit-0.3.0_rc8-r1, I haven't had any more trouble with revdep-rebuild.  Even after upgrading readline (Fri Apr  9 05:32:21 2010 >>> sys-libs/readline-6.1) revdep-rebuild didn't miss rebuiding anything depending on readline.

I think this bug is okay to CLOSE.
Comment 9 Louis Frayser 2010-11-30 19:30:22 UTC
This bug should be closed.