pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk
Module Name: pkgsrc
Committed By: bsiegert
Date: Sun Jan 6 12:51:45 UTC 2019
Modified Files:
pkgsrc/mk: bsd.prefs.mk
Log Message:
bsd.prefs.mk: set OS_VARIANT=Microsoft if used under WSL.
WSL is Windows Services for Linux, aka "bash on Ubuntu on Windows".
Some packages need to differentiate plain Linux and running on WSL.
Patch from David Weller-Fahy via PR pkg/53806.
To generate a diff of this commit:
cvs rdiff -u -r1.402 -r1.403 pkgsrc/mk/bsd.prefs.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/bsd.prefs.mk
diff -u pkgsrc/mk/bsd.prefs.mk:1.402 pkgsrc/mk/bsd.prefs.mk:1.403
--- pkgsrc/mk/bsd.prefs.mk:1.402 Mon Nov 12 14:22:58 2018
+++ pkgsrc/mk/bsd.prefs.mk Sun Jan 6 12:51:45 2019
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.402 2018/11/12 14:22:58 jperkin Exp $
+# $NetBSD: bsd.prefs.mk,v 1.403 2019/01/06 12:51:45 bsiegert Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -226,7 +226,11 @@ LOWER_VENDOR?= chromeos
LOWER_VENDOR?= pc
. endif
LOWER_VENDOR?= unknown
+OS_VARIANT!= ${UNAME} -r
+OS_VARIANT:= ${OS_VARIANT:C/^.*-//}
+. if ${OS_VARIANT} != "Microsoft"
OS_VARIANT= ${LOWER_VENDOR}
+. endif
. if !defined(HOST_MACHINE_ARCH)
HOST_MACHINE_ARCH!= ${UNAME} -m
MAKEFLAGS+= HOST_MACHINE_ARCH=${HOST_MACHINE_ARCH:Q}
Home |
Main Index |
Thread Index |
Old Index