Gentoo Archives: gentoo-amd64

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-amd64@l.g.o
Subject: [gentoo-amd64] Re: Upgrading glibc and glib
Date: Mon, 06 Apr 2009 19:15:47
Message-Id: pan.2009.04.06.19.15.35@cox.net
In Reply to: Re: [gentoo-amd64] Re: Upgrading glibc and glib by Beso
1 Beso <givemesugarr@×××××.com> posted
2 d257c3560904060746s174aa32did5b25175f5df1fc3@××××××××××.com, excerpted
3 below, on Mon, 06 Apr 2009 16:46:10 +0200:
4
5 > after upgrading packages like glibc and glib, or other system packages
6 > (packages included in the system set), it's a must you run
7 > revdep-rebuild to fix broken dependencies. running revdep-rebuild it's
8 > safer also when upgrading normal packages that could break other
9 > packages, like ffmpe, x264 or python. i usually run it at least once a
10 > week or after a system upgrade.
11
12 FWIW, I run it after every update, which is generally at least once a
13 week here and is often daily. Along with emerge --pretend --depclean,
14 revdep-rebuild --pretend and acting on the resulting list (if any) is as
15 much a part of my routine post-update- session cleanup as emerge --sync
16 is a part of the pre-update-session preparation. As with etc-update too,
17 if I don't do it, I've not yet finished my update. It's all part of
18 keeping a clean and well functioning system.
19
20 BTW, having --as-needed in your LDFLAGS **DRAMATICALLY** reduces the
21 number of packages that end up in the revdep-rebuild list. Where there
22 may be a one or two packages to rebuild with as-needed, without it
23 there'll likely be a dozen or more! See Flameeyes' blog (as seen on
24 Gentoo planet) among other places for more info. I think there's a bit
25 more than that needed in the actual LDFLAGS (-Wl,-z maybe?), but I have
26 several other LDFLAGS merged into the same expression and am not sure
27 whether the -Wl prefix applies to --as-needed or not.
28
29 --
30 Duncan - List replies preferred. No HTML msgs.
31 "Every nonfree program has a lord, a master --
32 and if you use the program, he is your master." Richard Stallman