1 |
On Sun, 2015-03-08 at 15:47 +0000, Joakim Tjernlund wrote: |
2 |
> On Sat, 2015-03-07 at 12:18 -0800, Zac Medico wrote: |
3 |
> > On 03/06/2015 02:15 AM, Joakim Tjernlund wrote: |
4 |
> > > I am trying to define a custom profile in one of our overlay(managed via layman) |
5 |
> > > This profile should inherit one of /usr/portage/profiles/ and |
6 |
> > > then I want to add custom USE flags, mask, keywords packages etc, then eselect this new profile. |
7 |
> > > |
8 |
> > > I cannot work out how to do this, any pointers? |
9 |
> > > portage: 2.2.18 |
10 |
> > > |
11 |
> > > Jocke |
12 |
> > > |
13 |
> > |
14 |
> > Set "profile-formats = portage-2" in metadata/layout.conf of your overlay. The is documented in the |
15 |
> > "portage" man page. It allows you to specify a profile from another repository in the "parent" file of |
16 |
> > you |
17 |
> > profile. For example, gentoo:default/linux/amd64/13.0/desktop in your "parent" file will cause your |
18 |
> > overlay's profile to inherit from that gentoo profile. If you list your profiles in |
19 |
> > profiles/profiles.desc |
20 |
> > in you overlay, then eselect profile will see them. |
21 |
> |
22 |
> Thanks Zac, I did the above and got my own profile :) |
23 |
> |
24 |
> I can get package.accept_keywords work the same as my keyword installed at |
25 |
> /etc/portage/package.keywords. |
26 |
> |
27 |
> package.use/package.use.force is a bit different though: |
28 |
> cat /etc/portage/package.use/qemu |
29 |
> app-emulation/qemu vde -alsa -pulseaudio -bluetooth -opengl qemu_user_targets_x86_64 xattr virtfs static- |
30 |
> user |
31 |
> |
32 |
> #Needed by static-user |
33 |
> sys-libs/zlib static-libs |
34 |
> dev-libs/glib static-libs |
35 |
> sys-apps/attr static-libs |
36 |
> |
37 |
> Moving this to package.use/package.use.force does not respect -alsa, -pulseaudio, -opengl all |
38 |
> flags which has a - on them, emerge wants to turn them on again. |
39 |
> |
40 |
> Am I missing something? |
41 |
> Using portage 2.2.18 |
42 |
|
43 |
Appears one have to use package.use.mask for that. |
44 |
cat package.use.mask |
45 |
app-emulation/qemu alsa pulseaudio bluetooth opengl |
46 |
It would be handy if one could use the same syntax as in |
47 |
/etc/portage/package.use/qemu(-alsa -opengl etc.) |
48 |
|
49 |
Jocke |