1 |
On 03/14/2015 09:12 AM, Joakim Tjernlund wrote: |
2 |
> On Wed, 2015-03-11 at 13:43 -0700, Zac Medico wrote: |
3 |
>> On 03/11/2015 01:16 PM, Joakim Tjernlund wrote: |
4 |
>>> On Wed, 2015-03-11 at 10:56 -0700, Zac Medico wrote: |
5 |
>>>> On 03/11/2015 08:48 AM, Joakim Tjernlund wrote: |
6 |
>>>>> On Sun, 2015-03-08 at 11:58 -0700, Zac Medico wrote: |
7 |
>>>>>> On 03/08/2015 10:01 AM, Joakim Tjernlund wrote: |
8 |
>>>>>>> On Sun, 2015-03-08 at 15:47 +0000, Joakim Tjernlund wrote: |
9 |
>>>>>>>> |
10 |
>>>>>>>> package.use/package.use.force is a bit different though: |
11 |
>>>>>>>> cat /etc/portage/package.use/qemu |
12 |
>>>>>>>> app-emulation/qemu vde -alsa -pulseaudio -bluetooth -opengl qemu_user_targets_x86_64 xattr |
13 |
>>>>>>>> virtfs |
14 |
>>>>>>>> static- |
15 |
>>>>>>>> user |
16 |
>>>>>>>> |
17 |
>>>>>>>> #Needed by static-user |
18 |
>>>>>>>> sys-libs/zlib static-libs |
19 |
>>>>>>>> dev-libs/glib static-libs |
20 |
>>>>>>>> sys-apps/attr static-libs |
21 |
>>>>>>>> |
22 |
>>>>>>>> Moving this to package.use/package.use.force does not respect -alsa, -pulseaudio, -opengl all |
23 |
>>>>>>>> flags which has a - on them, emerge wants to turn them on again. |
24 |
>>>>>>>> |
25 |
>>>>>>>> Am I missing something? |
26 |
>>>>>>>> Using portage 2.2.18 |
27 |
>>>>>>> |
28 |
>>>>>>> Appears one have to use package.use.mask for that. |
29 |
>>>>>>> cat package.use.mask |
30 |
>>>>>>> app-emulation/qemu alsa pulseaudio bluetooth opengl |
31 |
>>>>>>> It would be handy if one could use the same syntax as in /etc/portage/package.use/qemu(-alsa - |
32 |
>>>>>>> opengl |
33 |
>>>>>>> etc.) |
34 |
>>>>>>> |
35 |
>>>>>>> Jocke |
36 |
>>>>>>> |
37 |
>>>>>> |
38 |
>>>>>> Yes, the inverted use.mask logic can be confusing if you are not familiar with it. The negative |
39 |
>>>>>> flags |
40 |
>>>>>> have a |
41 |
>>>>>> special meaning within the context of of portage's "incremental stacking" behavior, so they can |
42 |
>>>>>> still |
43 |
>>>>>> be |
44 |
>>>>>> useful, though not in the same way that you you attempted to use them. |
45 |
> |
46 |
> Just noticed that USE flags in profiles/package.use.mask override everything so this |
47 |
> USE=thin emerge -av sys-fs/lvm2 |
48 |
> will not turn on thin if thin is in profiles/package.use.mask |
49 |
> How can just change the default so a user can easily turn it on ? |
50 |
|
51 |
Generally, setting the USE environment variable like that is poor |
52 |
practice, because the setting will not persist the next time that you |
53 |
rebuild the package. So, you should set the flag in |
54 |
/etc/portage/package.use. You can unmask the flag for lvm2 like this: |
55 |
|
56 |
echo "sys-fs/lvm2 -thin" >> /etc/portage/profile/package.use.mask |
57 |
|
58 |
Or umask it globally like this: |
59 |
|
60 |
echo -thin >> /etc/portage/profile/use.mask |
61 |
|
62 |
-- |
63 |
Thanks, |
64 |
Zac |