Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570758 - Add a DISTDIR_FETCH variable and location for fetch restricted packages
Summary: Add a DISTDIR_FETCH variable and location for fetch restricted packages
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 377365
  Show dependency tree
 
Reported: 2016-01-03 17:00 UTC by Manuel Rüger (RETIRED)
Modified: 2022-10-20 02:43 UTC (History)
0 users

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 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.