Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 735134 - app-portage/portage-utils: odd (irrelevant) warning about invalid repo_name
Summary: app-portage/portage-utils: odd (irrelevant) warning about invalid repo_name
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-01 22:41 UTC by Rick Farina (Zero_Chaos)
Modified: 2020-10-04 11:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Farina (Zero_Chaos) gentoo-dev 2020-08-01 22:41:26 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2020-08-02 07:34:13 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2020-08-02 07:39:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=61ac8ae9168b7262a6f68a07da312659181647a0

commit 61ac8ae9168b7262a6f68a07da312659181647a0
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2020-08-02 07:37:51 +0000
Commit:     Fabian Groffen <grobian@gentoo.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.
    
    Bug: https://bugs.gentoo.org/735134
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 3 Rick Farina (Zero_Chaos) gentoo-dev 2020-08-02 16:21:40 UTC
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.
Comment 4 Fabian Groffen gentoo-dev 2020-08-03 06:45:02 UTC
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.