Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] @sets and @profile does not work when ROOT=PORTAGE_CONFIGROOT=/my/new/root
Date: Thu, 22 Oct 2015 15:54:52
Message-Id: 562906C3.1040708@gentoo.org
In Reply to: Re: [gentoo-portage-dev] @sets and @profile does not work when ROOT=PORTAGE_CONFIGROOT=/my/new/root by Joakim Tjernlund
1 On 10/22/2015 12:05 AM, Joakim Tjernlund wrote:
2 > I don't use world_sets, I have in my profile(/my/new/root/usr/local/portage/tmv3-target-overlay):
3 > # > cat sets.conf
4 > [CUSFPv3 sets]
5 > class = portage.sets.files.StaticFileSet
6 > multiset = true
7 > directory = ${repository:tmv3-target-overlay}/sets/
8 >
9 > [world]
10 > class = portage.sets.base.DummyPackageSet
11 > packages = @cusfpv3 @profile @selected @system
12 >
13 > and in sets/:
14 > # > cat sets/cusfpv3
15 > net-ftp/ftp
16 > net-ftp/tftp-hpa
17 > net-ftp/vsftpd
18 > ....
19 >
20 > and now it hits me, this line:
21 > directory = ${repository:tmv3-target-overlay}/sets/
22 > does it always refer too ROOT=/ ?
23
24 You need to use %(ROOT)s${repository:tmv3-target-overlay}/sets to
25 substitute $ROOT into the set configuration. For example, the default
26 set configuration located at /usr/share/portage/config/sets/portage.conf
27 does something similar with %(PORTAGE_CONFIGROOT)s.
28 --
29 Thanks,
30 Zac

Replies

Subject Author
Re: [gentoo-portage-dev] @sets and @profile does not work when ROOT=PORTAGE_CONFIGROOT=/my/new/root Joakim Tjernlund <joakim.tjernlund@×××××××××.se>