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

Bug 730332

Summary: add PORTAGE_DBPKGROOT to make /var/db/pkg configurable
Product: Portage Development Reporter: Andreas Steinmetz <ast>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=629048
Whiteboard:
Package list:
Runtime testing required: ---

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