Unix Technical Forum

Unmasking whole package groups

This is a discussion on Unmasking whole package groups within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Is there a way to unmask a whole group in /etc/portage/package.keywords? For example: x11-themes/* instead of: x11-themes/crystal x11-themes/gentoo-artwork x11-themes/gentoo-xcursors ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-03-2008, 04:58 AM
Nikos Chantziaras
 
Posts: n/a
Default Unmasking whole package groups

Is there a way to unmask a whole group in /etc/portage/package.keywords?

For example:

x11-themes/*


instead of:

x11-themes/crystal
x11-themes/gentoo-artwork
x11-themes/gentoo-xcursors
x11-themes/gtk-chtheme
x11-themes/gtk-engines-qtcurve
x11-themes/hicolor-icon-theme
x11-themes/qtcurve
x11-themes/vanilla-dmz-aa-xcursors
x11-themes/vanilla-dmz-xcursors
(...)

I'd like to do this for non-critical things like "media-fonts/*",
"x11-themes/*", "games-misc/*" and stuff like that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-04-2008, 06:48 AM
pk
 
Posts: n/a
Default Re: Unmasking whole package groups

On Thursday 3 July 2008 02:54, Nikos Chantziaras wrote:

> Is there a way to unmask a whole group in /etc/portage/package.keywords?
>
> For example:
>
> x11-themes/*
>
>
> instead of:
>
> x11-themes/crystal
> x11-themes/gentoo-artwork
> x11-themes/gentoo-xcursors
> x11-themes/gtk-chtheme
> x11-themes/gtk-engines-qtcurve
> x11-themes/hicolor-icon-theme
> x11-themes/qtcurve
> x11-themes/vanilla-dmz-aa-xcursors
> x11-themes/vanilla-dmz-xcursors
> (...)
>
> I'd like to do this for non-critical things like "media-fonts/*",
> "x11-themes/*", "games-misc/*" and stuff like that.


emerge autounmask
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-04-2008, 06:49 AM
Nikos Chantziaras
 
Posts: n/a
Default Re: Unmasking whole package groups

pk wrote:
> On Thursday 3 July 2008 02:54, Nikos Chantziaras wrote:
>
>> Is there a way to unmask a whole group in /etc/portage/package.keywords?
>>
>> For example:
>>
>> x11-themes/*
>> [...]

>
> emerge autounmask


Unfortunately, autounmask doesn't do what I want. It only unmasks
dependencies, not whole groups. What I want is unmask x11-themes/* and
then an `emerge -auvD world` should update everything in x11-themes to
~arch.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-04-2008, 03:38 PM
pk
 
Posts: n/a
Default Re: Unmasking whole package groups

On Friday 4 July 2008 02:12, Nikos Chantziaras wrote:

> pk wrote:
>> On Thursday 3 July 2008 02:54, Nikos Chantziaras wrote:
>>
>>> Is there a way to unmask a whole group in /etc/portage/package.keywords?
>>>
>>> For example:
>>>
>>> x11-themes/*
>>> [...]

>>
>> emerge autounmask

>
> Unfortunately, autounmask doesn't do what I want. It only unmasks
> dependencies, not whole groups. What I want is unmask x11-themes/* and
> then an `emerge -auvD world` should update everything in x11-themes to
> ~arch.


Then a quick and dirty script would probably do what you need (edit as
needed, of course):

CAT=x11-themes
find /usr/portage/$CAT -maxdepth 1 -mindepth 1 -type d -printf "$CAT/%f\n"

This generates a list of all the packages in the given category. Append
~ARCH at the end and redirect to >> /etc/portage/package.use, or just
redirect the list to >> /etc/portage/package.unmask, etc....

It may be possible to get a similar list using portageq or some other native
Gentoo utility (I haven't checked).

--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-14-2008, 05:44 PM
nick
 
Posts: n/a
Default Re: Unmasking whole package groups

On 2008-07-03, Nikos Chantziaras <realnc@arcor.de> wrote:
> Is there a way to unmask a whole group in /etc/portage/package.keywords?
>
> For example:
>
> x11-themes/*
>
>
> instead of:
>
> x11-themes/crystal
> x11-themes/gentoo-artwork
> x11-themes/gentoo-xcursors
> x11-themes/gtk-chtheme
> x11-themes/gtk-engines-qtcurve
> x11-themes/hicolor-icon-theme
> x11-themes/qtcurve
> x11-themes/vanilla-dmz-aa-xcursors
> x11-themes/vanilla-dmz-xcursors
> (...)
>
> I'd like to do this for non-critical things like "media-fonts/*",
> "x11-themes/*", "games-misc/*" and stuff like that.


I'm Paludis can do that without trouble. Its config files are (to
me at least) far saner. Indeed it does it in pretty much exactly your
example syntax, e.g. to allow unstable x86 builds in games-misc you'd
add this line to /etc/paludis/keywords.conf:

games-misc/* ~x86

But then of course you're stepping rather more into unsupported
territory...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com