Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Revdep-rebuild not really fixing anything

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
jsmaye
Tux's lil' helper
Tux's lil' helper
Posts: 115
Joined: Mon May 09, 2005 7:13 am

Revdep-rebuild not really fixing anything

  • Quote

Post by jsmaye » Tue Aug 15, 2006 10:35 am

Running revdep-rebuild yields a number of broken links. I had originally thought that just running revdep-rebuild would fix them, but apparently not - the same errors on consecutive runs show up. Am I wrong in thinking that revdep-rebuild <rebuilds> the dependancies? If not, what does?
...and you want to be my latex salesman...
Top
lnxz
Guru
Guru
Posts: 472
Joined: Sun Jul 03, 2005 4:53 am
Location: Earth

  • Quote

Post by lnxz » Tue Aug 15, 2006 2:52 pm

It's supposed to give you a list of packages to rebuild, it doesn't really fix anything by itself.
Top
Aysen
Apprentice
Apprentice
Posts: 187
Joined: Wed May 18, 2005 7:32 pm
Location: Poland

Re: Revdep-rebuild not really fixing anything

  • Quote

Post by Aysen » Tue Aug 15, 2006 4:10 pm

jsmaye wrote:Running revdep-rebuild yields a number of broken links. I had originally thought that just running revdep-rebuild would fix them, but apparently not - the same errors on consecutive runs show up. Am I wrong in thinking that revdep-rebuild <rebuilds> the dependancies? If not, what does?
Yep, it rebuilds packages with broken binaries.

However, it may happen that when you update or unmerge a package, some of its files are left over. This can happen under some circumstances (after you use fix_libtool_files.sh, for example). So, such files are junk from your point of view, but revdep-rebuild thinks they're needed, and when they have some broken links, it wants to rebuild them. But it can't rebuild anything, because the package is no longer installed. It's generally safe to delete them manually. To be on the safe side, do a

Code: Select all

equery belongs <filename>
for every file it reports. If a file doesn't belong to any package, delete it and your problem is gone.
Top
jsmaye
Tux's lil' helper
Tux's lil' helper
Posts: 115
Joined: Mon May 09, 2005 7:13 am

Tomayto tomahto...

  • Quote

Post by jsmaye » Wed Aug 16, 2006 4:27 am

Well, now, which is it? I've gotten two contradictory replies. :?

Does revdep-rebuild fix the errors it finds or do I?
...and you want to be my latex salesman...
Top
RazielFMX
l33t
l33t
User avatar
Posts: 835
Joined: Sat Apr 23, 2005 6:35 pm
Location: NY, USA

Re: Tomayto tomahto...

  • Quote

Post by RazielFMX » Wed Aug 16, 2006 4:33 am

jsmaye wrote:Well, now, which is it? I've gotten two contradictory replies. :?

Does revdep-rebuild fix the errors it finds or do I?
It depends. It will try to fix what it can.

I saw a similair issue once, it turns out there were some files ~/.rev* that I had to remove. Then I reran revdep-rebuild, resolving the issues.
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Top
sageman
Guru
Guru
User avatar
Posts: 363
Joined: Wed May 04, 2005 2:25 pm
Location: New Hampshire

  • Quote

Post by sageman » Wed Aug 16, 2006 5:35 am

Revdep-rebuild will try to re-emerge packages to fix broken binaries. However, if those binaries belong to packages which have alreadly been unmerged, or, packages which no longer are in portage, it will fail.

I use revdep-rebuild to find what is reported as "broken". These "broken" files, I then run through equery belongs, and if they don't belong to anything, I delete them.

I never just run revdep-rebuild, it's always with "--pretend", and I look at the ~/.revdep* files to diagnosis what's going on.
Carlton Stedman
Gentoo Metalheads on Last.fm: http://www.last.fm/group/Gentoo+Metalheads
Top
RazielFMX
l33t
l33t
User avatar
Posts: 835
Joined: Sat Apr 23, 2005 6:35 pm
Location: NY, USA

  • Quote

Post by RazielFMX » Wed Aug 16, 2006 5:37 am

sageman wrote:Revdep-rebuild will try to re-emerge packages to fix broken binaries. However, if those binaries belong to packages which have alreadly been unmerged, or, packages which no longer are in portage, it will fail.

I use revdep-rebuild to find what is reported as "broken". These "broken" files, I then run through equery belongs, and if they don't belong to anything, I delete them.

I never just run revdep-rebuild, it's always with "--pretend", and I look at the ~/.revdep* files to diagnosis what's going on.
As do I, especially during large updates, or after a particularly nasty --depclean.
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Top
Carlo
Developer
Developer
User avatar
Posts: 3356
Joined: Mon Aug 12, 2002 10:57 pm

Re: Tomayto tomahto...

  • Quote

Post by Carlo » Wed Aug 16, 2006 12:29 pm

jsmaye wrote:Does revdep-rebuild fix the errors it finds or do I?
Depends. :) The script itself is a workaround for missing reverse dependency support of Portage and as that it's not perfect. And Portage won't uninstall files it once has installed, but have been touched in between. Also symlinks were not uninstalled on unmerging with older versions.

Checking broken symlinks and comparing them with /var/db/pkg/*/*/CONTENTS to find out if a broken symlink was installed by some ebuild, so it's worth to file a bug, or if they're are just left over and can be cleaned out should not be the problem.
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy