commit:     fb744a61aa7008a80ae0a3d0b9fbde8a1fe99aa7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  2 15:33:58 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov  2 15:33:58 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=fb744a61

scripts/bootstrap-prefix.sh: adapt for macOS 12 Monterey

Signed-off-by: Sam James <sam <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 0e21c83953..11a042315b 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -382,15 +382,25 @@ bootstrap_setup() {
                        rev=${CHOST##*darwin}
                        profile="prefix/darwin/macos/10.$((rev - 4))/x64"
                        ;;
-               x86_64-apple-darwin2[0123456789])
+               x86_64-apple-darwin20)
                        # Big Sur is 11.0
                        rev=${CHOST##*darwin}
                        profile="prefix/darwin/macos/11.$((rev - 20))/x64"
                        ;;
-               arm64-apple-darwin2[0123456789])
+               x86_64-apple-darwin2[123456789])
+                       # Monterey is 12.0
+                       rev=${CHOST##*darwin}
+                       profile="prefix/darwin/macos/12.$((rev - 20))/x64"
+                       ;;
+               arm64-apple-darwin20)
                        rev=${CHOST##*darwin}
                        profile="prefix/darwin/macos/11.$((rev - 20))/arm64"
                        ;;
+               x86_64-apple-darwin2[123456789])
+                       # Monterey is 12.0
+                       rev=${CHOST##*darwin}
+                       profile="prefix/darwin/macos/12.$((rev - 20))/x64"
+                       ;;
                i*86-pc-linux-gnu)
                        profile=${profile_linux/ARCH/x86}
                        ;;

Reply via email to