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 6B40C138ACE for ; Sun, 8 Mar 2015 17:01:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 345F8E0C0C; Sun, 8 Mar 2015 17:01:15 +0000 (UTC) Received: from gw1.transmode.se (gw1.transmode.se [195.58.98.146]) by pigeon.gentoo.org (Postfix) with ESMTP id 6FB6FE0C0B for ; Sun, 8 Mar 2015 17:01:14 +0000 (UTC) Received: from exch2.transmode.se (exch2.transmode.se [192.168.203.24]) by gw1.transmode.se (Postfix) with ESMTP id 5131C11870B4 for ; Sun, 8 Mar 2015 18:01:08 +0100 (CET) Received: from exch1.transmode.se (192.168.201.16) by exch2.transmode.se (192.168.203.24) with Microsoft SMTP Server (TLS) id 15.0.995.29; Sun, 8 Mar 2015 18:01:07 +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; Sun, 8 Mar 2015 18:01:07 +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/kyWychB2qEDZZ0RZvsAgAFGyYCAABR6AA== Date: Sun, 8 Mar 2015 17:01:06 +0000 Message-ID: <1425834066.22708.220.camel@transmode.se> References: <1425636949.22708.149.camel@transmode.se> <54FB5D04.3090102@gentoo.org> <1425829669.22708.214.camel@transmode.se> In-Reply-To: <1425829669.22708.214.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: <1A5BD25E15859C469AD1D7DE7892990D@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: 431a359d-7390-4172-823e-08317fa24c62 X-Archives-Hash: 0018591b8dd40dfdc2051be4bb744c70 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, the= n eselect this new profile. > > >=20 > > > I cannot work out how to do this, any pointers? > > > portage: 2.2.18 > > >=20 > > > Jocke > > >=20 > >=20 > > Set "profile-formats =3D portage-2" in metadata/layout.conf of your ove= rlay. The is documented in the=20 > > "portage" man page. It allows you to specify a profile from another rep= ository in the "parent" file of=20 > > you=20 > > profile. For example, gentoo:default/linux/amd64/13.0/desktop in your "= parent" file will cause your=20 > > overlay's profile to inherit from that gentoo profile. If you list your= profiles in=20 > > profiles/profiles.desc=20 > > in you overlay, then eselect profile will see them. >=20 > Thanks Zac, I did the above and got my own profile :) >=20 > I can get package.accept_keywords work the same as my keyword installed a= t > /etc/portage/package.keywords. >=20 > 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_tar= gets_x86_64 xattr virtfs 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 does not respect -alsa, -pul= seaudio, -opengl all > flags which has a - on them, emerge wants to turn them on again. >=20 > 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