Gentoo Archives: gentoo-portage-dev

From: Joakim Tjernlund <joakim.tjernlund@×××××××××.se>
To: "gentoo-portage-dev@l.g.o" <gentoo-portage-dev@l.g.o>
Subject: Re: [gentoo-portage-dev] custom profiles?
Date: Sat, 14 Mar 2015 16:12:49
Message-Id: 1426349563.3123.55.camel@transmode.se
In Reply to: Re: [gentoo-portage-dev] custom profiles? by Zac Medico
1 On Wed, 2015-03-11 at 13:43 -0700, Zac Medico wrote:
2 > On 03/11/2015 01:16 PM, Joakim Tjernlund wrote:
3 > > On Wed, 2015-03-11 at 10:56 -0700, Zac Medico wrote:
4 > > > On 03/11/2015 08:48 AM, Joakim Tjernlund wrote:
5 > > > > On Sun, 2015-03-08 at 11:58 -0700, Zac Medico wrote:
6 > > > > > On 03/08/2015 10:01 AM, Joakim Tjernlund wrote:
7 > > > > > > On Sun, 2015-03-08 at 15:47 +0000, Joakim Tjernlund wrote:
8 > > > > > > >
9 > > > > > > > package.use/package.use.force is a bit different though:
10 > > > > > > > cat /etc/portage/package.use/qemu
11 > > > > > > > app-emulation/qemu vde -alsa -pulseaudio -bluetooth -opengl qemu_user_targets_x86_64 xattr
12 > > > > > > > virtfs
13 > > > > > > > static-
14 > > > > > > > user
15 > > > > > > >
16 > > > > > > > #Needed by static-user
17 > > > > > > > sys-libs/zlib static-libs
18 > > > > > > > dev-libs/glib static-libs
19 > > > > > > > sys-apps/attr static-libs
20 > > > > > > >
21 > > > > > > > Moving this to package.use/package.use.force does not respect -alsa, -pulseaudio, -opengl all
22 > > > > > > > flags which has a - on them, emerge wants to turn them on again.
23 > > > > > > >
24 > > > > > > > Am I missing something?
25 > > > > > > > Using portage 2.2.18
26 > > > > > >
27 > > > > > > Appears one have to use package.use.mask for that.
28 > > > > > > cat package.use.mask
29 > > > > > > app-emulation/qemu alsa pulseaudio bluetooth opengl
30 > > > > > > It would be handy if one could use the same syntax as in /etc/portage/package.use/qemu(-alsa -
31 > > > > > > opengl
32 > > > > > > etc.)
33 > > > > > >
34 > > > > > > Jocke
35 > > > > > >
36 > > > > >
37 > > > > > Yes, the inverted use.mask logic can be confusing if you are not familiar with it. The negative
38 > > > > > flags
39 > > > > > have a
40 > > > > > special meaning within the context of of portage's "incremental stacking" behavior, so they can
41 > > > > > still
42 > > > > > be
43 > > > > > useful, though not in the same way that you you attempted to use them.
44
45 Just noticed that USE flags in profiles/package.use.mask override everything so this
46 USE=thin emerge -av sys-fs/lvm2
47 will not turn on thin if thin is in profiles/package.use.mask
48 How can just change the default so a user can easily turn it on ?
49
50 jcoke

Replies

Subject Author
Re: [gentoo-portage-dev] custom profiles? Zac Medico <zmedico@g.o>