1 |
commit: 77d64fc9897a157aafec35515848c907b4661bb0 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 26 10:13:03 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 28 19:11:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=77d64fc9 |
7 |
|
8 |
Read CHOST with portageq from EROOT and not / |
9 |
|
10 |
Failing that, the fallback method still reads from EROOT as before. |
11 |
|
12 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
gcc-config | 1 + |
16 |
1 file changed, 1 insertion(+) |
17 |
|
18 |
diff --git a/gcc-config b/gcc-config |
19 |
index c5d907c..236c433 100755 |
20 |
--- a/gcc-config |
21 |
+++ b/gcc-config |
22 |
@@ -13,6 +13,7 @@ BROOT="@GENTOO_EPREFIX@" |
23 |
[[ ${BROOT} == @*@ ]] && BROOT="" |
24 |
: ${EPREFIX="${BROOT}"} |
25 |
EROOT="${ROOT%/}${EPREFIX}/" |
26 |
+export PORTAGE_CONFIGROOT="${EROOT}" |
27 |
|
28 |
cd / |