* [gentoo-user] Depclean and cross-foo/gcc
@ 2007-10-19 16:21 Daniel Barkalow
2007-10-19 17:50 ` Zac Medico
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Barkalow @ 2007-10-19 16:21 UTC (permalink / raw
To: gentoo-user
I've been doing a lot of --depclean lately, and I've run into something
odd. "emerge --depclean cross-avr/gcc" wants to remove all 3 versions, but
it's in my world file. On the other hand, "emerge --depclean" doesn't want
to remove any of them. I initially set this up with a crossdev that's now
quite ancient, which may be significant, but I don't want to entirely redo
all my avr compilers to get them with the new crossdev.
What I'd actually like is to have a specific version (the one that our
code is most heavily tested with), and the latest version (to test that).
Is there some way to have --depclean see a dependancy on a specific
version (or slot, as I've already masked other versions that would be in
that slot) from world or the equivalent?
-Daniel
*This .sig left intentionally blank*
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Depclean and cross-foo/gcc
2007-10-19 16:21 [gentoo-user] Depclean and cross-foo/gcc Daniel Barkalow
@ 2007-10-19 17:50 ` Zac Medico
2007-10-19 22:18 ` Daniel Barkalow
0 siblings, 1 reply; 4+ messages in thread
From: Zac Medico @ 2007-10-19 17:50 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Daniel Barkalow wrote:
> I've been doing a lot of --depclean lately, and I've run into something
> odd. "emerge --depclean cross-avr/gcc" wants to remove all 3 versions, but
> it's in my world file. On the other hand, "emerge --depclean" doesn't want
> to remove any of them. I initially set this up with a crossdev that's now
> quite ancient, which may be significant, but I don't want to entirely redo
> all my avr compilers to get them with the new crossdev.
>
> What I'd actually like is to have a specific version (the one that our
> code is most heavily tested with), and the latest version (to test that).
> Is there some way to have --depclean see a dependancy on a specific
> version (or slot, as I've already masked other versions that would be in
> that slot) from world or the equivalent?
I think you want --prune, since --depclean behaves like a dependency
aware version of --unmerge.
Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
iD8DBQFHGO5L/ejvha5XGaMRAuErAJ9X9fs1gK2Iyp2G9gvJlBf8Da0VwACgl/iQ
ZCYrEPK4lkhxwG4hGPBN+N4=
=yQOh
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Depclean and cross-foo/gcc
2007-10-19 17:50 ` Zac Medico
@ 2007-10-19 22:18 ` Daniel Barkalow
2007-10-19 23:14 ` Zac Medico
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Barkalow @ 2007-10-19 22:18 UTC (permalink / raw
To: gentoo-user
On Fri, 19 Oct 2007, Zac Medico wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Daniel Barkalow wrote:
> > I've been doing a lot of --depclean lately, and I've run into something
> > odd. "emerge --depclean cross-avr/gcc" wants to remove all 3 versions, but
> > it's in my world file. On the other hand, "emerge --depclean" doesn't want
> > to remove any of them. I initially set this up with a crossdev that's now
> > quite ancient, which may be significant, but I don't want to entirely redo
> > all my avr compilers to get them with the new crossdev.
> >
> > What I'd actually like is to have a specific version (the one that our
> > code is most heavily tested with), and the latest version (to test that).
> > Is there some way to have --depclean see a dependancy on a specific
> > version (or slot, as I've already masked other versions that would be in
> > that slot) from world or the equivalent?
>
> I think you want --prune, since --depclean behaves like a dependency
> aware version of --unmerge.
According to the man page, --prune will remove the old version that I want
to keep. I want to have 3.4.4-r1 and (currently) 4.2.2, but I don't care
about 4.1.2. When 4.2.3 comes out, I'll want that instead of 4.2.2.
-Daniel
*This .sig left intentionally blank*
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Depclean and cross-foo/gcc
2007-10-19 22:18 ` Daniel Barkalow
@ 2007-10-19 23:14 ` Zac Medico
0 siblings, 0 replies; 4+ messages in thread
From: Zac Medico @ 2007-10-19 23:14 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Daniel Barkalow wrote:
> According to the man page, --prune will remove the old version that I want
> to keep. I want to have 3.4.4-r1 and (currently) 4.2.2, but I don't care
> about 4.1.2. When 4.2.3 comes out, I'll want that instead of 4.2.2.
The problem is that world atoms are greedy with respect to slots, so
if you have cross-avr/gcc in world then a global `emerge
- --depclean` will not remove 4.2.2 after 4.2.3 has been installed.
System atoms are not greedy for slots, so you can solve the problem
like this:
mkdir -p /etc/portage/profile
echo "*cross-avr/gcc" >> /etc/portage/profile/packages
echo "*cross-avr/gcc:3.4" >> /etc/portage/profile/packages
That pull the highest available overall and the highest available
from the 3.4 SLOT into your system set (the "packages" file is
documented in `man portage`). Remove the cross-avr/gcc atoms from
/var/lib/portage/world since you won't need them anymore. Once
you've done that, a global `emerge --depclean` should remove
everything except the highest available overall version and the
highest available from the 3.4 SLOT.
Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
iD8DBQFHGTpe/ejvha5XGaMRAukLAKCkVjyegFQYtE/ZHRPKE1cWfwfsKwCg25L0
TZCq6dvV/itwakHdG9bjKvA=
=G1j+
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-19 23:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 16:21 [gentoo-user] Depclean and cross-foo/gcc Daniel Barkalow
2007-10-19 17:50 ` Zac Medico
2007-10-19 22:18 ` Daniel Barkalow
2007-10-19 23:14 ` Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox