From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: "gentoo-portage-dev@lists.gentoo.org"
<gentoo-portage-dev@lists.gentoo.org>
Subject: Re: [gentoo-portage-dev] custom profiles?
Date: Mon, 16 Mar 2015 16:31:58 +0000 [thread overview]
Message-ID: <1426523518.3123.113.camel@transmode.se> (raw)
In-Reply-To: <1426437452.3123.80.camel@transmode.se>
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 Tjernlund wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > package.use/package.use.force is a bit different though:
> > > > > > > > > > > > > > cat /etc/portage/package.use/qemu
> > > > > > > > > > > > > > app-emulation/qemu vde -alsa -pulseaudio -bluetooth -opengl
> > > > > > > > > > > > > > qemu_user_targets_x86_64
> > > > > > > > > > > > > > xattr
> > > > > > > > > > > > > > virtfs
> > > > > > > > > > > > > > static-
> > > > > > > > > > > > > > user
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > #Needed by static-user
> > > > > > > > > > > > > > sys-libs/zlib static-libs
> > > > > > > > > > > > > > dev-libs/glib static-libs
> > > > > > > > > > > > > > sys-apps/attr static-libs
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Moving this to package.use/package.use.force does not respect -alsa, -pulseaudio,
> > > > > > > > > > > > > > -
> > > > > > > > > > > > > > opengl
> > > > > > > > > > > > > > all
> > > > > > > > > > > > > > flags which has a - on them, emerge wants to turn them on again.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Am I missing something?
> > > > > > > > > > > > > > Using portage 2.2.18
> > > > > > > > > > > > >
> > > > > > > > > > > > > Appears one have to use package.use.mask for that.
> > > > > > > > > > > > > cat package.use.mask
> > > > > > > > > > > > > app-emulation/qemu alsa pulseaudio bluetooth opengl
> > > > > > > > > > > > > It would be handy if one could use the same syntax as in
> > > > > > > > > > > > > /etc/portage/package.use/qemu(-
> > > > > > > > > > > > > alsa -
> > > > > > > > > > > > > opengl
> > > > > > > > > > > > > etc.)
> > > > > > > > > > > > >
> > > > > > > > > > > > > Jocke
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Yes, the inverted use.mask logic can be confusing if you are not familiar with it.
> > > > > > > > > > > > The
> > > > > > > > > > > > negative
> > > > > > > > > > > > flags
> > > > > > > > > > > > have a
> > > > > > > > > > > > special meaning within the context of of portage's "incremental stacking" behavior,
> > > > > > > > > > > > so
> > > > > > > > > > > > they
> > > > > > > > > > > > can
> > > > > > > > > > > > still
> > > > > > > > > > > > be
> > > > > > > > > > > > useful, though not in the same way that you you attempted to use them.
> > > > > > >
> > > > > > > Just noticed that USE flags in profiles/package.use.mask override everything so this
> > > > > > > USE=thin 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 ?
> > > > > >
> > > > > > Generally, setting the USE environment variable like that is poor practice, because the setting
> > > > > > will
> > > > > > not
> > > > > > persist the next time that you rebuild the package. So, you should set the flag in
> > > > >
> > > > >
> > > > > I know, this was just an example to illustrate that it did not work.
> > > > >
> > > > > > /etc/portage/package.use. You can unmask the flag for lvm2 like this:
> > > > > >
> > > > > > echo "sys-fs/lvm2 -thin" >> /etc/portage/profile/package.use.mask
> > > > >
> > > > > You misunderstand, I have "sys-fs/lvm2 thin" in /etc/portage/profile/package.use.mask
> > > > > and I want a user to able to override this setting, using USE=".." or adding it
> > > > > to their local /etc/portage/package.use file/dir
> > > >
> > > > There's no other way to negate a use mask than to use
> > > > /etc/portage/profile/{use.mask,package.use.mask}
> > > > as I
> > > > have described. I don't think that it makes much sense to negate a use mask for a single emerge
> > > > invocation.
> > > > If you want to do that, then why is the use flag masked anyway?
> > >
> > > 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
> > > USE flags or is there?
> >
> > You can set default USE flags in the profile, and then the users can override those settings locally
> > (both
> > positively and negatively). You should not be using use.mask at all here. The profile can set USE="-flag"
> > in make.defaults, or in packages.use, and the user can override that without having to mess with use.mask.
>
> 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 works!
> I have no idea what got wrong the first time.
> Anyhow, thank you for your patience. I will continue moving over all Transmode stuff to our new profile the
> next few days :)
hmm, spoke too fast. Negative USE flags in profiles package.use works on other
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) have no effect.
I have been looking high and low what could case this but no luck, any pointers ?
Jocke
next prev parent reply other threads:[~2015-03-16 16:32 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-06 10:15 [gentoo-portage-dev] custom profiles? Joakim Tjernlund
2015-03-07 20:18 ` Zac Medico
2015-03-08 15:47 ` Joakim Tjernlund
2015-03-08 17:01 ` Joakim Tjernlund
2015-03-08 18:58 ` Zac Medico
2015-03-11 15:48 ` Joakim Tjernlund
2015-03-11 17:56 ` Zac Medico
2015-03-11 20:16 ` Joakim Tjernlund
2015-03-11 20:27 ` Brian Dolbec
2015-03-11 20:48 ` Zac Medico
2015-03-11 21:02 ` Joakim Tjernlund
2015-03-11 22:14 ` Joakim Tjernlund
2015-03-11 22:27 ` Zac Medico
2015-03-11 20:43 ` Zac Medico
2015-03-12 21:43 ` Joakim Tjernlund
2015-03-13 0:51 ` Zac Medico
2015-03-13 7:51 ` Joakim Tjernlund
2015-03-13 12:08 ` Joakim Tjernlund
2015-03-13 17:51 ` Zac Medico
2015-03-14 12:55 ` Joakim Tjernlund
2015-03-14 17:58 ` Zac Medico
2015-03-14 18:35 ` Joakim Tjernlund
2015-03-14 18:51 ` Zac Medico
2015-03-14 16:12 ` Joakim Tjernlund
2015-03-14 18:08 ` Zac Medico
2015-03-14 18:41 ` Joakim Tjernlund
2015-03-14 18:57 ` Zac Medico
2015-03-14 19:30 ` Joakim Tjernlund
2015-03-14 21:02 ` Zac Medico
2015-03-15 16:37 ` Joakim Tjernlund
2015-03-16 16:31 ` Joakim Tjernlund [this message]
2015-03-16 18:12 ` Zac Medico
2015-04-01 21:00 ` Joakim Tjernlund
2015-04-01 21:28 ` Zac Medico
2015-04-01 21:43 ` Joakim Tjernlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426523518.3123.113.camel@transmode.se \
--to=joakim.tjernlund@transmode.se \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox