Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [pre-GLEP] Optional runtime dependencies via runtime-switchable USE flags
Date: Fri, 22 Jun 2012 13:44:00
Message-Id: 4FE47662.6040104@gentoo.org
In Reply to: Re: [gentoo-dev] [pre-GLEP] Optional runtime dependencies via runtime-switchable USE flags by Zac Medico
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 22/06/12 12:48 AM, Zac Medico wrote:
5 > On 06/21/2012 02:32 PM, David Leverton wrote:
6 >> Michał Górny wrote:
7 >>> But in the current form, the spec doesn't allow passing
8 >>> IUSE_RUNTIME flags to has_version() so we're on the safe side
9 >>> :P.
10 >>
11 >> True. Do we want to keep it that restrictive?
12 >
13 > Shouldn't has_version allow any atom that would be allowed in
14 > *DEPEND?
15
16 Technically it could, but the issue here would be what you are going
17 to do with a has_version check on an IUSE_RUNTIME dep -- the package
18 should do filesystem-identical installs no matter what status of
19 IUSE_RUNTIME flags, so whatever one would do with a has_version check
20 would have to not change any part of the build or installation.
21
22 I could see it being of use within pkg_configure(), though; ie, emerge
23 - --config pkg should then be able to reliably set up default configs
24 based on the runtime installs. However, that's the only place I can
25 picture it being viable.
26
27 -----BEGIN PGP SIGNATURE-----
28 Version: GnuPG v2.0.17 (GNU/Linux)
29
30 iF4EAREIAAYFAk/kdmIACgkQ2ugaI38ACPBtsQEAs1Ak9JQnDFt4XuG/4ZfYGfH2
31 u92QpchtCGHhYbERx1wA/3AyghQuEv8WZ2iIfXoW9zWnelutj5fdqF4adSjMwf9x
32 =0XPN
33 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] [pre-GLEP] Optional runtime dependencies via runtime-switchable USE flags David Leverton <levertond@××××××××××.com>