1 |
On 10/22/2015 11:29 AM, Joakim Tjernlund wrote: |
2 |
> On Thu, 2015-10-22 at 08:54 -0700, Zac Medico wrote: |
3 |
>> On 10/22/2015 12:05 AM, Joakim Tjernlund wrote: |
4 |
>>> I don't use world_sets, I have in my profile(/my/new/root/usr/local/portage/tmv3-target-overlay): |
5 |
>>> # > cat sets.conf |
6 |
>>> [CUSFPv3 sets] |
7 |
>>> class = portage.sets.files.StaticFileSet |
8 |
>>> multiset = true |
9 |
>>> directory = ${repository:tmv3-target-overlay}/sets/ |
10 |
>>> |
11 |
>>> [world] |
12 |
>>> class = portage.sets.base.DummyPackageSet |
13 |
>>> packages = @cusfpv3 @profile @selected @system |
14 |
>>> |
15 |
>>> and in sets/: |
16 |
>>> # > cat sets/cusfpv3 |
17 |
>>> net-ftp/ftp |
18 |
>>> net-ftp/tftp-hpa |
19 |
>>> net-ftp/vsftpd |
20 |
>>> .... |
21 |
>>> |
22 |
>>> and now it hits me, this line: |
23 |
>>> directory = ${repository:tmv3-target-overlay}/sets/ |
24 |
>>> does it always refer too ROOT=/ ? |
25 |
>> |
26 |
>> You need to use %(ROOT)s${repository:tmv3-target-overlay}/sets to |
27 |
>> substitute $ROOT into the set configuration. For example, the default |
28 |
>> set configuration located at /usr/share/portage/config/sets/portage.conf |
29 |
>> does something similar with %(PORTAGE_CONFIGROOT)s. |
30 |
> |
31 |
> Nice! I am a bit puzzled over the trailing s in ..)s, is that a typo? if not |
32 |
> what does it mean? |
33 |
|
34 |
The trailing s is required. It's python configparser interpolation syntax: |
35 |
|
36 |
https://docs.python.org/3/library/configparser.html#interpolation-of-values |
37 |
|
38 |
> Can I use %(PORTAGE_CONFIGROOT) in repos.conf too? or is it not needed? |
39 |
|
40 |
Yes you can use it (but you need the trailing s). It's needed for any |
41 |
absolute paths that refer to /etc/portage. |
42 |
-- |
43 |
Thanks, |
44 |
Zac |