svn commit: r399164 - head/Mk

Bryan Drewery bdrewery at FreeBSD.org
Mon Oct 12 22:44:20 UTC 2015


Author: bdrewery
Date: Mon Oct 12 22:44:19 2015
New Revision: 399164
URL: https://svnweb.freebsd.org/changeset/ports/399164

Log:
  Name the 'uname -r' variable the same as the bsd.port.subdir.mk version, _OSRELEASE.
  
  This will allow passing in the environment consistently from calling script
  to avoid looking it up if.
  
  With hat:	portmgr

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Mon Oct 12 22:42:57 2015	(r399163)
+++ head/Mk/bsd.port.mk	Mon Oct 12 22:44:19 2015	(r399164)
@@ -1174,13 +1174,13 @@ OPSYS!=	${UNAME} -s
 .endif
 _EXPORTED_VARS+=	OPSYS
 
-.if !defined(UNAMER)
-UNAMER!=	${UNAME} -r
+.if !defined(_OSRELEASE)
+_OSRELEASE!=	${UNAME} -r
 .endif
-_EXPORTED_VARS+=	UNAMER
+_EXPORTED_VARS+=	_OSRELEASE
 
 # Get the operating system revision
-OSREL?=	${UNAMER:C/-.*//}
+OSREL?=	${_OSRELEASE:C/-.*//}
 _EXPORTED_VARS+=	OSREL
 
 # Get __FreeBSD_version
@@ -1200,8 +1200,8 @@ _OSVERSION_MAJOR=	${OSVERSION:C/([0-9]?[
 # Sanity checks for chroot/jail building.
 # Skip if OSVERSION specified on cmdline for testing. Only works for bmake.
 .if !defined(.MAKEOVERRIDES) || !${.MAKEOVERRIDES:MOSVERSION}
-.if ${_OSVERSION_MAJOR} != ${UNAMER:R}
-.error UNAME_r (${UNAMER}) and OSVERSION (${OSVERSION}) do not agree on major version number.
+.if ${_OSVERSION_MAJOR} != ${_OSRELEASE:R}
+.error UNAME_r (${_OSRELEASE}) and OSVERSION (${OSVERSION}) do not agree on major version number.
 .elif ${_OSVERSION_MAJOR} != ${OSREL:R}
 .error OSREL (${OSREL}) and OSVERSION (${OSVERSION}) do not agree on major version number.
 .endif


More information about the svn-ports-head mailing list