1 |
On Sat, 2015-03-14 at 11:57 -0700, Zac Medico wrote: |
2 |
> On 03/14/2015 11:41 AM, Joakim Tjernlund wrote: |
3 |
> > On Sat, 2015-03-14 at 11:08 -0700, Zac Medico wrote: |
4 |
> > > On 03/14/2015 09:12 AM, Joakim Tjernlund wrote: |
5 |
> > > > On Wed, 2015-03-11 at 13:43 -0700, Zac Medico wrote: |
6 |
> > > > > On 03/11/2015 01:16 PM, Joakim Tjernlund wrote: |
7 |
> > > > > > On Wed, 2015-03-11 at 10:56 -0700, Zac Medico wrote: |
8 |
> > > > > > > On 03/11/2015 08:48 AM, Joakim Tjernlund wrote: |
9 |
> > > > > > > > On Sun, 2015-03-08 at 11:58 -0700, Zac Medico wrote: |
10 |
> > > > > > > > > On 03/08/2015 10:01 AM, Joakim Tjernlund wrote: |
11 |
> > > > > > > > > > On Sun, 2015-03-08 at 15:47 +0000, Joakim Tjernlund wrote: |
12 |
> > > > > > > > > > > |
13 |
> > > > > > > > > > > package.use/package.use.force is a bit different though: |
14 |
> > > > > > > > > > > cat /etc/portage/package.use/qemu |
15 |
> > > > > > > > > > > app-emulation/qemu vde -alsa -pulseaudio -bluetooth -opengl qemu_user_targets_x86_64 |
16 |
> > > > > > > > > > > xattr |
17 |
> > > > > > > > > > > virtfs |
18 |
> > > > > > > > > > > static- |
19 |
> > > > > > > > > > > user |
20 |
> > > > > > > > > > > |
21 |
> > > > > > > > > > > #Needed by static-user |
22 |
> > > > > > > > > > > sys-libs/zlib static-libs |
23 |
> > > > > > > > > > > dev-libs/glib static-libs |
24 |
> > > > > > > > > > > sys-apps/attr static-libs |
25 |
> > > > > > > > > > > |
26 |
> > > > > > > > > > > Moving this to package.use/package.use.force does not respect -alsa, -pulseaudio, - |
27 |
> > > > > > > > > > > opengl |
28 |
> > > > > > > > > > > all |
29 |
> > > > > > > > > > > flags which has a - on them, emerge wants to turn them on again. |
30 |
> > > > > > > > > > > |
31 |
> > > > > > > > > > > Am I missing something? |
32 |
> > > > > > > > > > > Using portage 2.2.18 |
33 |
> > > > > > > > > > |
34 |
> > > > > > > > > > Appears one have to use package.use.mask for that. |
35 |
> > > > > > > > > > cat package.use.mask |
36 |
> > > > > > > > > > app-emulation/qemu alsa pulseaudio bluetooth opengl |
37 |
> > > > > > > > > > It would be handy if one could use the same syntax as in /etc/portage/package.use/qemu(- |
38 |
> > > > > > > > > > alsa - |
39 |
> > > > > > > > > > opengl |
40 |
> > > > > > > > > > etc.) |
41 |
> > > > > > > > > > |
42 |
> > > > > > > > > > Jocke |
43 |
> > > > > > > > > > |
44 |
> > > > > > > > > |
45 |
> > > > > > > > > Yes, the inverted use.mask logic can be confusing if you are not familiar with it. The |
46 |
> > > > > > > > > negative |
47 |
> > > > > > > > > flags |
48 |
> > > > > > > > > have a |
49 |
> > > > > > > > > special meaning within the context of of portage's "incremental stacking" behavior, so they |
50 |
> > > > > > > > > can |
51 |
> > > > > > > > > still |
52 |
> > > > > > > > > be |
53 |
> > > > > > > > > useful, though not in the same way that you you attempted to use them. |
54 |
> > > > |
55 |
> > > > Just noticed that USE flags in profiles/package.use.mask override everything so this |
56 |
> > > > USE=thin emerge -av sys-fs/lvm2 |
57 |
> > > > will not turn on thin if thin is in profiles/package.use.mask |
58 |
> > > > How can just change the default so a user can easily turn it on ? |
59 |
> > > |
60 |
> > > Generally, setting the USE environment variable like that is poor practice, because the setting will |
61 |
> > > not |
62 |
> > > persist the next time that you rebuild the package. So, you should set the flag in |
63 |
> > |
64 |
> > |
65 |
> > I know, this was just an example to illustrate that it did not work. |
66 |
> > |
67 |
> > > /etc/portage/package.use. You can unmask the flag for lvm2 like this: |
68 |
> > > |
69 |
> > > echo "sys-fs/lvm2 -thin" >> /etc/portage/profile/package.use.mask |
70 |
> > |
71 |
> > You misunderstand, I have "sys-fs/lvm2 thin" in /etc/portage/profile/package.use.mask |
72 |
> > and I want a user to able to override this setting, using USE=".." or adding it |
73 |
> > to their local /etc/portage/package.use file/dir |
74 |
> |
75 |
> There's no other way to negate a use mask than to use /etc/portage/profile/{use.mask,package.use.mask} as I |
76 |
> have described. I don't think that it makes much sense to negate a use mask for a single emerge invocation. |
77 |
> If you want to do that, then why is the use flag masked anyway? |
78 |
|
79 |
I am putting tougher a profile for my company where I want to specify default |
80 |
USE flags for different apps/libs. Then a user who knows what he/she is doing |
81 |
should be able to override these defaults. It is not possible as far |
82 |
as I can tell to override negative USE flags or is there? |
83 |
|
84 |
Jocke |