Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/
Date: Wed, 29 Jun 2022 16:28:15
Message-Id: 1656520084.27752a65da927fadd7aac5ac18c5e8797c4e015f.sam@gentoo
1 commit: 27752a65da927fadd7aac5ac18c5e8797c4e015f
2 Author: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Sat Jun 4 04:17:58 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 29 16:28:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=27752a65
7
8 scripts/bootstrap-prefix.sh: add OpenBSD CHOST detection
9
10 Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 scripts/bootstrap-prefix.sh | 7 +++++++
14 1 file changed, 7 insertions(+)
15
16 diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
17 index 519f356d87..f1eecd65bc 100755
18 --- a/scripts/bootstrap-prefix.sh
19 +++ b/scripts/bootstrap-prefix.sh
20 @@ -3195,6 +3195,13 @@ if [[ -z ${CHOST} ]]; then
21 ;;
22 esac
23 ;;
24 + OpenBSD)
25 + case `uname -m` in
26 + amd64)
27 + CHOST="x86_64-pc-openbsd`uname -r | sed 's|-.*$||'`"
28 + ;;
29 + esac
30 + ;;
31 *)
32 eerror "Nothing known about platform `uname -s`."
33 eerror "Please set CHOST appropriately for your system"