aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-01-02 17:24:12 +0000
committerSam James <sam@gentoo.org>2023-01-03 01:01:35 +0000
commit0c8928b6b49603c0a3e0bcf1640da708865d20fe (patch)
tree03de14532d55b5f1d590cde6b6c9f22b6f6ba75a
parentAllow EPREFIX to be overridden for manipulating prefixed ROOT (diff)
downloadbinutils-config-master.tar.gz
binutils-config-master.tar.bz2
binutils-config-master.zip
Read CHOST with portageq from EROOT and not /HEADv5.5master
Signed-off-by: James Le Cuirot <chewi@gentoo.org> Closes: https://github.com/gentoo/binutils-config/pull/1 Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xsrc/binutils-config1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/binutils-config b/src/binutils-config
index 37ea77c..a28366a 100755
--- a/src/binutils-config
+++ b/src/binutils-config
@@ -13,6 +13,7 @@ BROOT="@GENTOO_EPREFIX@"
[[ ${BROOT} == @*@ ]] && BROOT=""
: ${EPREFIX="${BROOT}"}
EROOT="${ROOT%/}${EPREFIX}/"
+export PORTAGE_CONFIGROOT="${EROOT}"
cd "${BROOT}/"