Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645810 - Please add a small tool to inject distfiles into DISTDIR
Summary: Please add a small tool to inject distfiles into DISTDIR
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
Depends on:
Blocks: 534528
  Show dependency tree
Reported: 2018-01-26 15:38 UTC by Michał Górny
Modified: 2020-03-14 09:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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.