Gentoo Archives: gentoo-portage-dev

From: Simon Stelling <blubb@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] use.force and package.use.force (bug #142853)
Date: Mon, 07 Aug 2006 22:39:40
Message-Id: 44D7C0F8.5040400@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] use.force and package.use.force (bug #142853) by Andrew Gaffney
1 Andrew Gaffney wrote:
2 >> Flag shouldn't be forced, period imo.
3 >
4 > I could not agree with this more. I've been watching this whole thread
5 > wondering when certain people were gonna see how dumb this idea actually
6 > is (no offense...I've backed my fair share of dumb ideas). It's a crappy
7 > alternative for Alec's IUSE defaults.
8
9 Can you elaborate on how default use flags relate to forcing/masking flags? I'm
10 just too dumb to see the relation, other than they're both about use flags...
11
12 That being said, I would have liked this feature already 1.5 years ago. If we
13 had had use.force at that time, we didn't have to introduce a
14 has_multilib_profile function and mask the multilib use flag which lead to much
15 confusion amongst the users, because up to 2004.3 we told them that they would
16 be unable to get anything 32bit running without that flag and then suddenly they
17 all saw (-multilib) in their emerge -pv output. We could have simply continued
18 to use that flag, forcing it on multilib-enabled profiles and masking it on the
19 no-multilib ones.
20
21 Other examples are probably 'selinux' on selinux-profiles, 'pic' on hardened
22 (not sure about that one), and ip28 on ip28 profiles (as spb pointed out on IRC).
23
24 You may argue that there are not many USE flags, but we have a prove that the
25 concept would be useful, and the work's basically already been done, so let's
26 use it.
27
28 > I know there will be cases where someone will want to force a flag on
29 > for one (or more) package but there will be other packages that forcing
30 > the same flag on is undesireable. Unless use.force can be done
31 > per-package, it will always be a very crappy alternative to IUSE
32 > defaults. Even then, it should still *act* like IUSE defaults (stuck
33 > somewhere in the USE stacking order and "easily" overridden).
34
35 I only see this useful for local USE flags which you want to force, like e.g.
36 ip28. That being said, Zac's patch already handles that case, AFAIK.
37
38 --
39 Kind Regards,
40
41 Simon Stelling
42 Gentoo/AMD64 Developer
43 --
44 gentoo-portage-dev@g.o mailing list