Forums

Skip to content

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

[revdep-rebuild] vs [emerge -uD world] ??

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
qbic2005
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 81
Joined: Fri Nov 11, 2005 8:52 am
Location: Belgium

[revdep-rebuild] vs [emerge -uD world] ??

  • Quote

Post by qbic2005 » Mon Jan 04, 2010 7:53 pm

Hi boys & girls :wink:

I'm a happy gentoo user for (i think) 6 years now and I like gentoo for it's flexibility, options for customization and I learned a lot about linux. Some other distro's smile at me but once I use them for a week or so, I get bored and return happily to gentoo. (yes I have the irresistible need to screw up my system and anything else I can get my hands on :twisted: )

My problem is that I rebuild over 500 packages through [revdep-rebuild] and [emerge update Deep world] some 3 months ago, because I screwed something up. Now with a system that was fully updated 3 months ago, I pulled in a package yesterday, which needed an upgrade from (what I call) a core lib which I obviously did ... a (quick) revdep-rebuild shows me that I will have to recompile/upgrade 359 packages -- Oh Fun! -- and this number is growing since a large amount of packages is obsolete yet again, which means I have to [emerge update Deep world] to get everything going -- yet again!

I will definitely stay with gentoo, but what is going wrong?
* Can I avoid these rebuilds (and still install new and crazy things)?
* Would it help to do a weekly system update? (I guess not )
* Did I somehow miss the right solution?
* Or is it because it has been pretty quit around gentoo for some years and that we are getting a boost in development and maintenance now? (which is actually a good thing ;) )
* ...

My initial system was installed 4 years ago and yes I have a lots of 'unstable' and 'testing' packages as well as some overlay's and other stuff installed.
Will a fresh install free me from this problem for at least some time?

Thanks for reading and many thanks for posting :!:
Top
wim-x
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 110
Joined: Fri Nov 26, 2004 3:08 pm
Location: Netherlands

  • Quote

Post by wim-x » Mon Jan 04, 2010 8:55 pm

hey qbic2005,

of course you can always screw up your system in such a way that you need to rebuild a lot. However, when asked for a revdep-rebuild I always check if I really need the packages I was asked to emerge again. Some could be leftover dependencies from previously unmerged packages. I simply check each doubtful package with a:

Code: Select all

equery depends <package>
and check each resulting dependency (if any) again if in doubt. When none of them are needed, they can be unmerged, keeping your system clean.

regards, Wim
Top
qbic2005
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 81
Joined: Fri Nov 11, 2005 8:52 am
Location: Belgium

  • Quote

Post by qbic2005 » Mon Jan 04, 2010 10:11 pm

Thanks for the tip, with well over 300 broken decency's I don't really see it as an option and as a matter of fact, most stuff is effectively broken in the mean while (or at least a part of it).
--It all started out with libxcb which needed upgrading and which took down all the rest. (I know, there is a guide, I followed it...)--

But if it is for a smaller number of packages, it's quite a nice idea actually, because cleaning out the whole depency stuff at once is not obvious ;)
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Mon Jan 04, 2010 11:45 pm

Please post your emerge --info
Top
pigeon768
l33t
l33t
Posts: 683
Joined: Mon Jan 02, 2006 1:13 pm

Re: [revdep-rebuild] vs [emerge -uD world] ??

  • Quote

Post by pigeon768 » Tue Jan 05, 2010 1:18 am

qbic2005 wrote:* Would it help to do a weekly system update? (I guess not )
Yes. Gentoo honestly kinda sucks when it comes to updating a system that hasn't been updated in months. The trouble is that if a core library gets updated, you'll often need to rebuild any packages that depend on it.

In your case, do the following:

Code: Select all

emerge -uNDav world
emerge --depclean -a                     **check to see it doesn't rid of anything you need. If it does, manually emerge the package
revdep-rebuild
You should be good to go.

Also, try unmasking portage-2.2, and then do an 'emerge -e world'. Yes, it will take a while, but afterward you shouldn't need revdep-rebuild but rarely. It keeps a list of which libraries each executable depends on, and when you upgrade a core library that changes the ABI it will keep the old library, and prompt you to 'emerge @preserved-rebuild' which will rebuild anything that depends on the library that it's trying to delete. It will only delete the library after the other packages have been rebuilt, so you still have a working system that whole time.
Top
tuam
l33t
l33t
User avatar
Posts: 765
Joined: Tue May 04, 2004 9:09 am
Location: CGN, Germany

  • Quote

Post by tuam » Tue Jan 05, 2010 9:12 am

qbic2005 wrote:It all started out with libxcb which needed upgrading and which took down all the rest. (I know, there is a guide, I followed it...)
Some other update might be like that. I suggest that you really read the elogs - learned that the hard way, too :twisted: - and try lafilefixer again.

FF,

Daniel
Logic clearly dictates that the needs of the many outweigh the needs of the few. - Spock
The needs of the one outweigh the needs of the many. - Kirk
I refuse to let arithmetic decide questions like that. - Picard
Top
qbic2005
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 81
Joined: Fri Nov 11, 2005 8:52 am
Location: Belgium

  • Quote

Post by qbic2005 » Tue Jan 05, 2010 1:30 pm

@pigeon768
The portage2.2 idea is worth giving a try :twisted: I see I still have a lot of learning to do.

Just asked a collegue what he thought about auto update and he was pro, he tried both update deep and just normal update world for some time and had the best result with deep.
I just came up with the genius idea to configure the bios for an autostart once a week to do a backup and an sync deep. -- handsfree -- till it breakes -- I like it already :twisted:

@Mike Hunt
Do you want that weekly? (just kidding) Thanks for the attention, but I don't think it is going to cure my case.

@tuam
I read elogs for 6 years now and however they are good bed time lecture, I'm getting quite bored reading the same stuff every few weeks ;)
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Tue Jan 05, 2010 1:56 pm

Updating a Gentoo only once a month can be pretty hard.

Are you using the ~arch or the stable branch ?
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Tue Jan 05, 2010 1:58 pm

qbic2005 wrote:but I don't think it is going to cure my case.
Maybe not, but if we could see what kind of setup you have then we could explain more about the volume of updates. Not all setups require as many updates.

A full unstable system with both KDE and Gnome will require the most, and need updating virtually daily.
A stable Gentoo with maybe little more than FVWM would only really need weekly updating at the very most.

Of course if there are any issues during the --pretend phase of emerge, it's always better to check in here before proceeding, just in case.

Finally, it is always a very good idea to run revdep-rebuild and emerge --depclean -av after each and every world update.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Tue Jan 05, 2010 2:12 pm

I always run :

Code: Select all

# revdep-rebuild -i
just to be sure.
Top
monsm
Guru
Guru
User avatar
Posts: 467
Joined: Wed Sep 26, 2007 1:27 pm
Location: London, UK

  • Quote

Post by monsm » Tue Jan 05, 2010 2:34 pm

Not sure if this was said.

Its not a matter of emerge -DNuv world VS revdep-rebuild

You will need both. I just finished an update, first one for 6 weeks. "emerge -DNuv world" did 255 packages. One of the deep down libraries got updated, so the subsequent revdep-rebuild did another 100+ packes.

Thats just how it is. It is easier if you do it more often, but with reasonably good hardware it isn't so bad. Just leave it to run over night.

Mons
Top
qbic2005
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 81
Joined: Fri Nov 11, 2005 8:52 am
Location: Belgium

  • Quote

Post by qbic2005 » Tue Jan 05, 2010 2:39 pm

@Mike Hunt
Thanks for the tips, I'll surely slot these commands somewhere in the script.

@d2_racing
Yep, but that is just to clean out revdep-rebuild, that doesn't solve anything, it just makes sure u don't have to do unnecessary rebuilds.


~arch for plenty of packages, whatever suites me actually, but not the entire system. Weekly will have to do :wink:
I used to only update world once it gets broken, about every four to six months currently.
Top
aguettinger
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Fri Sep 26, 2003 4:04 pm

  • Quote

Post by aguettinger » Tue Jan 05, 2010 2:53 pm

Strange. Can't complain on my side. I run amd64 desktop stable (-kde) and do weekly emerge --newuse --deep word followed by emerge -av --depclean and revdep-rebuild rebuilt maybe ~20 packages in total in the last 12 months or so. 90% of the time it just reports everything is ok.
regards
- andy
Top
qbic2005
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 81
Joined: Fri Nov 11, 2005 8:52 am
Location: Belgium

  • Quote

Post by qbic2005 » Tue Jan 05, 2010 3:27 pm

@aguettinger
Did you use any kind of script/setup/guide to set up the auto update :?: would be welcome, just to have a starting point :idea:

thanks :!:
Top
rtomek
Apprentice
Apprentice
User avatar
Posts: 210
Joined: Fri Jan 05, 2007 10:15 pm
Location: Chicago

  • Quote

Post by rtomek » Tue Jan 05, 2010 3:33 pm

You don't need daily or weekly updates with gentoo, your system will run fine. It's just that if you do the weekly updates, it makes each successive update that much quicker.

Just make sure you run
emerge -auvDN world
emerge --depclean
revdep-rebuild
to update rather than just the first step and you should be fine. It might take a couple hours at one time instead of a couple of minutes every day but your system should still be running with all of the updates. If it's not working properly, just do an emerge -e world overnight and it will be running for sure.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Wed Jan 06, 2010 8:25 pm

For my concern, I always run this :

Code: Select all

# eix-sync
# emerge -auDNv world
# dispatch-conf
# revdep-rebuild -i
# emerge -p --depclean
# eclean-dist -id
Top
Post Reply

16 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

 

 

magic