From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 85073138CBF for ; Mon, 16 Mar 2015 16:32:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 66EDBE09CC; Mon, 16 Mar 2015 16:32:02 +0000 (UTC) Received: from gw1.transmode.se (gw1.transmode.se [195.58.98.146]) by pigeon.gentoo.org (Postfix) with ESMTP id 47EE4E091A for ; Mon, 16 Mar 2015 16:32:00 +0000 (UTC) Received: from exch1.transmode.se (exch1.transmode.se [192.168.201.16]) by gw1.transmode.se (Postfix) with ESMTP id C9C241186FBB for ; Mon, 16 Mar 2015 17:31:59 +0100 (CET) Received: from exch1.transmode.se (192.168.201.16) by exch1.transmode.se (192.168.201.16) with Microsoft SMTP Server (TLS) id 15.0.995.29; Mon, 16 Mar 2015 17:31:59 +0100 Received: from exch1.transmode.se ([fe80::fc1a:b575:a6a1:145b]) by exch1.transmode.se ([fe80::fc1a:b575:a6a1:145b%19]) with mapi id 15.00.0995.028; Mon, 16 Mar 2015 17:31:59 +0100 From: Joakim Tjernlund To: "gentoo-portage-dev@lists.gentoo.org" Subject: Re: [gentoo-portage-dev] custom profiles? Thread-Topic: [gentoo-portage-dev] custom profiles? Thread-Index: AQHQV/aEYoJuCeJj/kyWychB2qEDZZ0RZvsAgAFGyYCAABR6AIAAIL2AgASB7oCAACPLAIAAJwQAgAAHrYCABGtRgIAAIECAgAAJQQCAAASEAIAACUwAgAAZhQCAAUhuAIABkMcA Date: Mon, 16 Mar 2015 16:31:58 +0000 Message-ID: <1426523518.3123.113.camel@transmode.se> References: <1425636949.22708.149.camel@transmode.se> <54FB5D04.3090102@gentoo.org> <1425829669.22708.214.camel@transmode.se> <1425834066.22708.220.camel@transmode.se> <54FC9BC9.50108@gentoo.org> <1426088901.31989.31.camel@transmode.se> <550081CC.3010103@gentoo.org> <1426104966.31989.78.camel@transmode.se> <5500A8F7.2010608@gentoo.org> <1426349563.3123.55.camel@transmode.se> <55047909.5040502@gentoo.org> <1426358476.3123.67.camel@transmode.se> <55048496.4040707@gentoo.org> <1426361442.3123.73.camel@transmode.se> <5504A1CA.8040801@gentoo.org> <1426437452.3123.80.camel@transmode.se> In-Reply-To: <1426437452.3123.80.camel@transmode.se> Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.15.91 x-originating-ip: [192.168.200.4] Content-Type: text/plain; charset="iso-8859-15" Content-ID: <696FD83575941444968371C30F0CEA4C@transmode.com> Content-Transfer-Encoding: quoted-printable Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 X-Archives-Salt: 0d3303ad-41c2-4cec-b7d1-b7ebc7d316e9 X-Archives-Hash: 88310f882e0f56397500857e9f39e2b5 On Sun, 2015-03-15 at 16:37 +0000, Joakim Tjernlund wrote: > On Sat, 2015-03-14 at 14:02 -0700, Zac Medico wrote: > > On 03/14/2015 12:30 PM, Joakim Tjernlund wrote: > > > On Sat, 2015-03-14 at 11:57 -0700, Zac Medico wrote: > > > > On 03/14/2015 11:41 AM, Joakim Tjernlund wrote: > > > > > On Sat, 2015-03-14 at 11:08 -0700, Zac Medico wrote: > > > > > > On 03/14/2015 09:12 AM, Joakim Tjernlund wrote: > > > > > > > On Wed, 2015-03-11 at 13:43 -0700, Zac Medico wrote: > > > > > > > > On 03/11/2015 01:16 PM, Joakim Tjernlund wrote: > > > > > > > > > On Wed, 2015-03-11 at 10:56 -0700, Zac Medico wrote: > > > > > > > > > > On 03/11/2015 08:48 AM, Joakim Tjernlund wrote: > > > > > > > > > > > On Sun, 2015-03-08 at 11:58 -0700, Zac Medico wrote: > > > > > > > > > > > > On 03/08/2015 10:01 AM, Joakim Tjernlund wrote: > > > > > > > > > > > > > On Sun, 2015-03-08 at 15:47 +0000, Joakim Tjernlu= nd wrote: > > > > > > > > > > > > > >=20 > > > > > > > > > > > > > > package.use/package.use.force is a bit differen= t though: > > > > > > > > > > > > > > cat /etc/portage/package.use/qemu > > > > > > > > > > > > > > app-emulation/qemu vde -alsa -pulseaudio -bluet= ooth -opengl =20 > > > > > > > > > > > > > > qemu_user_targets_x86_64=20 > > > > > > > > > > > > > > xattr=20 > > > > > > > > > > > > > > virtfs=20 > > > > > > > > > > > > > > static- > > > > > > > > > > > > > > user > > > > > > > > > > > > > >=20 > > > > > > > > > > > > > > #Needed by static-user > > > > > > > > > > > > > > sys-libs/zlib static-libs > > > > > > > > > > > > > > dev-libs/glib static-libs > > > > > > > > > > > > > > sys-apps/attr static-libs > > > > > > > > > > > > > >=20 > > > > > > > > > > > > > > Moving this to package.use/package.use.force do= es not respect -alsa, -pulseaudio,=20 > > > > > > > > > > > > > > - > > > > > > > > > > > > > > opengl=20 > > > > > > > > > > > > > > all > > > > > > > > > > > > > > flags which has a - on them, emerge wants to tu= rn them on again. > > > > > > > > > > > > > >=20 > > > > > > > > > > > > > > Am I missing something? > > > > > > > > > > > > > > Using portage 2.2.18 > > > > > > > > > > > > >=20 > > > > > > > > > > > > > Appears one have to use package.use.mask for that= . > > > > > > > > > > > > > cat package.use.mask > > > > > > > > > > > > > app-emulation/qemu alsa pulseaudio bluetooth ope= ngl > > > > > > > > > > > > > It would be handy if one could use the same synta= x as in=20 > > > > > > > > > > > > > /etc/portage/package.use/qemu(- > > > > > > > > > > > > > alsa - > > > > > > > > > > > > > opengl=20 > > > > > > > > > > > > > etc.) > > > > > > > > > > > > >=20 > > > > > > > > > > > > > Jocke > > > > > > > > > > > > >=20 > > > > > > > > > > > >=20 > > > > > > > > > > > > Yes, the inverted use.mask logic can be confusing i= f you are not familiar with it.=20 > > > > > > > > > > > > The=20 > > > > > > > > > > > > negative=20 > > > > > > > > > > > > flags=20 > > > > > > > > > > > > have a > > > > > > > > > > > > special meaning within the context of of portage's = "incremental stacking" behavior,=20 > > > > > > > > > > > > so=20 > > > > > > > > > > > > they=20 > > > > > > > > > > > > can=20 > > > > > > > > > > > > still=20 > > > > > > > > > > > > be=20 > > > > > > > > > > > > useful, though not in the same way that you you att= empted to use them. > > > > > > >=20 > > > > > > > Just noticed that USE flags in profiles/package.use.mask over= ride everything so this > > > > > > > USE=3Dthin emerge -av sys-fs/lvm2 > > > > > > > will not turn on thin if thin is in profiles/package.use.mask > > > > > > > How can just change the default so a user can easily turn it = on ? > > > > > >=20 > > > > > > Generally, setting the USE environment variable like that is po= or practice, because the setting=20 > > > > > > will=20 > > > > > > not=20 > > > > > > persist the next time that you rebuild the package. So, you sho= uld set the flag in=20 > > > > >=20 > > > > >=20 > > > > > I know, this was just an example to illustrate that it did not wo= rk. > > > > >=20 > > > > > > /etc/portage/package.use. You can unmask the flag for lvm2 like= this: > > > > > >=20 > > > > > > echo "sys-fs/lvm2 -thin" >> /etc/portage/profile/package.use.= mask > > > > >=20 > > > > > You misunderstand, I have "sys-fs/lvm2 thin" in /etc/portage/prof= ile/package.use.mask > > > > > and I want a user to able to override this setting, using USE=3D"= .." or adding it > > > > > to their local /etc/portage/package.use file/dir > > > >=20 > > > > There's no other way to negate a use mask than to use=20 > > > > /etc/portage/profile/{use.mask,package.use.mask}=20 > > > > as I=20 > > > > have described. I don't think that it makes much sense to negate a = use mask for a single emerge=20 > > > > invocation.=20 > > > > If you want to do that, then why is the use flag masked anyway? > > >=20 > > > I am putting tougher a profile for my company where I want to specify= default > > > USE flags for different apps/libs. Then a user who knows what he/she = is doing > > > should be able to override these defaults. It is not possible as far = as I can tell to override negative=20 > > > USE flags or is there? > >=20 > > You can set default USE flags in the profile, and then the users can ov= erride those settings locally=20 > > (both=20 > > positively and negatively). You should not be using use.mask at all her= e. The profile can set USE=3D"-flag"=20 > > in make.defaults, or in packages.use, and the user can override that wi= thout having to mess with use.mask. >=20 > That is how I started, I added -thin etc. to profile's package.use and it= didn't work so I moved over > to package.mask. > Now when I try with -thin again in profile's package.use it actually work= s! > I have no idea what got wrong the first time. > Anyhow, thank you for your patience. I will continue moving over all Tran= smode stuff to our new profile the=20 > next few days :) hmm, spoke too fast. Negative USE flags in profiles package.use works on ot= her computers but mine :-( I have in profiles package.use: app-emulation/qemu usb usbredir vde qemu_user_targets_x86_64 xattr virtfs = static-user -alsa -pulseaudio -bluetooth -opengl but on my computer the -USE flags(-alsa -pulseaudio -bluetooth -opengl) hav= e no effect. I have been looking high and low what could case this but no luck, any poin= ters ?=20 Jocke=