Gentoo Archives: gentoo-user

From: Holly Bostick <motub@××××××.nl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Does (-win32codecs) mean Slots?
Date: Wed, 13 Jul 2005 11:34:17
Message-Id: 42D4FACE.2070509@planet.nl
In Reply to: Re: [gentoo-user] Does (-win32codecs) mean Slots? by David Morgan
1 David Morgan schreef:
2 > On 12:39 Wed 13 Jul , Holly Bostick wrote:
3 >>Obviously -- or at least it seems obvious to me, but that doesn't say
4 >>much-- that if the package is hard-masked, the USE flag that is
5 >>associated with it will be disabled (because the package the USE flag
6 >>would call is unavailable).
7 >
8 >
9 > Maybe, but that's not the way portage works these things out
10 >
11 Well, it looks like you're at least partially right-- I went back to the
12 source:
13
14 > # Copyright 2004 Gentoo Foundation.
15 > # Distributed under the terms of the GNU General Public License v2
16 > # $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/use.mask,v 1.14 2005/05/20 11:52:10 lu_zero Exp $
17 >
18 > # This file masks out USE flags that are simply NOT allowed in the default
19 > # profile for any architecture. This works, for example, if a non-default
20 > # profile (such as the selinux profiles) have a USE flag associated with
21 > # them.
22 >
23 > uclibc
24 >
25 > # aqua USE flag is only valid on Mac OS X
26 > aqua
27 >
28 > # amd64 only:
29 > emul-linux-x86
30 >
31 > # sparc only:
32 > ultra1
33 >
34 > # x86 only
35 > divx4linux
36 > win32codecs
37 > kqemu
38
39
40 > # Copyright 2004 Gentoo Foundation.
41 > # Distributed under the terms of the GNU General Public License, v2
42 > # $Header: /var/cvsroot/gentoo-x86/profiles/default-linux/x86/use.mask,v 1.8 2005/05/21 01:13:41 lu_zero Exp $
43 >
44 > # This file masks out USE flags that are simply NOT allowed in the default
45 > # x86 profile. This works, for example, if another architecture's
46 > # profile have a USE flag associated with (such as altivec, mmx, etc).
47 >
48 > # Unmask x86 instruction sets
49 > -mmx
50 > -mmx2
51 > -mmxext
52 > -sse
53 > -sse2
54 > -3dnow
55 > -3dnowext
56 > -win32codecs
57
58 Plus, these files are where the masks are, the use.mask for the uclibc
59 profile only contains
60
61 > pam
62 > nls
63 > nptl
64 > nis
65 > # aqua USE flag is only valid on Mac OS X
66 > aqua
67 >
68 > # this seems to pull in pre compiled glibc libs.
69 > divx4linux
70 >
71 > emul-linux-x86
72 >
73 >
74 >
75
76 and nothing else (and the other folders in the profile folder don't
77 contain a use.mask).
78
79 Oh, wait a minute, I think I found it:
80
81 > # Copyright 1999-2004 Gentoo Foundation
82 > # Distributed under the terms of the GNU General Public License v2
83 > # $Header: /var/cvsroot/gentoo-x86/profiles/selinux/use.mask,v 1.1 2005/05/08 23:37:08 pebenito Exp $
84 >
85 > -selinux
86 >
87 > # disallow posix acl since this is SELinux
88 > acl
89 >
90 > # aqua USE flag is only valid on Mac OS X
91 > aqua
92 >
93 > # must use a specific SELinux profile that unmasks this
94 > uclibc
95 >
96 >
97 >
98 > # Copyright 1999-2004 Gentoo Foundation
99 > # Distributed under the terms of the GNU General Public License v2
100 > # $Header: /var/cvsroot/gentoo-x86/profiles/selinux/2005.1/x86-uclibc/use.mask,v 1.3 2005/05/14 20:53:38 pebenito Exp $
101 >
102 > -uclibc
103 >
104 > -win32codecs
105 >
106 > # PPC instructions
107 > altivec
108 >
109 > nls
110 >
111
112 But from this, it looks like there is no way to unmask the USE flags in
113 question-- "simply NOT allowed" seems pretty definitive, although a
114 careful reading of man portage might reveal a loophole. But I doubt it..
115 and in fact, it does not seem to have any such, from the files list in
116 man portage:
117
118
119 > SYNOPSIS
120 > /etc/
121 > make.globals
122 > make.conf(5)
123 >
124 > /etc/make.profile/
125 > deprecated
126 > make.defaults
127 > packages
128 > packages.build
129 > package.provided
130 > parent
131 > use.defaults
132 > use.mask
133 > virtuals
134 >
135 > /etc/portage/
136 > bashrc
137 > package.mask
138 > package.unmask
139 > package.keywords
140 > package.use
141 > mirrors
142 > categories
143 >
144 > /etc/portage/profile/
145 > site-specific overrides of /etc/make.profile/
146 >
147 > /usr/portage/profiles/
148 > arch.list
149 > categories
150 > info_pkgs
151 > info_vars
152 > package.mask
153 > profiles.desc
154 > thirdpartymirrors
155 > use.desc
156 > use.local.desc
157 > use.mask
158 >
159 > /var/lib/portage/
160 > world
161 >
162
163 Don't see anything like a use.unmask file.
164
165 What I would now be interested in, if this concerned me, is why this
166 particular USE flag is "simply NOT allowed" under this extremely
167 specialized profile, but I have no idea where I would find that
168 information (except maybe b.g.o, or the gentoo docs related to either
169 uclibc, hardened/selinux, masked packages, or all of the above).
170
171 Holly
172
173 --
174 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Does (-win32codecs) mean Slots? David Morgan <david.morgan@××××××××××××××××.uk>