Re: [gentoo-user] revdep-rebuild questions...
El Miércoles 29 Junio 2005 14:32, Dave Nebinger escribió: I updated world yesterday which gave me a new com_err release. Saw the notice about running revdep-rebuild fly by when I did it but ignored it because I've never really needed to do this before. Soon thereafter I could not ssh to the box because of the missing libcom_err.so.3 file and realized that I had ignored the message at my own peril... 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? 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? Theorically revdep-rebuild should be run every update that changes some linked libraries. All apps that are depending on them maybe won't find them, and they'll crash or not work correctly, for that reason, revdep-rebuid, looks for all linked libraries needs on apps, and checks if they do exist. It's pretty useful. Bye. -- You know you're brilliant, but maybe you'd like to understand what you did 2 weeks from now. - Linus Torvalds Gentoo GNU/Linux. pgp9yXNJCRbfn.pgp Description: PGP signature
Re: [gentoo-user] revdep-rebuild questions...
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 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] revdep-rebuild questions...
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