Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435720 - sys-apps/portage: RESTRICT="primaryuri" does not trigger fetch from thirdpartymirrors before GENTOO_MIRRORS
Summary: sys-apps/portage: RESTRICT="primaryuri" does not trigger fetch from thirdpart...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 377365 431026
  Show dependency tree
 
Reported: 2012-09-21 07:09 UTC by Martin Dummer
Modified: 2012-09-21 22:57 UTC (History)
1 user (show)

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 Martin Dummer 2012-09-21 07:09:25 UTC
I discovered that adding RESTRICT="primaryuri" to one of my own ebuilds has no effect. The source download still tries to download from a gentoo mirror first, then downloads from SRC_URI.

cross-checking with ebuilds from the tree has confirmed this wrong behaviour:
emerge --fetchonly =dev-db/myodbc-5.1.6

and - to make it even more strange - I found some ebuilds with correct behaviour
emerge --fetchonly =sys-cluster/slurm-2.3.4 
emerge --fetchonly =sci-chemistry/votca-csgapps-1.2.3 
emerge --fetchonly =sci-chemistry/votca-csg-1.2.3

What's wrong here? Are there any requirements for RESTRICT="primaryuri" that are not mentioned in http://devmanual.gentoo.org/general-concepts/mirrors/index.html ?
Comment 1 Zac Medico gentoo-dev 2012-09-21 16:35:36 UTC
The different behavior for dev-db/myodbc-5.1.6 is due to the fact that the SRC_URI only contains a mirror uri:

SRC_URI=mirror://mysql/Downloads/Connector-ODBC/5.1/mysql-connector-odbc-5.1.6.tar.gz

We can fix the fetch behavior to prefer the mysql thirdpartymirrors over GENTOO_MIRRORS when RESTRICT=primaryuri is set.
Comment 3 Zac Medico gentoo-dev 2012-09-21 22:57:35 UTC
This is fixed in 2.1.11.20 and 2.2.0_alpha131.