Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>, "zmedico@g.o" <zmedico@g.o>
Subject: Re: [gentoo-portage-dev] profile-formats not respected ?
Date: Wed, 21 Apr 2021 00:45:00
Message-Id: 97d69bed-b4b4-3d52-b08c-4821ca81700c@gentoo.org
In Reply to: Re: [gentoo-portage-dev] profile-formats not respected ? by Joakim Tjernlund
1 On 4/20/21 5:03 AM, Joakim Tjernlund wrote:
2 > On Mon, 2021-04-19 at 14:10 -0700, Zac Medico wrote:
3 >> On 4/19/21 6:36 AM, Joakim Tjernlund wrote:
4 >>> I got an embedded ppc32 system which I build in a QEMU user chroot and I cannot
5 >>> make the profile-formats = portage-2 profile-bashrcs profile-set in my own profiles layout.conf
6 >>> work for me.
7 >>> Seems like portage just ignores this setting and I cannot understand why.
8 >>> Any pointers?
9 >>>
10 >>>  Jocke
11 >>>
12 >>
13 >> Hopefully this command will provide a clue:
14 >>
15 >> python -c 'import portage;
16 >> print(portage.settings._locations_manager.profiles_complex)'
17 >
18 > Got some progress. I got a profile.bashrc: .../my-overlay/profiles/cusfpv3/profile.bashrc
19 > where I setup PKG_INSTALL_MASK/INSTALL_MASK and this does not work in
20 > portage-3.0.18. I can echo the vars. and see them set but portage ignores these settings.
21 > This system was previously using a very old portage, 2.3.76 and that was fine.
22 >
23 >
24 > Another strange thing is my own set, i need to keep that at .../my-overlay/{sets, sets.conf}
25 > In our amd64 DE profile I can have my sets at .../my-overlay/profiles/infinera/sets , why is that?
26
27 A setting like this in /etc/portage/sets.conf would do it:
28
29 [my-overlay-profile-sets]
30 class = portage.sets.files.StaticFileSet
31 multiset = true
32 directory = /my-overlay/profiles/infinera/sets
33 world-candidate = true
34
35 > Anyhow, here is my profile printout:
36 > ./print-port.py
37 > (_profile_node(location='/usr/portage/profiles/base', portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False,
38 > show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/default/linux', portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',),
39 > eapi='5', allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/arch/base', portage1_directories=True, user_config=False,
40 > profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/arch/powerpc',
41 > portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False),
42 > _profile_node(location='/usr/portage/profiles/default/linux/powerpc', portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5',
43 > allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/arch/base', portage1_directories=True, user_config=False,
44 > profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/arch/powerpc',
45 > portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False),
46 > _profile_node(location='/usr/portage/profiles/arch/powerpc/ppc32', portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5',
47 > allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/default/linux/powerpc/ppc32', portage1_directories=True, user_config=False,
48 > profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/releases',
49 > portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False),
50 > _profile_node(location='/usr/portage/profiles/releases/17.0', portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False,
51 > show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/default/linux/powerpc/ppc32/17.0', portage1_directories=True, user_config=False,
52 > profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=True), _profile_node(location='/usr/local/portage/tmv3-target-
53 > overlay/profiles/cusfpv3', portage1_directories=True, user_config=False, profile_formats=('profile-bashrcs', 'portage-2', 'profile-set'), eapi='5', allow_build_id=False,
54 > show_deprecated_warning=True), _profile_node(location='/etc/portage/profile', portage1_directories=True, user_config=True, profile_formats=('profile-bashrcs', 'profile-set'),
55 > eapi=None, allow_build_id=True, show_deprecated_warning=False))
56 >
57
58 Are these effective profile_formats now consistent with your
59 expectations, and do they now behave as you would expect?
60 --
61 Thanks,
62 Zac

Attachments

File name MIME type
signature.asc application/pgp-signature