My /etc/portage/make.profile isn't a symlink, pkgcore.ebuild.profiles.NonexistentProfile
This is a bit of a weird request, here goes nothing.
I have created /etc/portage/make.profile as a directory, to be able to store my custom profiles in /etc/portage and manage defaults across different computers.
Anyway, the situation right now is that it's populated with a single file, parent, with the following contents:
gentoo:default/linux/amd64/23.0/split-usr/desktop
This syntax allows me to inherit a profile from a different repository, without providing a full path.
According to the wiki page, this syntax is only supported when profile-formats = portage-2 is set in the repo's metadata/layout.conf. Unfortunately, /etc/portage is not a repository, so I cannot configure it that way.
Despite this, portage itself has no problems with it, and supports this syntax in /etc/portage.
Unfortunately, the same can't be said for pkgcore, which throws the following error:
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/pkgcore/ebuild/profiles.py", line 280, in parents
parents.append(kls(path))
^^^^^^^^^
File "/usr/lib/python3.12/site-packages/snakeoil/caching.py", line 114, in __call__
instance = super(WeakInstMeta, cls).__call__(*a, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pkgcore/ebuild/profiles.py", line 171, in __init__
raise NonexistentProfile(self.path)
pkgcore.ebuild.profiles.NonexistentProfile: failed parsing '/etc/portage/make.profile/gentoo:default/linux/amd64/23.0/split-usr/desktop': nonexistent profile directory
I've definitely hit a corner case in the PMS, so I'm not sure I can reasonably request this, but would a PR enabling support for this in /etc/portage be acceptable? Alternatively, is there a different way to be able to use this syntax?