public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] IUSE and eclasses
Date: Thu, 7 Jul 2005 14:07:06 -0700	[thread overview]
Message-ID: <20050707210706.GD15563@curie-int.orbis-terrarum.net> (raw)
In-Reply-To: <20050707204913.GB19353@kaf.zko.hp.com>

[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]

On Thu, Jul 07, 2005 at 04:49:13PM -0400, Aron Griffis wrote:
> Current (possibly unwritten) policy:
>   - eclasses declare USE-flags they honor in their own IUSE
>   - ebuilds declare USE-flags they honor in their own IUSE
>   - ebuilds do not declare USE-flags honored by eclasses they inherit

The policy itself is almost fine, it's the checking we need to improve.

The only policy problem case that is where an eclass has a flag
declared, but the ebuild doesn't use that part of the eclass at all, on
purpose.  Either the ebuild/eclass should be changed, or we should have
a way to take flags out of IUSE further down the line.

> So right now the policy is broken, but the apparent alternative is
> unmanageable.  Ideas?
Before changing more, it would be good to have some proper repoman
checks for this stuff.

It should be easily doable, as there are only a few proper ways to use
USE flags in your ebuild. This would also help catch ebuilds/eclasses
not declaring IUSE properly, or having old stuff in IUSE that isn't
actually used anymore.

The only official ways to use USE flags are (at least to my knowledge):
use FLAG
usev FLAG
useq FLAG
use_enable FLAG
use_with FLAG

I don't think I'm missing any here am I?

The only other change is that repoman would need to work on eclasses.

-- 
Robin Hugh Johnson
E-Mail     : robbat2@orbis-terrarum.net
Home Page  : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ#       : 30269588 or 41961639
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 241 bytes --]

  reply	other threads:[~2005-07-07 21:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-07 20:49 [gentoo-dev] IUSE and eclasses Aron Griffis
2005-07-07 21:07 ` Robin H. Johnson [this message]
2005-07-07 21:26   ` Aron Griffis
2005-07-07 21:39   ` [gentoo-dev] " Michael Sterrett -Mr. Bones.-
2005-07-07 22:13 ` [gentoo-dev] " Mike Frysinger
2005-07-08  0:39   ` Aron Griffis

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=20050707210706.GD15563@curie-int.orbis-terrarum.net \
    --to=robbat2@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