svn commit: r399156 - head/Mk
Bryan Drewery
bdrewery at FreeBSD.org
Mon Oct 12 22:13:22 UTC 2015
Author: bdrewery
Date: Mon Oct 12 22:13:21 2015
New Revision: 399156
URL: https://svnweb.freebsd.org/changeset/ports/399156
Log:
Pass result of 'uname -r' to sub-makes to avoid unneeded lookup.
With hat: portmgr
Modified:
head/Mk/bsd.port.mk
Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk Mon Oct 12 22:09:47 2015 (r399155)
+++ head/Mk/bsd.port.mk Mon Oct 12 22:13:21 2015 (r399156)
@@ -1172,7 +1172,9 @@ ARCH!= ${UNAME} -p
OPSYS!= ${UNAME} -s
.endif
-UNAMER!=${UNAME} -r
+.if !defined(UNAMER)
+UNAMER!= ${UNAME} -r
+.endif
# Get the operating system revision
OSREL?= ${UNAMER:C/-.*//}
@@ -5051,7 +5053,7 @@ ${_t}:
.if !defined(NOPRECIOUSMAKEVARS)
# These won't change, so we can pass them through the environment
-_EXPORTED_VARS= ARCH OPSYS OPREL OSVERSION
+_EXPORTED_VARS= ARCH OPSYS OPREL OSVERSION UNAMER
.for var in ${_EXPORTED_VARS}
.if empty(.MAKEFLAGS:M${var}=*)
.MAKEFLAGS: ${var}=${${var}:Q}
More information about the svn-ports-head
mailing list