From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect:master commit in: bin/, /
Date: Mon, 27 Feb 2023 07:28:08 +0000 (UTC) [thread overview]
Message-ID: <1677454715.69150409a534e24107cccc080c5650bbd12bcc8e.ulm@gentoo> (raw)
commit: 69150409a534e24107cccc080c5650bbd12bcc8e
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 26 23:14:02 2023 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Feb 26 23:38:35 2023 +0000
URL: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=69150409
Allow EPREFIX to be overridden for manipulating prefixed ROOT
* bin/eselect.in: Allow EPREFIX to be overridden for manipulating
prefixed ROOT.
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
ChangeLog | 5 +++++
bin/eselect.in | 7 +++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6fcf0db..41d4bab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-26 James Le Cuirot <chewi@gentoo.org>
+
+ * bin/eselect.in: Allow EPREFIX to be overridden for manipulating
+ prefixed ROOT.
+
2022-05-01 Ulrich Müller <ulm@gentoo.org>
* misc/eselect-mode.el (eselect-mode): For GNU Emacs, use
diff --git a/bin/eselect.in b/bin/eselect.in
index 4caa87e..6a0fdbc 100755
--- a/bin/eselect.in
+++ b/bin/eselect.in
@@ -41,8 +41,11 @@ ESELECT_VERSION="@VERSION@"
ESELECT_BINARY_NAME="$0"
ESELECT_KILL_TARGET="$$"
-# Support variables for Gentoo Prefix
-EPREFIX="@EPREFIX@"
+# Support variables for Gentoo Prefix. BROOT is hardcoded as the
+# prefix for the build host. EPREFIX defaults to the same, but can be
+# overridden at runtime when building for a different prefix.
+BROOT="@EPREFIX@"
+: ${EPREFIX="${BROOT}"}
EROOT="${ROOT%${EPREFIX:+/}}${EPREFIX}"
# Remove all alias definitions. Unset functions and variables that are
next reply other threads:[~2023-02-27 7:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-27 7:28 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-07-08 6:20 [gentoo-commits] proj/eselect:master commit in: bin/, / Ulrich Müller
2023-06-07 8:50 Ulrich Müller
2023-06-07 7:29 Ulrich Müller
2023-06-05 18:34 Ulrich Müller
2023-03-20 17:11 Ulrich Müller
2023-02-28 18:08 Ulrich Müller
2023-02-27 17:40 Ulrich Müller
2022-01-08 20:53 Ulrich Müller
2016-01-27 19:35 Ulrich Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1677454715.69150409a534e24107cccc080c5650bbd12bcc8e.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox