Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37029 - revdep-rebuild doesn't rebuild when it should
Summary: revdep-rebuild doesn't rebuild when it should
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2004-01-02 08:30 UTC by Blu3
Modified: 2005-12-03 07:20 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Blu3 2004-01-02 08:30:39 UTC
While trying to fix php-core that depends on sablotron, I discovered that it linked in libpq which for some reason is linking old ssl libraries even tho it doesn't exhibit it with ldd.  So I tried revdep-rebuild - but that seems to disagree with itself.  Several things are broken but in the end it thinks everything is fine.

# revdep-rebuild

Checking reverse dependencies...
Packages containing binaries and libraries broken by any package update,
will be recompiled.

Collecting system binaries and libraries... done.

Collecting complete LD_LIBRARY_PATH... done.

Checking dynamic linking consistency...
  broken /usr/lib/ (requires
  broken /usr/lib/ (requires
  broken /usr/lib/ (requires
  broken /usr/lib/gphoto2/2.1.1/ (requires
  broken /usr/lib/gphoto2/2.1.1/ (requires
  broken /usr/bin/ftp (requires
  broken /usr/bin/gtkam (requires
  broken /usr/bin/enlightenment-0.17 (requires
  broken /usr/bin/ethereal (requires
  broken /usr/bin/anjuta (requires
  broken /usr/bin/dftest (requires
  broken /usr/bin/tethereal (requires
  broken /usr/X11R6/bin/uil (requires
  broken /usr/X11R6/bin/xmanimate (requires
  broken /usr/X11R6/bin/fileview (requires
  broken /usr/X11R6/bin/hellomotif (requires
  broken /usr/X11R6/bin/periodic (requires
  broken /usr/X11R6/bin/helloint (requires
  broken /usr/local/lib/ (requires
  broken /usr/local/BlueList/BlueList (requires
  broken /usr/local/old-powerix-apache/virtuals/ (requires
  broken /opt/cxoffice/lib/wine/ (requires
  broken /opt/cxoffice/lib/wine/ (requires

Assigning files to ebuilds... done.

Evaluating package order... done.

Dynamic linking on your system is consistent... All done.

Shouldn't at least some attempt be made to get some of those get fixed?
Comment 1 Blu3 2004-01-02 08:37:19 UTC
Further discovery in this process..

I've found that the lost links belong files of packages that gentoo thinks aren't installed anymore.  So far I've found two messed up sets.  PostgreSQL is installed and it's current libraries are 3.1, but there are 3.0 files remaining.  qpkg doesn't list any dupes for pgsql so these appear to be orphaned.  I've manually removed them.

Next, exif-gtk which exif is linked with.  The libraries and headers are installed, but gentoo thinks that exif-gtk isn't installed.  I'm rebuilding exif and exif-gtk now.

Does somebody have some tools or methods to find and remove or rebuild all of these orphans?
Comment 2 SpanKY gentoo-dev 2004-01-02 09:01:11 UTC
to be honest, if what you say is the case (all the files have been orphaned),
then from a portage stand point, there aint much you can do

just rm them and/or re-emerge them and  move on ;)
Comment 3 Blu3 2004-01-02 09:12:27 UTC
I've come across a -lot- of files in the last few hours that have been orphaned from old packages or packages that I know -I- installed but gentoo thinks they aren't installed.

A few idle questions that should be addressed for system integrity.

a) how are files becoming orphaned?
b) how are packages becoming lost?
c) how can these files and packages be identified as 'broken' for re-inclusion or removal?

If there exists a hidden problem in the system, we should try to keep an eye out for it now to identify and fix it.  As more time goes by, the system will just get more complex and make such things harder to find and fix.

Do any of the developers have scripts or tools for going through the whole system and doing integrity checks?  Verifying:

a) databases
b) existing files that appear orphaned
c) non-existing files that should be on the system
d) packages that should be removed or reinstalled
Comment 4 SpanKY gentoo-dev 2004-01-03 08:45:20 UTC
qpkg in gentoolkit will do a md5 check on installed files

portage wont uninstall a file if it has changed md5s or mtimes
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-12-03 07:05:25 UTC
*** Bug 100207 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-12-03 07:20:51 UTC
Closing CANTFIX, we can't rebuild something portage has no knowledge about (e.g.
orphaned files) and removal of cruft is not revdep-rebuild's task.