Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap bootstrap: Fix machine_arch detection on App...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ded8da351aa
branches:  trunk
changeset: 435960:9ded8da351aa
user:      sjmulder <sjmulder%pkgsrc.org@localhost>
date:      Tue Jul 21 15:53:10 2020 +0000

description:
bootstrap: Fix machine_arch detection on Apple Sillicon

machine_arch was empty on Apple Sillicon. We could also use `uname -m` but that
returns arm64 which is not accepted by mk/gnu-config/config.sub.

diffstat:

 bootstrap/bootstrap |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 21f0f84d4963 -r 9ded8da351aa bootstrap/bootstrap
--- a/bootstrap/bootstrap       Tue Jul 21 14:32:00 2020 +0000
+++ b/bootstrap/bootstrap       Tue Jul 21 15:53:10 2020 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.288 2020/07/15 10:32:12 jperkin Exp $
+# $NetBSD: bootstrap,v 1.289 2020/07/21 15:53:10 sjmulder Exp $
 #
 # Copyright (c) 2001-2011 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -219,6 +219,9 @@
 get_machine_arch_darwin()
 {
        case `uname -p` in
+       arm)
+               echo "aarch64"
+               ;;
        i386)
                # Returns "i386" or "x86_64" depending on CPU
                echo `uname -m`



Home | Main Index | Thread Index | Old Index