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

Bug 645810

Summary: Please add a small tool to inject distfiles into DISTDIR
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: fturco
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=794487
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 534528    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-26 15:38:24 UTC
What I'm thinking of is a small tool that can be used like this:

  edistadd /tmp/foo.tar.gz /tmp/bar.tar.gz

It takes the specified files and puts them in appropriate ${DISTDIR}, dropping privileges alike for fetching if possible.

This would be useful for fetch-restricted packages for three reasons:

a. because manually copying distfiles into DISTDIR sometimes results in wrong permissions which then cause trouble with 'eclean-dist';

b. because ${DISTDIR} is forbidden in pkg_nofetch(), and I think having a tool for this would be more friendly than telling people to copy stuff anyway;

c. because we will probably want to eventually implement splitting distfiles into multiple directories, and with this tool we can make it transparent to users.


The code needed to do this should be rather simple. The hard part is integrating it with Portage codebase, so I suppose someone who actually works on that can do it in 15 minutes or so.