Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] Can't mask a package

1 view
Skip to first unread message

Pupino

unread,
Jul 2, 2009, 6:40:12 AM7/2/09
to
Hello everybody,
i'm having troubles with the policykit package, and i've discovered
that the new version (0.92) has broken all APIs and this causes some
packages to not compile anymore (network manager in my case).
So i tried to mask it and keep the 0.9-r1 version instead, but with no result.
I've added it to /etc/portage/package.mask and tried this forms:
=sys-auth/policykit-0.92
>=sys-auth/policykit-0.92
and also
sys-auth/policykit-0.92
that should prenvet any version of it being merged, right?
none of those attempts worked for me, and emerge keeps trying to merge it...
i'm running a x86 system with no accept keywords set.
any ideas?

Thanks in advance.
Davide

Dale

unread,
Jul 2, 2009, 7:00:16 AM7/2/09
to

Well, actually all policykit packages are masked and keyworded by
portage already.

[-P-] [M~] sys-auth/policykit-0.9 (0)
[-P-] [M~] sys-auth/policykit-0.9-r1 (0)
[-P-] [M~] sys-auth/policykit-0.92 (0)

So I would think you need to unmask the version you do want to install
and then leave the rest alone. Basically remove everything policykit
from mask and just add =sys-auth/policykit-0.9-r1 to unmask and keyword
files. If it ever goes stable, it will upgrade at that time as well.

I hope that helps.

Dale

:-) :-)

Volker Armin Hemmann

unread,
Jul 2, 2009, 7:10:08 AM7/2/09
to

have you unmasked policykit?

because if you did - package.unmask always overrules package.mask. So you have
to be very specific when unmasking stuff.

David

unread,
Jul 2, 2009, 9:00:18 AM7/2/09
to
Is hal trying to pull it in?
emerge -pv hal
[ebuild R ] sys-apps/hal-0.5.12_rc1-r6 USE="X acpi consolekit crypt
policykit -apm -debug -dell -disk-partition -doc -laptop (-selinux)" 0 kB

--
Powered by Gentoo GNU/Linux
http://linuxcrazy.com

Pupino

unread,
Jul 2, 2009, 5:20:11 PM7/2/09
to
2009/7/2 David <da...@pythontoo.com>:

Dale is right, the package was listed in both package.unmask and
package.keywords, and that has been made by autounmask to satisfy some
kde4 dependencies, that's why i didn't know it...
Deleted it from there and network manager is compiling fine again.
Thanks to all and sorry for the stupid question...

Davide

Mark Shields

unread,
Jul 4, 2009, 12:20:11 PM7/4/09
to
Other people replied with the fixes, but I just want to chime in and say 1 of those isn't a valid package atom:

sys-auth/policykit-0.92

The other 2 are valid.  The first one will mask only version 0.92.  The 2nd one will obviously mask 0.92 and above.  If you want to mask all policykit versions, just add:

sys-auth/policykit

--
- Mark Shields
0 new messages