Chris Gianelloni wrote:

Here's my question... use.local.desc is already package-specific, so why
would we need yet *another* place to put package-specific definitions?
Would it not be enough to have use.local.desc overlay on use.desc?  If
package foo uses global USE flag bar in a way different from the
description in use.desc, then it should list the USE flag in
use.local.desc with the correct description for that package.

That's another good idea, and i think it could produce the same results. The only downside I can think of is that use.local.desc wouldn't allow for version-specific flags. But 'equery uses' already solves this as it only displays defs for the flags in the IUSE of the ebuild being queried. The only case not covered is if the same flag is used in two versions of a package to mean different things, and i don't see that happening.

euse is a bit different, but still not a problem.  right now it does this:

  root ~ #  euse -i mozilla
  global use flags (searching: mozilla)
  ************************************************************
  [-    ] mozilla - Adds mozilla support

  local use flags (searching: mozilla)
  ************************************************************
  no matching entries found


it could do this instead:


  root ~ #  euse -i mozilla
  global use flags (searching: mozilla)
  ************************************************************
  [-    ] mozilla - Adds mozilla support

  local use flags (searching: mozilla)
  ************************************************************
  [-    ] mozilla (app-fake/fooapp):
  builds the optional mozilla browser plugin

  [-    ] mozilla (app-fake/someotherapp):
  use embedded mozilla engine to render newsfeeds in html

  [-    ] mozilla (app-fake/yetanotherapp):
  summon giant lizard to invade Tokyo


actually i just realized this already works with euse, no changes necessary. :D

thoughts/suggestions/kicksinthenuts? what other than equery would need to be fixed to recognize the overlay? is there anything that would explicitly break if a USE flag was in both use.desc and use.local.desc?

--de.

--
gentoo-dev@gentoo.org mailing list

Reply via email to