Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 435720

Summary: sys-apps/portage: RESTRICT="primaryuri" does not trigger fetch from thirdpartymirrors before GENTOO_MIRRORS
Product: Portage Development Reporter: Martin Dummer <martin.dummer>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: martin.dummer
Priority: Normal Keywords: InVCS
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 377365, 431026    

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.