On Tue, 08 Aug 2006 12:18:10 -0700,
Zac Medico <[EMAIL PROTECTED]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Stuart Herbert wrote:
> > Any chance of per-package USE defaults support?  That's much more
> > useful to me.
> 
> Attached to bug 61732 there's a patch that implements this via a new
> IUSE_DEFAULTS ebuild variable.

I see USE_ORDER becomes "...:pkg:conf:iuse_defaults:..." in your
patch.  Have you considered using "...:pkg:iuse_defaults:conf:..."
instead?  Imo, the feature would better this way, because: 

 - one would still benefit of the package defaults when using a
make.conf with USE="-* ...".  This would be a good thing especially
when a "+foo" default has been used to replace an old IUSE="nofoo".

 - one would get the "best" flags everywhere when a global flag, for
instance a library flag, which is good in general (and thus that people
set in their make.conf) is just not the best alternative in the context
of one particular package. 

And also, it just sounds more logical/intuitive to me that some
per-package defaults are only overridable at a per-package level.

Sure, this may also complicates life of a user who don't want "libfoo"
at all, if the "libfoo" flag is set per-default in 20 packages he uses.
But i would expect this won't happen; flags which are good defaults in
general would rather stay in make.defaults i guess.

--
TGL.
-- 
gentoo-dev@gentoo.org mailing list

Reply via email to