Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 17952

Summary: Unmask script to merge packages.mask with portdir_overlay version
Product: Portage Development Reporter: Jason Rhinelander <gentoo>
Component: CoreAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED FIXED    
Severity: enhancement CC: sbeck
Priority: High    
Version: 2.0   
Hardware: All   
OS: All   
URL: http://forums.gentoo.org/viewtopic.php?t=42845
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Unmask script
Sample PORTDIR_OVERLAY profiles/package.mask file
Updated unmask script

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:

!>=sys-apps/baselayout-1.8.6.0

ends up commenting out 5 lines (=1.8.6.0 through =1.8.6.4) 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
touche 
 
add in latest 2.0.48-pre's: /etc/portage/package.mask 
 
;)