Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-2008, 12:54 AM
Nikos Chantziaras
 
Posts: n/a
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.
Reply With Quote
  #2 (permalink)  
Old 07-03-2008, 09:13 AM
pk
 
Posts: n/a
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
Reply With Quote
  #3 (permalink)  
Old 07-04-2008, 12:12 AM
Nikos Chantziaras
 
Posts: n/a
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.
Reply With Quote
  #4 (permalink)  
Old 07-04-2008, 07:32 AM
pk
 
Posts: n/a
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.
Reply With Quote
  #5 (permalink)  
Old 07-08-2008, 09:01 PM
nick
 
Posts: n/a
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...
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:28 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109