pkgsrc-Changes archive

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

CVS commit: pkgsrc/bootstrap



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Oct  7 10:44:14 UTC 2020

Modified Files:
        pkgsrc/bootstrap: bootstrap

Log Message:
bootstrap: Fix numerical calculation on Big Sur.


To generate a diff of this commit:
cvs rdiff -u -r1.293 -r1.294 pkgsrc/bootstrap/bootstrap

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/bootstrap/bootstrap
diff -u pkgsrc/bootstrap/bootstrap:1.293 pkgsrc/bootstrap/bootstrap:1.294
--- pkgsrc/bootstrap/bootstrap:1.293    Sat Aug 29 20:11:21 2020
+++ pkgsrc/bootstrap/bootstrap  Wed Oct  7 10:44:14 2020
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.293 2020/08/29 20:11:21 js Exp $
+# $NetBSD: bootstrap,v 1.294 2020/10/07 10:44:14 jperkin Exp $
 #
 # Copyright (c) 2001-2011 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -562,7 +562,8 @@ Darwin)
        osrev=`uname -r`
 
        # Combine major.minor product version for simpler numerical tests.
-       macos_version=`sw_vers -productVersion | awk -F. '{print $1 $2}'`
+       macos_version=`sw_vers -productVersion | \
+           awk -F. '{ printf("%02d%02d", $1, $2) }'`
 
        # Newer native sed does not support multibyte correctly.
        if [ $macos_version -ge 1008 ]; then



Home | Main Index | Thread Index | Old Index