Gentoo Archives: gentoo-dev

From: Daniel Campbell <zlg@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] "Lazy" use flags?
Date: Tue, 09 Feb 2016 13:23:01
Message-Id: 56B9E82A.9060907@gentoo.org
In Reply to: Re: [gentoo-dev] "Lazy" use flags? by Kent Fredric
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 02/09/2016 05:19 AM, Kent Fredric wrote:
5 > On 10 February 2016 at 02:14, Daniel Campbell <zlg@g.o>
6 > wrote:
7 >> Another concern, though, is it'd result in something similar.
8 >> Instead of "cat/foo bar baz" and later removing 'baz', you'd have
9 >> "cat/foo bar ~baz" (with '~baz' as 'enable this if you need to').
10 >> You'd still have cruft left in your p.use file, and it would
11 >> achieve the same result as a well-commented file.
12 >
13 >
14 > Granted you'd still have the cruft in your config files, but it
15 > would become mostly-harmless cruft, not cruft that caused needless
16 > dependencies to get pulled into the dependency tree as a
17 > side-effect.
18 >
19 > And because it would be "only as needed", you could afford to use
20 > some of those "only if needed" useflags in a more global manner.
21 >
22 > For instance, I really don't want to globally define PYTHON_TARGETS
23 > to include python2_7, because it will simply install a lot of
24 > extra things I know I don't need.
25 >
26 > But if I could globally define something to the effect of
27 > "anything that wants python2.7 support can have it", then that's
28 > acceptable globally, because the effect would still turn things on
29 > automatically on a per-page level, not at a global level.
30 >
31 > So you could achieve the same results with much less syntax and
32 > much less effort.
33 >
34
35 I can certainly see the benefit here, but wouldn't that still result
36 in (arguably) unnecessary (re)builds? If implemented well it'd also
37 result in depcleaning them when they're later unneeded, too, so I
38 guess it's a wash in that sense.
39
40 Again, I'm not against it. In fact I'd probably use it, because some
41 packages are really picky. I just don't know how well it would fit
42 into the existing design at the code level.
43
44 - --
45 Daniel Campbell - Gentoo Developer
46 OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
47 fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6
48 -----BEGIN PGP SIGNATURE-----
49 Version: GnuPG v2
50
51 iQIcBAEBCAAGBQJWuegpAAoJEAEkDpRQOeFwoYIQALeAXnPOXzrC10AWplSt0K9D
52 O3Mp8KpiMMUfIi1neM2LQAfW6Kp3lA9CaA547TdJ2ZXBJdTSfwPMe5rsWY2wqavD
53 UvASgl4Ja4molsM3mQX3rYWbbzjZN38mZmYby26mPwyo8kAeXeqqIFDpPyG3F11M
54 0uT0lCg8W6q6qs00l02SZHmQKGQwCL4JLXNe9mj8WLcoaeMZjXwDCS3lhLz2L7at
55 bveIm/yk5JaPSc3i8zcwmjDyoJ2fQg+1u2ujl+MzgVcxY8pfSnJN0q4CV06rC4xt
56 7F65OU8DhzaNr80UUfKCNdfVXwIlDNIEK1mz/tRe3Ad4bW1NW5DJFpm9xjpSPSlD
57 Cse2GNBTxKYDi/mxlLBenCyqHta05TyzdqDODiOJRMzIXRf2jcPtOkg58tdUMl8D
58 xw/qIFwcUeC44RfX9Kb9NkQcxuhyuLSPBcnGGdxeaUtJf92wpw4AINfSLj2B8nwv
59 XyPan9bGku6gsG6C5oQ0JUsGdNu/qmukUieppE4yKbFgjzoIZcuOb18jKyDaxVKh
60 QiQ9uI2xGvQYqAHVAraykAoBEl7EHISRRLn508VB8WZUxV39q5BwYtpYrxAJtSEY
61 60NuTTKmU7CXK4czHukrKPpkwkqNGIBgK1/m7dVpXjxcXfk/cdcwilv3EmO7f6fb
62 XKundbhCB5ek42OGqTuG
63 =+Yx3
64 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] "Lazy" use flags? Kent Fredric <kentfredric@×××××.com>