Re: profile-formats not respected ?

Zac Medico <[email protected]> Tue, 20 Apr 2021 17:44:53 -0700
Newsgroups gmane.linux.gentoo.portage.devel
Message-ID <[email protected]>
On 4/20/21 5:03 AM, Joakim Tjernlund wrote:
> On Mon, 2021-04-19 at 14:10 -0700, Zac Medico wrote:
>> On 4/19/21 6:36 AM, Joakim Tjernlund wrote:
>>> I got an embedded ppc32 system which I build in a QEMU user chroot and I cannot
>>> make the profile-formats = portage-2 profile-bashrcs profile-set in my own profiles layout.conf
>>> work for me.
>>> Seems like portage just ignores this setting and I cannot understand why.
>>> Any pointers?
>>>
>>>  Jocke
>>>
>>
>> Hopefully this command will provide a clue:
>>
>> python -c 'import portage;
>> print(portage.settings._locations_manager.profiles_complex)'
> 
> Got some progress. I got a profile.bashrc: .../my-overlay/profiles/cusfpv3/profile.bashrc
> where I setup PKG_INSTALL_MASK/INSTALL_MASK and this does not work in
> portage-3.0.18. I can echo the vars. and see them set but portage ignores these settings.
> This system was previously using a very old portage, 2.3.76 and that was fine.
> 
> 
> Another strange thing is my own set, i need to keep that at .../my-overlay/{sets, sets.conf}
> In our amd64 DE profile I can have my sets at .../my-overlay/profiles/infinera/sets , why is that?

A setting like this in /etc/portage/sets.conf would do it:

[my-overlay-profile-sets]
class = portage.sets.files.StaticFileSet
multiset = true
directory = /my-overlay/profiles/infinera/sets
world-candidate = true

> Anyhow, here is my profile printout:
> ./print-port.py 
> (_profile_node(location='/usr/portage/profiles/base', portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False,
> show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/default/linux', portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',),
> eapi='5', allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/arch/base', portage1_directories=True, user_config=False,
> profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/arch/powerpc',
> portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False),
> _profile_node(location='/usr/portage/profiles/default/linux/powerpc', portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5',
> allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/arch/base', portage1_directories=True, user_config=False,
> profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/arch/powerpc',
> portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False),
> _profile_node(location='/usr/portage/profiles/arch/powerpc/ppc32', portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5',
> allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/default/linux/powerpc/ppc32', portage1_directories=True, user_config=False,
> profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/releases',
> portage1_directories=True, user_config=False, profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=False),
> _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,
> show_deprecated_warning=False), _profile_node(location='/usr/portage/profiles/default/linux/powerpc/ppc32/17.0', portage1_directories=True, user_config=False,
> profile_formats=('portage-1-compat',), eapi='5', allow_build_id=False, show_deprecated_warning=True), _profile_node(location='/usr/local/portage/tmv3-target-
> overlay/profiles/cusfpv3', portage1_directories=True, user_config=False, profile_formats=('profile-bashrcs', 'portage-2', 'profile-set'), eapi='5', allow_build_id=False,
> show_deprecated_warning=True), _profile_node(location='/etc/portage/profile', portage1_directories=True, user_config=True, profile_formats=('profile-bashrcs', 'profile-set'),
> eapi=None, allow_build_id=True, show_deprecated_warning=False))
> 

Are these effective profile_formats now consistent with your
expectations, and do they now behave as you would expect?
-- 
Thanks,
Zac
signature.asc (application/pgp-signature, 981 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQKTBAEBCgB9FiEE8OgXaltWzqgSupCu0HX7jBBKPSAFAmB/dYZfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEYw
RTgxNzZBNUI1NkNFQTgxMkJBOTBBRUQwNzVGQjhDMTA0QTNEMjAACgkQ0HX7jBBK
PSBUqg//SP3Q9dEhZfkFp9GC1ufspq2+WB4wb8sGcUutHOnMVDjL4JMfPYkZaigx
TbTIGO9gi224UUf1mVAtDRpCvEV/MMcuz4XQST5+QMP8cldqk9Q/mx7KabDKjupX
BHpI6QR7Xfs4i/KOftlgjHZKnamh7OagILv5B75ZWv8VuJLWfBBg60u6mhHUTnfk
2KylzV3SYcDPK0WcwYEnOm9WKv/5M5z+SxlUvd977lGnB8tzGf/7hPOfaCN1wy+B
F4uU+W+n+zfx9Y4S1PE4yxWPsNt1ryvxYurlu1pwNmdhGi2UU6wrTTWOvw21MmD7
EPQTK9FJTfiIktsFXQOniAFtU12CUlCcjwQTmrj685mxJAAGjtdsd6UOp82PTj0U
90poqiTrFjn1BMtNIlb/2gNJVtq2HxofQWZa9loOvVX8UEZ1JUKrL/rnxSNmdM0X
V03hu0niO7QOxb1gAk4AfjUP2prKT2oc8b2q7gjBNGR+nKZ2m2/Pf50K8bVf2ShH
0Hm24QcARfwwP9NuOlbqaSP2m/FIJaSl4j7euybMYKqEfTFn2Ig1CvaH06C361Ja
hJAUuIaUGdBWKLZiJrvVHOtX5+nZYOJUVi1+R3zSsSgj5XRljY0EfaOyoVlcHMvW
fiCoTNfoMyF07rTW7/JqmyQLHF9NCsUALzNb/xhewooeOqcAKUk=
=xCbs
-----END PGP SIGNATURE-----