Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140002 - Support for wildcards in /etc/portage/package.* files
Summary: Support for wildcards in /etc/portage/package.* files
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 187312 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-11 08:55 UTC by Alexia Death
Modified: 2007-08-01 07:17 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexia Death 2006-07-11 08:55:01 UTC
It would be beneficial for both usabillity and manageabillity if entries like

kde-*\* ~x86 would be supported in package.keywords for example to make testing anything KDE...

:) Hoping to see this feature soon. 

Best wishes in improving this tool,
Alexia Death.

P.S Do forgive me if this has been requested before. Search did not turn up anything...
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-01-28 09:33:18 UTC
Hmm, at most I'd support the notion of 'category/*' wildcards, but even that is more complicated to implement than one might think, as either
a) we try to expand when parsing the files, which needs a portdbapi instance that isn't easily available at that stage or
b) we'd have to add special case code all over the place

Additionally this is rather easy to work around with portage-2.1 and using package.* directories, for your example you'd just do a 

cd $PORTDIR
echo kde-*/* | grep metadata.xml > /etc/portage/package.keywords/kde

Only real drawback is that you have to update/regenerate that list from time to time to include new packages, but even that could be automated with a postsync hook.
Comment 2 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-01-28 13:56:53 UTC
(In reply to comment #1)
> echo kde-*/* | grep metadata.xml > /etc/portage/package.keywords/kde

That should have read:

ls -d kde-*/* | grep -v metadata.xml > /etc/portage/package.keywords/kde

Right?
Comment 3 Alexia Death 2007-01-28 14:09:05 UTC
If implementing this within portage is difficult in existing framework a solution could be a new tool. New file package.*.wildcards that would have the wildcarded notation that is parsed into a package.*/wildgen file with a separate command on demand.and then the package.*/wildgen is used also... Keeping lines of script everywhere for this common task is uncomfortable...
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2007-01-29 15:55:30 UTC
(In reply to comment #3)
> If implementing this within portage is difficult in existing framework a
> solution could be a new tool. New file package.*.wildcards that would have the
> wildcarded notation that is parsed into a package.*/wildgen file with a
> separate command on demand.and then the package.*/wildgen is used also...
> Keeping lines of script everywhere for this common task is uncomfortable...
> 

Feel free to write it; essentially the only reason why it's not implemented already is because no one cares to work on it.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2007-08-01 07:17:29 UTC
*** Bug 187312 has been marked as a duplicate of this bug. ***