Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118440 - need a way to package.unmask packages in profiles
Summary: need a way to package.unmask packages in profiles
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-09 11:38 UTC by Alexey Maximov
Modified: 2007-01-10 03:16 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Maximov 2006-01-09 11:38:39 UTC
I have file /usr/local/fantoo/profiles/fantoo-stable/package.mask
its my profile, in my overlay
my profile has parent ../../../../../usr/portage/profiles/default-linux/x86/dev/2006.0



For example, I want unmask latest net-im/gaim masked by default gentoo profile package.mask.

I create my /usr/local/fantoo/profiles/fantoo-stable/package.mask and append line
-net-im/gaim


no luck with unmasking.

same if I create 
I create my /usr/local/fantoo/profiles/fantoo-stable/package.unmask and append line
net-im/gaim



Please, create solution.
Comment 1 Allen Brooker (AllenJB) 2006-01-09 11:45:29 UTC
Use /etc/portage/package.unmask to unmask packages and /etc/portage/package.keywords to add additional accepted keywords to individual packages. More information can be found in the Gentoo Handbook: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1#doc_chap4 and http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-09 12:22:49 UTC
(In reply to comment #1)
> Use /etc/portage/package.unmask to unmask packages and
> /etc/portage/package.keywords to add additional accepted keywords to individual
> packages. More information can be found in the Gentoo Handbook:
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1#doc_chap4
> and http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3
> 

his point being /etc/portage isn't portable, when he can just distribute his profile, perhaps even with his overlay.  This is valid, was discussed on irc, and I have a patch, I'll attach it when I return home.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2006-01-09 22:07:15 UTC
I don's see net-im/gaim anywhere in package.mask, so not sure what exactly you're after.
Comment 4 Alexey Maximov 2006-01-09 23:39:28 UTC
try use gstreamer

we have mask 
>=media-libs/gstreamer-0.9.0

and want unmask via:

-media-libs/gstreamer
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2006-01-10 06:21:17 UTC
Well, overlap checks won't be done with the current profile system, it can only handle overrides for syntactically equal lines, basically a unified diff.
Basically needs a new profile subsystem for that way which won't appear anytime soon (and even then questionable).
Adding package.unmask for profiles would be the easier route but then /etc/portage/package.mask might a problem (haven't looked at the code closely enough yet), will probably be required though if/when masking via packages gets deprecated/removed.
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-10 06:37:58 UTC
Marius, part of the problem was that /etc/portage/profile wasn't even being checked for p.mask ( hence the added location in the patch ) and IIRC grabfile_packages was stripping the - out of packagenames, meaning that later when the stacking occured things were not being over-riddent, hence the changed to grabfile as opposed to grabfile_packages.  

Now the latter part *may* be wrong,I probably spent only a bit of time looking at grabfile_packages, so I will double check the code there, but I know this patch works for me.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2006-01-10 07:45:34 UTC
Heh, I don't even have a single clue what patch you're talking about ;)
Nor do I think that what you described has something to do with this request.
Comment 8 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-01-10 07:53:49 UTC
(In reply to comment #7)
> Heh, I don't even have a single clue what patch you're talking about ;)
> Nor do I think that what you described has something to do with this request.
> 

Arr I forgot to attach it but it was sent to the portage-dev ML :)
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2007-01-10 03:03:02 UTC
Not worth the effort.
Comment 10 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-01-10 03:16:16 UTC
(In reply to comment #2)
> his point being /etc/portage isn't portable, when he can just distribute his
> profile, perhaps even with his overlay.

How is a profile that inherits from an x86 profile any more portable that /etc/portage? AFAICT /etc/portage can be redistributed just as easily as a profile in an overlay..