-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 11/04/15 01:14 PM, Michał Górny wrote:
> Dnia 2015-04-11, o godz. 15:23:52 James Le Cuirot
> <[email protected]> napisał(a):
> 
>> On Sat, 11 Apr 2015 16:00:36 +0200 Pacho Ramos <[email protected]>
>> wrote:
>> 
>>> As that USE flag should only be used for being able to install
>>> the package the first time, maybe it should be treated in a
>>> "special" way. I mean, it shouldn't be easily changed by users
>>> but, instead, switched "internally" by the package manager to
>>> allow to unbreak the cycle.
>> 
>> If it only needs to be applied the first time, should there even
>> be a flag at all? Maybe it could be more transparent than that?
> 
> You have to have the flag to conditionally apply dependencies. We
> don't have a magic 'only-if-it-doesnt-cause-circulars' syntax :P.
> 

...maybe we should?

Another modifier character on an atom would be horrid, but a variable
containing a list dependencies that could be ignored/dropped from the
depgraph if a circle occurs might not be a bad idea?

Example for dev-util/pkgconfig:

DEPEND_CIRCULARITY_TRUNCATE="dev-libs/glib:2"

src_configure() {
        if has "dev-libs/glib:2" "${CIRCULARITY_TRUNCATED_ATOMS}"; then
                # .. set it up to use bundled glib
        fi
}


(Note this is half-baked, i'm not sure if i can even identify all of
the possible use-cases this might be triggered by, let alone how it
would fail)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iF4EAREIAAYFAlUr/QgACgkQ2ugaI38ACPAPTwD/elG71XjuKYEw9YlP4Ajwx5y/
35vvi/vbtaugXEvuFHYA/37rH9j2XkKwLHEl0BPmz4iqZw5kFDNWg+oTnCTXktRS
=8cwn
-----END PGP SIGNATURE-----

Reply via email to