Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install Masked Package
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sun Apr 06, 2008 3:37 am    Post subject: Install Masked Package Reply with quote

How do I install a masked package?
Back to top
View user's profile Send private message
SlashRhumSlashNeisson
Apprentice
Apprentice


Joined: 30 Dec 2006
Posts: 201
Location: Lille

PostPosted: Sun Apr 06, 2008 5:25 am    Post subject: Reply with quote

Hi,

are you serious :?:

http://gentoo-wiki.com/HOWTO_Use_Portage_Correctly#A_Good_Method:_.2Fetc.2Fportage.2Fpackage.keywords


example for gspcav1 package

In /etc/portage/

Code:
# vi package.keywords
 media-video/gspcav1 ~x86


if it's mask by arch

Code:
# vi package.unmask
media-video/gspcav1


if it's mask by portage
_________________
Gentoo only
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Sun Apr 06, 2008 5:29 am    Post subject: Reply with quote

If it is masked by keyword, meaning like you are running x86 and it is keyworded as ~x86 for unstable/not-fully-tested) then you would need to do something like this:
Code:
echo sys-apps/portage ~x86 >> /etc/portage/package.use


Replace sys-apps/portage with whatever you actually want and x86 with your ARCH

If it is masked in package.mask then you need to do
Code:
echo sys-apps/portage >> /etc/portage/package.unmask


And again replace with whatever package you need

edit: Beaten to the punch
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Sun Apr 06, 2008 4:14 pm    Post subject: Reply with quote

The original poster did not specify which type of mask, and seems sufficiently ill-informed about masking that I am going to assume he or she may not know the consequences of overriding a mask. If the reader does know the consequences and just did not know the method, then ignore the rest of this post. :)

Packages are masked on purpose, usually because they are not deemed suitable for consumption by unwarned users. Unmasking the package is notification to Portage that you have been warned of the consequences of using the package, and want to proceed anyway. If a package is masked by keywords, that is an indication it may not or will not build and run correctly on your system. For instance, packages which are not 64-bit clean are marked as broken on 64-bit architectures. A package which is "unstable" may work perfectly well or it may not. If the package is masked by package.mask, that is a deliberate act by a developer to try to prevent more serious problems. Common reasons for placing a package in package.mask include, but are not limited to:

- Known serious security vulnerabilities, such as remote execution of arbitrary code.
- Known major incompatibilities with other common packages, such as an API change that breaks the compilation of other packages (e.g. neon breaks API quite often).
- Pending removal from the Portage tree, so users should not start using it now.
- Experimental package that requires extensive testing by informed users before it is unleashed on the general userbase, such as baselayout-2.

Finally, the big warning:
Masked packages often receive less or even no support. If you unmask a package without knowing what you are doing, you may be left to clean up the mess yourself if anything breaks. Forum regulars can try to help resolve problems, but you could create a sufficiently large mess that there is no quick way out.
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sun Apr 06, 2008 5:57 pm    Post subject: Reply with quote

@SlashRhumSlashNeisson - Yeah I am serious but I'm not going to install a masked package because of what Hu said.

@slycordinator -Thanks for the info

@Hu - Ok I won't use a masked package because I don't want to screw up my system

:)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Sun Apr 06, 2008 9:09 pm    Post subject: Reply with quote

EvilEye wrote:
@Hu - Ok I won't use a masked package because I don't want to screw up my system
:)


To clarify my prior post: packages which are missing a keyword or are marked as "unstable" typically will not break the system on their own. However, you could still damage the system if you upgraded a key component to a testing version that happened to be broken in some way. From what I have read, packages which are masked by package.mask can, in some cases, make a sufficient mess that the repair process would be nontrivial. For example, the hardened profiles mask =sys-libs/glibc-2.4* with a comment that indicates that installing it would break running systems.

What package were you considering installing? What was the exact error text produced by Portage when you attempted to install it without first unmasking it? Someone here might have enough experience with it to advise you whether the package is hazardous to the health of your system.
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Mon Apr 07, 2008 12:29 am    Post subject: Reply with quote

Hu wrote:
What package were you considering installing?


Code:
dev-perl/Mail-DKIM


Hu wrote:
What was the exact error text produced by Portage when you attempted to install it without first unmasking it?


Code:
penguin ~ # emerge Mail-DKIM
Calculating dependencies -
!!! All ebuilds that could satisfy "dev-perl/Mail-DKIM" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-perl/Mail-DKIM-0.30.1 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.26 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.24 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.23 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.22 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.19 (masked by: ~x86 keyword)
- dev-perl/Mail-DKIM-0.18 (masked by: ~x86 keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
Back to top
View user's profile Send private message
square_
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2007
Posts: 114

PostPosted: Mon Apr 07, 2008 2:27 am    Post subject: Reply with quote

it makes a difference whether a package is masked by keyword (unmask in /etc/portage/package.keyword) or hard masked (unmask in /etc/portage/package.unmask).
masked by keyword could be fine, most likely just not thoroughly tested.

i use a full ~x86 system without much trouble, every now and then i have to mask a single package-version that doesnt work on my system.

most new versions of packages start keyword-masked.
Back to top
View user's profile Send private message
achlice
n00b
n00b


Joined: 20 Feb 2008
Posts: 6

PostPosted: Mon Apr 07, 2008 4:13 am    Post subject: Reply with quote

nothing to do ~~~~~~~~~ just see it ~~
_________________
just do it ~~
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Tue Apr 08, 2008 12:32 am    Post subject: Reply with quote

I agree with square_. That package is neither hard masked nor critical to proper system operation. It is quite likely safe to install it.
Back to top
View user's profile Send private message
RodEz
n00b
n00b


Joined: 17 Mar 2008
Posts: 7

PostPosted: Wed Apr 09, 2008 7:06 am    Post subject: Reply with quote

there is autounmask,a good utility that modify your .keywords file automatically.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Apr 09, 2008 6:23 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
Moved in favour of https://forums.gentoo.org/viewtopic-t-33534.html
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum