From: Zac Medico <zmedico@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Preventing $ARCH flags in USE
Date: Wed, 17 Sep 2008 08:07:33 -0700 [thread overview]
Message-ID: <48D11D35.1050005@gentoo.org> (raw)
In-Reply-To: <3c32af40809151301k4d38e79eu68df25a26917613f@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Santiago M. Mola wrote:
> On Mon, Sep 15, 2008 at 9:45 PM, Vlastimil Babka <caster@gentoo.org> wrote:
>> I think it's better to prevent this rather than waste time with bug
>> reports like that. I asked Zac on IRC whether portage could filter such
>> flags. He suggested using use.mask in profiles. Well since ARCH is also
>> set by a profile, why not. Although a really persistent and stupid user
>> could use.unmask, it's better than no protection. And then we can think
>> how to replace the current ARCH->USE flag system with e.g. USE_EXPAND.
>> What do you think?
>>
>
> Seems like an acceptable workaround.
>
> For future EAPIs, ARCH could be a regular USE_EXPANDed flag as you
> suggest, and package managers could filter any flag in USE which is
> not listed in IUSE.
I suspect that it may be a little more than a "workaround". Consider
a case where IUSE contains elibc_glibc and the current selected
profile has set ELIBC=uclibc. In this case, the user could
conceivable set USE=elibc_glibc in make.conf, which would clearly be
an invalid setting. Therefore, it seems natural to mask the
elibc_glibc USE flag on all profiles except those which actually use
glibc.
- --
Thanks,
Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkjRHTQACgkQ/ejvha5XGaPsBwCfQ1tv/AgKH4x0PS++QtbFeav0
3NAAoJbvO3FHjt3uGL/kffOxRh7/akZq
=Ez2M
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2008-09-17 15:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-15 19:45 [gentoo-dev] Preventing $ARCH flags in USE Vlastimil Babka
2008-09-15 20:01 ` Santiago M. Mola
2008-09-15 20:20 ` Zac Medico
2008-09-16 6:01 ` Fabian Groffen
2008-09-16 6:05 ` Ciaran McCreesh
2008-09-17 15:07 ` Zac Medico [this message]
2008-09-17 16:19 ` Zac Medico
2008-09-28 16:19 ` Donnie Berkholz
2008-09-28 16:32 ` Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48D11D35.1050005@gentoo.org \
--to=zmedico@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox