Gentoo Archives: gentoo-dev

From: Daniel Campbell <zlg@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] "Lazy" use flags?
Date: Fri, 12 Feb 2016 00:12:35
Message-Id: 56BD2368.9020707@gentoo.org
In Reply to: Re: [gentoo-dev] "Lazy" use flags? by William Hubbs
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 02/11/2016 04:01 PM, William Hubbs wrote:
5 > I'm just picking a random message in the thread to reply to.
6 >
7 > In the past, we had a feature, I think it was called "auto use",
8 > that would automatically turn on a use flag if the package that was
9 > needed to support it was installed.
10 >
11 > As an example, if we still had this, python_targets_2_7 would be
12 > automatically turned on if dev-lang/python-2.7 was installed.
13 >
14 > Is this along the lines of what we are talking about?
15 >
16 > William
17 >
18
19 No, lazy USE in this discussion is akin to installing, say, Steam.
20 That requires a lot of packages that must be rebuilt with abi_x86_32.
21 In such a situation, if there was something like USE="~abi_x86_32"
22 (the ~ is just a symbol, it wouldn't have to be that exact symbol),
23 then packages that need that USE flag would automatically use it, and
24 those that don't need it wouldn't be built with it.
25
26 It's kind of a "I'll allow this USE flag, but only if you need it"
27 instead of what we currently have, which is a hard YES or NO. The
28 in-between case (not clarifying USE flags at all) works fine for
29 packages but not necessarily for USE flags. Installing something like
30 Steam, wine, or Skype requires a huge swath of abi_x86_32 flags.
31
32 I and others get around this by partitioning these flags to files, but
33 should something in dependencies change, we'll still be building those
34 packages in 32-bit unnecessarily.
35
36 So it's closer to what we do for dependency resolution on packages,
37 just applied to USE flags.
38
39 (hopefully I explained well enough)
40
41 - --
42 Daniel Campbell - Gentoo Developer
43 OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
44 fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6
45 -----BEGIN PGP SIGNATURE-----
46 Version: GnuPG v2
47
48 iQIcBAEBCAAGBQJWvSNnAAoJEAEkDpRQOeFwVd4P/2h2D31S2jOiafs9PM0In8VD
49 PasOphNcKIQp+SNmN5BRQNieKXKRpSzkQSvb1Sk3UUOsR+36jN23GtvLeYvpEJsg
50 fsjsrZrBs9Wvv/eMK2+OAU1VCXDx4Mbc5uSCc0JM+nNhx2IR9jvfGefto3WD0pC5
51 Bjg5mP+yB/MZ+IXUaHKVmTtiGo0PM3NRPUOlaOi0icMw5OUFlvY9eQo2z0dEaNrq
52 SDTsm19adaxsygZPiog101KHGZ1NgoYWZcA+sIR97ZU0tIQPBd9RKVcUe7Q/4YOu
53 DH5mSWDyBwsdGY6wVfoNkrWhpL7ZvRqux5C3bicOtep+dvbog5cBAljQOxB39to4
54 3g/ufouooBk1GIzMFdo3JI3i9DB0rwCY2PLJsMGRQxYdQZo3K75LQDwG78gHOEMD
55 +YOiC/T0zOx6NZ3L4Nfw0ntD0/T0NxiM9IOg2E1hK01W8ehpwCvhriVKR9SyReW4
56 6pkzMzgJNBUG6T35+hwUbgb1AsM/Pk7Ye21+DWO4ed/7EFj8QlXe0Yk9At9RMTe1
57 8mdV7oQSvE3BaYhFmsUOgiiiMFqx7IyVmiBUvBVpnmDSxk7NRPSSVl5sP900yDlx
58 eHdy9uazaWgnWYyZU1zKpIAD3wn5Qo3BbdDMj4VC+IsLAvvovSnkOFwEIAGgmrN7
59 vCz3wmcDozbSh0vXuUWk
60 =X+4h
61 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] "Lazy" use flags? Rich Freeman <rich0@g.o>