-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unprivileged mode: generate PORTAGE_DEPCACHEDIR
For unprivileged mode, if PORTAGE_DEPCACHEDIR is unset and the default PORTAGE_DEPCACHEDIR setting does not refer to a writable directory (or there are not sufficient permissions to create it), then automatically make PORTAGE_DEPCACHEDIR relative to the current target root (which should always be writable for unprivileged mode). Also, in create_trees, propagate the automatically generated PORTAGE_DEPCACHEDIR setting to the config instance that is instantiated for ROOT = "/". The result is that unprivileged mode will get a writable PORTAGE_DEPCACHEDIR by default, and the default can be overridden by setting the PORTAGE_DEPCACHEDIR variable. Fixes: 1364fcd ("Support unprivileged mode for bug #433453.") X-Gentoo-Bug: 433453 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=433453 Acked-by: Alexander Berntsen <bernalex@gentoo.org>
- Loading branch information
Showing
2 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters