Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830763 - sys-apps/portage: emerge reports "mirror+" URLs as unfetchable, but can fetch them
Summary: sys-apps/portage: emerge reports "mirror+" URLs as unfetchable, but can fetch...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Blocks: 377365
  Show dependency tree
Reported: 2022-01-08 10:45 UTC by John Helmert III
Modified: 2023-02-19 00:58 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-01-08 10:45:01 UTC
The rizin-0.3.2 ebuild has:



    test? (${BINS_COMMIT}.tar.gz -> rizin-testbins-${BINS_COMMIT}.tar.gz )"


# Need to audit licenses of the binaries used for testing
RESTRICT="fetch !test? ( test )"

The source tarball should be fetchable and mirrorable, but emerge reports it as unfetchable:

 ~ # emerge -pv rizin

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   RF   ] dev-util/rizin-0.3.2:0/0.3.2::gentoo  USE="(-test)" 62,667 KiB

Total: 1 package (1 reinstall), Size of downloads: 62,667 KiB
Fetch Restriction: 1 package (1 unsatisfied)

Fetch instructions for dev-util/rizin-0.3.2:
 * The following files cannot be fetched for rizin:
 *    rizin-src-v0.3.2.tar.xz

 * Messages for package dev-util/rizin-0.3.2:

 * The following files cannot be fetched for rizin:
 *    rizin-src-v0.3.2.tar.xz

But emerge can fetch the tarball successfully if I drop the -p, so this seems to only be an output issue.
Comment 1 Zac Medico gentoo-dev 2022-01-08 18:23:54 UTC
There's this code inside lib/_emerge/resolver/ that doesn't account for mirror+ yet:

> 	if not pkg.built and pkg.operation == "merge" and "fetch" in pkg.restrict:
> 		if pkg_info.ordered:
> 			self.counters.restrict_fetch += 1
> 		pkg_info.attr_display.fetch_restrict = True
> 		if not self.portdb.getfetchsizes(
> 			pkg.cpv, useflags=pkg_info.use, myrepo=pkg.repo
> 		):
> 			pkg_info.attr_display.fetch_restrict_satisfied = True
> 			if pkg_info.ordered:
> 				self.counters.restrict_fetch_satisfied += 1
> 		else:
> 			if pkg_info.ebuild_path is not None:
> 				self.restrict_fetch_list[pkg] = pkg_info
Comment 2 Larry the Git Cow gentoo-dev 2023-02-19 00:58:05 UTC
The bug has been referenced in the following commit(s):

commit 518e078d14bed66819f979d2012bff69a838c205
Author:     John Helmert III <>
AuthorDate: 2023-02-19 00:52:12 +0000
Commit:     John Helmert III <>
CommitDate: 2023-02-19 00:57:56 +0000

    dev-util/rizin: add a workaround for portage display issue
    Thanks-To: Maciej Barć <>
    Signed-off-by: John Helmert III <>

 dev-util/rizin/rizin-0.4.1.ebuild | 4 ++--
 dev-util/rizin/rizin-0.5.0.ebuild | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)