Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89056 - USE flag 'wavelan' appears in global and local description files
Summary: USE flag 'wavelan' appears in global and local description files
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gentoo Quality Assurance Team
URL:
Whiteboard:
Keywords:
: 89979 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-14 03:20 UTC by Andre Hinrichs
Modified: 2006-02-16 11:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ShellScript for detecting doubled use flags (check-for-doubled-useflags,287 bytes, application/octet-stream)
2005-04-15 00:20 UTC, Andre Hinrichs
Details
Simple script who explain use with emerge -pv pkg | script (getuse.py,2.41 KB, text/plain)
2005-04-21 18:04 UTC, Guillaume Bouchard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Hinrichs 2005-04-14 03:20:49 UTC
I think, that USE flags should appear only in one file, shouldn't they?
Found USE flag 'wavelan' in use.desc and use.local.desc
Haven't checked others. There may be more conflicts...


Reproducible: Always
Steps to Reproduce:
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-04-14 04:04:47 UTC
Would a repoman check be good for this? Do it and report it for any use flag in IUSE...
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2005-04-14 07:59:54 UTC
I'd love to see a repoman check for this.  
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2005-04-14 12:21:35 UTC
There was the idea floating around to put "better" use flag descriptions in use.local.desc for global flags, see the "USE flags" thread on gentoo-dev from March. So far no "official" decision (whatever that means), so I'm against a repoman check for now.
Comment 4 Andre Hinrichs 2005-04-14 14:06:41 UTC
Hmmm... just started the following command

find /usr/portage -name "*.ebuild" -exec grep -H -i wavelan {} \;

and couldn't find any ebuild having wavelan in IUSE...

I'm not familiar with repoman. Started it for the whole portage tree, but had to
stop it after two hours. Will try it again tomorrow if necessary.
Comment 5 Andre Hinrichs 2005-04-15 00:20:43 UTC
Created attachment 56323 [details]
ShellScript for detecting doubled use flags

I checked all use flags and found that many use flags appear in both
description files. Run the script and see for yourself.
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-04-15 03:41:25 UTC
To summarize the thread that Marius referred to, the idea is that use.desc descriptions are often too generic in relation to some packages and that use.local.desc could be used to better specify how the use flag relates to those specific packages where necessary.

Presently, there are no tools that support this (at least intentionally) but supporting it seems like a good idea, it won't break anything and there's no official policy (that I know of) that it is contrary to.

WONTFIX?
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2005-04-21 16:12:23 UTC
*** Bug 89979 has been marked as a duplicate of this bug. ***
Comment 8 Guillaume Bouchard 2005-04-21 18:04:05 UTC
Created attachment 56884 [details]
Simple script who explain use with emerge -pv pkg | script

Not very clean, but a good idea to start for the script discuted in
commentaries
Comment 9 Guillaume Bouchard 2005-04-21 18:10:23 UTC
Also, i think that it is not a good idea to put the use flag description per packages in use.local.desc as Marius Mauch propose.

I think it is better to put it in the ebuild, or a separated file by the package's (modifier, owner..). Because of this, when a package will be updated, the use flags description will be too and doesn't need a use.local.desc update.
Comment 10 TGL 2005-04-22 07:58:27 UTC
This all sounds closely related to bug #84884, where there is some code that makes emerge and equery display this special flags descriptions. It provides a small API  that would make it very easy to add checks in repoman too.
Comment 11 Mark Loeser (RETIRED) gentoo-dev 2006-02-16 11:06:37 UTC
Well, I removed all the duplicates where it made sense to.  Having portage handle use descriptions differently is an entirely different bug.