On Sun, 2015-03-08 at 15:47 +0000, Joakim Tjernlund wrote:
> On Sat, 2015-03-07 at 12:18 -0800, Zac Medico wrote:
> > On 03/06/2015 02:15 AM, Joakim Tjernlund wrote:
> > > I am trying to define a custom profile in one of our overlay(managed via 
> > > layman)
> > > This profile should inherit one of /usr/portage/profiles/ and
> > > then I want to add custom USE flags, mask, keywords packages etc, then 
> > > eselect this new profile.
> > > 
> > > I cannot work out how to do this, any pointers?
> > > portage: 2.2.18
> > > 
> > >  Jocke
> > > 
> > 
> > Set "profile-formats = portage-2" in metadata/layout.conf of your overlay. 
> > The is documented in the 
> > "portage" man page. It allows you to specify a profile from another 
> > repository in the "parent" file of 
> > you 
> > profile. For example, gentoo:default/linux/amd64/13.0/desktop in your 
> > "parent" file will cause your 
> > overlay's profile to inherit from that gentoo profile. If you list your 
> > profiles in 
> > profiles/profiles.desc 
> > in you overlay, then eselect profile will see them.
> 
> Thanks Zac, I did the above and got my own profile :)
> 
> I can get package.accept_keywords work the same as my keyword installed at
> /etc/portage/package.keywords.
> 
> 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

Reply via email to