Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 730332 - add PORTAGE_DBPKGROOT to make /var/db/pkg configurable
Summary: add PORTAGE_DBPKGROOT to make /var/db/pkg configurable
Status: UNCONFIRMED
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:
 
Reported: 2020-07-01 09:58 UTC by Andreas Steinmetz
Modified: 2020-07-01 17:29 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 Andreas Steinmetz 2020-07-01 09:58:22 UTC
One can fetch packages for virtual machines using various portage variables with one notable exception:

There seems to be no way to tell portage to use another path instead of /var/db/pkg. Thus one has to bind mount the virtual machine's /var/db/pkg on the host which is error prone.

It would be nice to have an environment variable like PORTAGE_CONFIGROOT which allows to set the patch to /var/db/pkg, a suggestion would be PORTAGE_DBPKGROOT.


Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2020-07-01 17:29:51 UTC
Using a copy of /var/db/pkg is a clever way to make emerge -f do what you want, but it would be nice to have a more general solution that operates on SRC_URI metadata (bug 629048).