Gentoo Archives: gentoo-dev

From: Pacho Ramos <pacho@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] About trying to prevent downgrades of packages that cause system breakage
Date: Sat, 30 Jun 2012 17:32:11
Message-Id: 1341077453.3770.4.camel@belkin4
In Reply to: Re: [gentoo-dev] About trying to prevent downgrades of packages that cause system breakage by Ian Stakenvicius
1 El sáb, 30-06-2012 a las 13:17 -0400, Ian Stakenvicius escribió:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA256
4 >
5 > On 30/06/12 11:16 AM, Mike Frysinger wrote:
6 > > On Saturday 30 June 2012 07:22:39 Zac Medico wrote:
7 > >> On 06/30/2012 04:07 AM, Pacho Ramos wrote:
8 > >>> I would like to discuss a bit more issues like:
9 > >>> https://bugs.gentoo.org/show_bug.cgi?id=423087
10 > >>>
11 > >>> Even if there are "a lot" of packages that can cause this
12 > >>> breakage when downgraded, I think it should be prevented and
13 > >>> package managers shouldn't try to downgrade this kind of
14 > >>> packages as they will later cause a total breakage. People is
15 > >>> not supposed to know that downgrading some package system will,
16 > >>> for example, have an unusable gcc.
17 > >>
18 > >> It seems like a die in pkg_pretend would serve pretty well.
19 > >
20 > > doing it on a per-ebuild basis doesn't make much sense. a simple
21 > > version compare (like we do in glibc as an exception to this rule
22 > > because of its much wider implication) is incorrect: the new
23 > > version might not introduce any new symbols compared to the old
24 > > one, and even if it has, other packages might not have been linked
25 > > against the new symbols. -mike
26 >
27 > Instead of preventing downgrade wouldn't it make more sense to figure
28 > out a way to force a rebuild on @system or @toolchain or whatever bits
29 > are broken as soon as the downgrade occurs, rather than just making it
30 > a one-way ticket? If we could sort this out (and sub-slots may help
31 > with this, but probably we'll need some extra work too) then we could
32 > probably support switching from ~arch to arch at a whim.. Not
33 > necessarily a bad goal.
34 >
35
36 The problem is that, in this kind of breakage, gcc breaks as soon as
37 zlib is downgraded and, then, user cannot compile anything, needing to
38 manually find missing zlib lib from any other distributions binaries,
39 put it in the system and re-emerge zlib :|

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies