From: Ciaran McCreesh <ciaran.mccreesh@googlemail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] On flags being in IUSE (and the prefix USE-flag in particular)
Date: Mon, 10 Sep 2012 09:32:23 +0100 [thread overview]
Message-ID: <20120910093223.441c9aa3@googlemail.com> (raw)
In-Reply-To: <20120910081856.GA74867@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1463 bytes --]
On Mon, 10 Sep 2012 10:18:56 +0200
Fabian Groffen <grobian@gentoo.org> wrote:
> Normally, if you use a USE-flag, you add them to IUSE of the ebuild.
> However, some USE-flags have been considered too general to put them
> in there in the past.
That's not exactly why. Historically (as in, way before EAPI days) IUSE
was purely a visual thing: it was used for emerge -pv output, but not
anything affecting behaviour. Thus, people didn't list things that
weren't worth showing to the user.
That all went out of the window when we got package.use, new-use
support, etc. At that point, IUSE had to be fairly accurate. It became
even more important when we introduced use dependencies and use
dependency defaults. Not having an accurate IUSE means that
dependencies like cat/pkg[prefix(-)] can't work. This is why the
original EAPI 3 tidied all this up properly.
Unfortunately, due to EAPI 3 becoming EAPI 4 and having some features
removed, use dependency defaults ended up being "supported" without
having the necessary information to make them work correctly in all
cases, and prefix ended up being supported but without the "prefix" use
flag being special.
So really we should just not support prefix at all in any EAPI before
5, and not have the whole "but define those prefix variables anyway"
hack in eclasses. But apparently people are preferring to go to great
lengths not to have to use newer EAPIs...
--
Ciaran McCreesh
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-09-10 8:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 17:32 [gentoo-dev] On flags being in IUSE (and the prefix USE-flag in particular) Fabian Groffen
2012-09-07 18:29 ` Michał Górny
2012-09-07 23:38 ` Gregory M. Turner
2012-09-10 8:18 ` Fabian Groffen
2012-09-10 8:32 ` Ciaran McCreesh [this message]
2012-09-10 9:25 ` Fabian Groffen
2012-09-10 9:28 ` Ciaran McCreesh
2012-09-10 9:46 ` Fabian Groffen
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=20120910093223.441c9aa3@googlemail.com \
--to=ciaran.mccreesh@googlemail.com \
--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