Gentoo Archives: gentoo-user

From: Zac Medico <zmedico@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Depclean and cross-foo/gcc
Date: Fri, 19 Oct 2007 23:31:26
Message-Id: 47193A5F.1030203@gentoo.org
In Reply to: Re: [gentoo-user] Depclean and cross-foo/gcc by Daniel Barkalow
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Daniel Barkalow wrote:
5 > According to the man page, --prune will remove the old version that I want
6 > to keep. I want to have 3.4.4-r1 and (currently) 4.2.2, but I don't care
7 > about 4.1.2. When 4.2.3 comes out, I'll want that instead of 4.2.2.
8
9 The problem is that world atoms are greedy with respect to slots, so
10 if you have cross-avr/gcc in world then a global `emerge
11 - --depclean` will not remove 4.2.2 after 4.2.3 has been installed.
12 System atoms are not greedy for slots, so you can solve the problem
13 like this:
14
15 mkdir -p /etc/portage/profile
16 echo "*cross-avr/gcc" >> /etc/portage/profile/packages
17 echo "*cross-avr/gcc:3.4" >> /etc/portage/profile/packages
18
19 That pull the highest available overall and the highest available
20 from the 3.4 SLOT into your system set (the "packages" file is
21 documented in `man portage`). Remove the cross-avr/gcc atoms from
22 /var/lib/portage/world since you won't need them anymore. Once
23 you've done that, a global `emerge --depclean` should remove
24 everything except the highest available overall version and the
25 highest available from the 3.4 SLOT.
26
27 Zac
28 -----BEGIN PGP SIGNATURE-----
29 Version: GnuPG v2.0.7 (GNU/Linux)
30
31 iD8DBQFHGTpe/ejvha5XGaMRAukLAKCkVjyegFQYtE/ZHRPKE1cWfwfsKwCg25L0
32 TZCq6dvV/itwakHdG9bjKvA=
33 =G1j+
34 -----END PGP SIGNATURE-----
35 --
36 gentoo-user@g.o mailing list