Paul Varner wrote:

On Wed, 2005-06-29 at 08:32 -0400, Dave Nebinger wrote:
So revdep-rebuild is currently running on the box but I'm wondering how
often the revdep-rebuild needs to be run...

Any suggestions from you folks out there in gentoo land?

I'm thinking about building a cron script to run early in the morning and,
if a recent emerge has taken place, run revdep-rebuild automatically.  Does
this sound like a good idea or not?


I run it automatically every morning with --pretend so that I can see
what it thinks needs to be rebuilt. The script I use on my gentoo boxes
is available at http://dev.gentoo.org/~fuzzyray/portage.cron

That script should give you a good starting point for developing
something that meets your needs. It does have a few problems that I
haven't fixed yet. The major one being that if the emerge command is
unable to determine packages due to packages being masked, it isn't
shown in the email message.

Does revdep-rebuild rebuild the same version of the packages that are
currently installed or will it do a package update from the portage tree?

Under normal operation, it will try to rebuild the same package that is
installed.  If you use the --package-names option, it will rebuild with
the latest version that is available.

Regards,
Paul
I've just tried running revdep-rebuild after the warning that comes with latest e2fstools. I had some broken dependencies but I have found that revdep-rebuild would not fix all of them so you'd be running it needlessly. It is definitely a tool to run with -p and then examine its output first and try the files it complains about with ldd to see whats missing. For example, I was getting broken deps with respect to some alsa lib and I that was on my server with no sound. This didn't break anything though. I installed alsa just to make it go away. Another one is opera browser which comes up with broken dep on libXm.so.1 in operamotifwrapper-1. Opera has openmotif dependency but openmotif doesnt provide that lib, it provides libXm.so.3. So, you really have to double-check the revdep-rebuild output.

--
gentoo-user@gentoo.org mailing list

Reply via email to