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

Bug 768957

Summary: sys-apps/portage: binrepos.conf src-uri file:// support
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Binary packages supportAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement CC: andrewammerlaan, flx.bier, gentoo, leho, sam, snowy.mail
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=751253
https://bugs.gentoo.org/show_bug.cgi?id=659784
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 668334, 920537    
Bug Blocks:    

Description Zac Medico gentoo-dev 2021-02-06 10:35:36 UTC
If binrepos.conf src-uri supports file:// then it can be used to configure local binary package repositories.
Comment 1 Aisha Tammy 2021-02-07 19:33:39 UTC Comment hidden (obsolete)
Comment 2 Aisha Tammy 2021-02-07 20:42:51 UTC Comment hidden (obsolete)
Comment 3 Aisha Tammy 2021-02-07 21:16:01 UTC Comment hidden (obsolete)
Comment 4 Zac Medico gentoo-dev 2021-02-08 00:46:40 UTC
In binrepos.conf, lowercase fetchcommand and resumecommand attributes are supported by this patch from bug 668302:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=5ebc8a249b08318da5a2ca89cee2eed604f7e639
Comment 5 Aisha Tammy 2021-02-20 00:30:38 UTC
With the new information from Zac, the following is my configuration in /etc/binrepos.conf:

[lto-binpkg]
sync-uri=file:///var/cache/binpkg-host
fetchcommand=/usr/bin/curl --fail --output \${DISTDIR}/\${FILE} \${URI}
resumecommand=/usr/bin/curl -fail --continue-at - --output \${DISTDIR}/\${FILE} \${URI}
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-14 05:19:37 UTC
This was done in bug 920537.