1 |
commit: 4d1e44303c0a968a1a2cdc6b5597e862bbfb81bd |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 16 07:09:20 2021 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 16 07:09:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=4d1e4430 |
7 |
|
8 |
scripts/bootstrap-prefix: make stable keyword impl a bit more generic |
9 |
|
10 |
If we want to support more (Linux) arches in the future with stable |
11 |
keywords, this should do the trick. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/759424 |
14 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
15 |
|
16 |
scripts/bootstrap-prefix.sh | 7 ++++--- |
17 |
1 file changed, 4 insertions(+), 3 deletions(-) |
18 |
|
19 |
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh |
20 |
index 92a7facc36..c34842da77 100755 |
21 |
--- a/scripts/bootstrap-prefix.sh |
22 |
+++ b/scripts/bootstrap-prefix.sh |
23 |
@@ -321,6 +321,9 @@ bootstrap_setup() { |
24 |
if is-rap ; then |
25 |
echo "# sandbox does not work well on Prefix, bug 490246" |
26 |
echo 'FEATURES="${FEATURES} -usersandbox -sandbox"' |
27 |
+ # bug 759424 |
28 |
+ [[ -n ${STABLE_PREFIX} ]] && \ |
29 |
+ echo 'ACCEPT_KEYWORDS="${ARCH} -~${ARCH}"' |
30 |
fi |
31 |
if [[ ${FS_INSENSITIVE} == 1 ]] ; then |
32 |
echo |
33 |
@@ -331,8 +334,6 @@ bootstrap_setup() { |
34 |
echo "PORTDIR_OVERLAY=\"\${PORTDIR_OVERLAY} ${PORTDIR_OVERLAY}\"" |
35 |
[[ -n ${MAKE_CONF_ADDITIONAL_USE} ]] && |
36 |
echo "USE=\"\${USE} ${MAKE_CONF_ADDITIONAL_USE}\"" |
37 |
- [[ -n ${STABLE_PREFIX} ]] && \ |
38 |
- echo "ACCEPT_KEYWORDS=\"amd64 -~amd64\"" |
39 |
[[ ${OFFLINE_MODE} ]] && \ |
40 |
echo 'FETCHCOMMAND="bash -c \"echo I need \${FILE} from \${URI} in \${DISTDIR}; read\""' |
41 |
} > "${ROOT}"/etc/portage/make.conf |
42 |
@@ -2720,7 +2721,7 @@ EOF |
43 |
[Yy][Ee][Ss]|[Yy]|"") |
44 |
echo "Okay, I'll disable ~amd64 by default." |
45 |
export STABLE_PREFIX="yes" |
46 |
- : ;; |
47 |
+ ;; |
48 |
*) |
49 |
echo "Fine, I will not disable ~amd64, no problem." |
50 |
;; |