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

Bug 570758

Summary: Add a DISTDIR_FETCH variable and location for fetch restricted packages
Product: Portage Development Reporter: Manuel Rüger (RETIRED) <mrueg>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 377365    

Description Manuel Rüger (RETIRED) gentoo-dev 2016-01-03 17:00:05 UTC
Right now all downloads have to be in DISTDIR. 
Fetch restricted packages need to be downloaded and moved to DISTDIR.

With a new location for fetch-restriced packages (sth like DISTDIR_FETCH, which by default points to DISTDIR), I'd like to allow a user to download files and put them in there.
Portage should look up files like this:
always DISTDIR.
if package is fetch restricted:
also DISTDIR_FETCH

This would enable several things:
- shared DISTDIR_FETCH in networked environments with multiple gentoo machines (if you for some reason don't want share the complete distfiles)
- easier cleanup of DISTDIR (if you wanna free up space but don't wanna delete those 10-20 fetch restriced files)
- more restricted access control to DISTDIR (usually a non-root user downloads the fetch-restriced file and moves it to DISTDIR); instead you could grant a user access to DISTDIR_FETCH
Comment 1 Zac Medico gentoo-dev 2016-01-04 03:48:59 UTC
Maybe just use PORTAGE_RO_DISTDIRS for this? You can list as many directories as you want in the PORTAGE_RO_DISTDIRS variable.