Gentoo Forums
Gentoo Forums
Quick Search: in
I don't understand revdep-rebuild
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 260

PostPosted: Sun Aug 13, 2006 3:28 pm    Post subject: I don't understand revdep-rebuild Reply with quote

Hi, I'm trying to setup a headless server without X, gnome, or any of that stuff. However, when I run revdep-rebuild, I get the following output:

Quote:
saturn ~ # revdep-rebuild -X
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/X11/xkb/xkbcomp (requires libxkbfile.so.1)
broken /usr/lib/gnome-vfs-2.0/modules/libfile.la (requires /usr/lib/libgnomevfs-2.la)
broken /usr/lib/gnome-vfs-2.0/modules/libfile.la (requires /usr/lib/libgconf-2.la)
done.
(/root/.revdep-rebuild.3_rebuild)

Assigning files to packages... terminated.
Removing incomplete /root/.revdep-rebuild.4_packages_raw.


So, if I'm interpreting the output correctly.. It's saying that I have the following packages installed: xkbcomp, and gnome-vfs.. However, I just emerged -C gnome-vfs. Here's the output of emerge -s gnome-vfs to prove it:

Code:

saturn ~ # emerge -s gnome-vfs
Searching...   
[ Results for search key : gnome-vfs ]
[ Applications found : 2 ]
 
*  dev-cpp/gnome-vfsmm
      Latest version available: 2.12.0
      Latest version installed: [ Not Installed ]
      Size of files: 314 kB
      Homepage:      http://gtkmm.sourceforge.net/
      Description:   C++ bindings for gnome-vfs
      License:       LGPL-2.1

*  gnome-base/gnome-vfs
      Latest version available: 2.14.2
      Latest version installed: [ Not Installed ]
      Size of files: 1,773 kB
      Homepage:      http://www.gnome.org/
      Description:   Gnome Virtual Filesystem
      License:       GPL-2 LGPL-2

Look! It's not installed! Why does revdep-rebuild want to install its dependencies? Emerge -s also shows that xkb is not installed.. What's up?
Back to top
View user's profile Send private message
sfragis
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2005
Posts: 95
Location: RE < IT < Europe

PostPosted: Sun Aug 13, 2006 5:16 pm    Post subject: Reply with quote

machinelou wrote:

Look! It's not installed! Why does revdep-rebuild want to install its dependencies? Emerge -s also shows that xkb is not installed.. What's up?

Maybe revdep-rebuild caches results in temporary files (/root/.revdep-rebuild.N.XXX).
Try ignoring them:
Code:

$ revdep-rebuild -i

_________________
Regards
Fabio Strozzi
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1640
Location: Somewhere in time and space

PostPosted: Sun Aug 13, 2006 5:53 pm    Post subject: Reply with quote

Does the file /usr/lib/gnome-vfs-2.0/modules/libfile.la exist? If for some reason it wasn't removed during the unmerge, then revdep-rebuild is quite rightly finding that it requires other parts of gnome-vfs that are now missing because you unmerged gnome-vfs. In which case, manually delete that file and your mystery is solved.

Now why this file would be left over is another mystery. :)
Back to top
View user's profile Send private message
mv
Veteran
Veteran


Joined: 20 Apr 2005
Posts: 1540

PostPosted: Mon Aug 14, 2006 11:41 am    Post subject: Reply with quote

sternklang wrote:
Does the file /usr/lib/gnome-vfs-2.0/modules/libfile.la exist? ...
Now why this file would be left over is another mystery. :)

Unfortunately, why .la-Files are left over is usually no mystery :(

The reason is that fix_libtool_files.sh changes these files, and when now a new version of a package is emerged in which the file has vanished, portage will not delete the old .la-file, because its mtime is changed.

I consider this a bug in fix_libtool_files.sh: It should update the information in the portage database, too. Does somebody know a way how to do this manually? :?:
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1640
Location: Somewhere in time and space

PostPosted: Mon Aug 14, 2006 11:53 am    Post subject: Reply with quote

Ah, so that's it. Thanks. Now that I know, I did some searching of bugzilla. See these bugs for information on how fix_libtool_files.sh is going to go away as people upgrade their gcc, so no fix will be necessary, just a bit of patience.
Back to top
View user's profile Send private message
machinelou
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 260

PostPosted: Mon Aug 14, 2006 1:35 pm    Post subject: Reply with quote

So, until we get gcc-4.1, is it kosher to just delete .la-files of uninstalled packages? Or, should I just use revdep-rebuild to tell me which packages need to be rebuilt, and then rebuild them manually, skipping those that have already been removed?
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1640
Location: Somewhere in time and space

PostPosted: Mon Aug 14, 2006 1:54 pm    Post subject: Reply with quote

machinelou wrote:
So, until we get gcc-4.1, is it kosher to just delete .la-files of uninstalled packages? Or, should I just use revdep-rebuild to tell me which packages need to be rebuilt, and then rebuild them manually, skipping those that have already been removed?

They're not needed any longer and are only there due to a quirk in a rarely-run recovery script. I would delete them and move on.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum