When I run scripts during my catalyst builds I often use qfile. Lately it's been emitting an odd warning:
qfile: ignoring parent with unknown repo in profile: pentoo
Catalyst builds don't use repos.conf, and simply bind mount overlays and configure make.conf with PORTDIR_OVERLAY. Is this warning meaningful in some way? Is qfile unable to do it's job properly without repos.conf?
Please make the error more descriptive, or make it go away if it's safe to ignore.
The warning is telling you a reference to repo pentoo was found, but no such repo is defined, hence it cannot load whatever it is pointing to.
In this case it is probably safe to ignore, because qfile doesn't do much with repo data. I should try and make this more just-in-time loading instead. Any invocation of q-tools should result in this warning.
The bug has been referenced in the following commit(s):
Author: Fabian Groffen <email@example.com>
AuthorDate: 2020-08-02 07:37:51 +0000
Commit: Fabian Groffen <firstname.lastname@example.org>
CommitDate: 2020-08-02 07:37:51 +0000
read_portage_profile: adapt warning to point to which profile
When we fail to resolve a repo match, give the user a better hint by
pointing to the profile we were reading.
Signed-off-by: Fabian Groffen <email@example.com>
main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
the point of my bug is more that I don't think qfile needs to be parsing the profile at all, does it? So this warning is superfluous and confusing. It makes it look like it isn't able to do it's job properly and I don't believe that to be the case.
Yes, that's what my "just-in-time" comment was about. Profiles are loaded as part of q startup (= any applet) for things like PORTDIR and Q_VDB, the latter which is used by qfile. However, as you correctly point out, qfile (and other applets too) do not need full profiles to be parsed, and I should find a way to do this at a later point.