Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 730502 - dev-util/pkgcheck-0.7.6-r1 - pkgcheck scan: pkgcheck: error: repos.conf: default repo 'gentoo' is undefined or invalid
Summary: dev-util/pkgcheck-0.7.6-r1 - pkgcheck scan: pkgcheck: error: repos.conf: defa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-02 22:47 UTC by Alexey
Modified: 2023-08-29 05:18 UTC (History)
1 user (show)

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


Attachments
repos.conf.tar.gz (repos.conf.tar.gz,648 bytes, application/x-gzip-compressed-tar)
2020-07-02 22:47 UTC, Alexey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2020-07-02 22:47:57 UTC
Created attachment 647424 [details]
repos.conf.tar.gz

$ pkgcheck scan
pkgcheck: error: repos.conf: default repo 'gentoo' is undefined or invalid


emerge and repoman work fine
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-07-03 13:57:40 UTC
You don't have location set for gentoo.  I suppose Portage works only because of some backwards compatibility hack.
Comment 2 Alexey 2020-07-03 14:16:14 UTC
It is set in /usr/share/portage/config/repos.conf

[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes
sync-rsync-verify-jobs = 1
sync-rsync-verify-metamanifest = yes
sync-rsync-verify-max-age = 24
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-keyserver = hkps://keys.gentoo.org
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-webrsync-verify-signature = yes
Comment 3 Tim Harder gentoo-dev 2020-07-07 02:50:17 UTC
pkgcore support for portage config parsing is compatible with basic settings from repos.conf, but won't go searching for it in /usr/share/portage.

I'd advise using /etc/portage/repos.conf or submitting a convincing argument as to why pkgcore should go searching for it in other portage-centric locations.
Comment 4 Tim Harder gentoo-dev 2020-07-07 02:56:14 UTC
I should also note pkgcheck doesn't even require running it on system with configured repos -- it doesn't even have to be a Gentoo system.

However, this does require running it inside an ebuild repository, using the -r/--repo option, or similar.
Comment 5 Tim Harder gentoo-dev 2020-12-20 01:02:53 UTC
Closing since this works fine as noted in comment #4 and some related issues were fixed in the most recent release. Note you should also report most runtime issues upstream unless they're directly related to the ebuilds.