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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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 |
| |||
| 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. |
| |||
| 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. |
| ||||
| 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... |