public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/portage:prefix commit in: lib/portage/package/ebuild/
@ 2022-01-14 12:22 Fabian Groffen
  0 siblings, 0 replies; only message in thread
From: Fabian Groffen @ 2022-01-14 12:22 UTC (permalink / raw
  To: gentoo-commits

commit:     1cfed563898a8861a20da6ed0a0c1e75f72aaeaa
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 14 12:21:55 2022 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jan 14 12:21:55 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=1cfed563

lib/portage/package/ebuild/config: restore operation on Prefix

auto-enable unprivileged mode when Prefix is detected

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 lib/portage/package/ebuild/config.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/portage/package/ebuild/config.py b/lib/portage/package/ebuild/config.py
index e786bd930..d8278ff10 100644
--- a/lib/portage/package/ebuild/config.py
+++ b/lib/portage/package/ebuild/config.py
@@ -1115,7 +1115,8 @@ class config:
             }
 
             eroot_or_parent = first_existing(eroot)
-            unprivileged = False
+            # PREFIX LOCAL
+            unprivileged = portage.const.EPREFIX != ''
             try:
                 # PREFIX LOCAL: inventing UID/GID based on a path is a very
                 # bad idea, it breaks almost everything since group ids


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-14 12:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-14 12:22 [gentoo-commits] proj/portage:prefix commit in: lib/portage/package/ebuild/ Fabian Groffen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox