Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17952 - Unmask script to merge packages.mask with portdir_overlay version
Summary: Unmask script to merge packages.mask with portdir_overlay version
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Nicholas Jones (RETIRED)
Depends on:
Reported: 2003-03-21 14:53 UTC by Jason Rhinelander
Modified: 2011-10-30 22:37 UTC (History)
1 user (show)

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

Unmask script (unmask,5.60 KB, text/plain)
2003-03-21 14:54 UTC, Jason Rhinelander
Sample PORTDIR_OVERLAY profiles/package.mask file (package.mask,1.78 KB, text/plain)
2003-03-21 14:59 UTC, Jason Rhinelander
Updated unmask script (unmask,6.06 KB, text/plain)
2003-03-23 22:45 UTC, Jason Rhinelander

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Rhinelander 2003-03-21 14:53:10 UTC
Due to the need for myself and a friend/co-worker, we came up with a script
(`unmask' on my system, or `mask-update` on my friend's) to merge a special
$PORTDIR_OVERLAY/profiles/package.mask file with the main
$PORTDIR/profiles/package.mask.  It allows you add new masks, or various items
to unmask.

It requires perl, PORTDIR_OVERLAY enabled, and a
$PORTDIR_OVERLAY/profiles/package.mask file.  It allows you to run it as a user,
if sudo is available, otherwise it gives an error about requiring root access.

Either similar functionality could be built into portage, or this could be
distributed with gentoolkit.

Reproducible: Always
Steps to Reproduce:
Comment 1 Jason Rhinelander 2003-03-21 14:54:17 UTC
Created attachment 9672 [details]
Unmask script
Comment 2 Jason Rhinelander 2003-03-21 14:59:10 UTC
Created attachment 9673 [details]
Sample PORTDIR_OVERLAY profiles/package.mask file

This is my sample package.mask OVERLAY file.  It allows to you specify a ! in
front of the line to indicate versions that should be commented out of the
package.mask file.

As an example, this:


ends up commenting out 5 lines (= through = from the
package.mask file, as would be expected.
Comment 3 Jason Rhinelander 2003-03-23 22:45:48 UTC
Created attachment 9745 [details]
Updated unmask script

Updated the unmask script, rearranged a bit of the code, added a few comments,
and made it use '/usr/lib/portage/bin/portageq' instead of 'emerge info'.
Comment 4 Charles Goodwin 2003-03-24 05:37:20 UTC
I'd like to see this make it into portage or the gentoolkit.

It's very useful.
Comment 5 SpanKY gentoo-dev 2003-07-18 15:22:35 UTC
add in latest 2.0.48-pre's: /etc/portage/package.unmask 
Comment 6 Jason Rhinelander 2003-07-18 17:32:30 UTC
If I understand correctly, it only allows you to remove masks, not _add_ them, which is half of what this bug is about.
Comment 7 SpanKY gentoo-dev 2003-07-18 18:34:25 UTC
add in latest 2.0.48-pre's: /etc/portage/package.mask