Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2015 17:01:59 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287436 - head/share/mk
Message-ID:  <201509031701.t83H1xnE054400@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Thu Sep  3 17:01:58 2015
New Revision: 287436
URL: https://svnweb.freebsd.org/changeset/base/287436

Log:
  Avoid sub-shell for realpath(1) for bmake by using its built-in :tA.
  
  MFC after:	2 weeks
  Approved by:	portmgr (implicit)

Modified:
  head/share/mk/bsd.port.mk
  head/share/mk/bsd.port.subdir.mk

Modified: head/share/mk/bsd.port.mk
==============================================================================
--- head/share/mk/bsd.port.mk	Thu Sep  3 16:43:35 2015	(r287435)
+++ head/share/mk/bsd.port.mk	Thu Sep  3 17:01:58 2015	(r287436)
@@ -10,8 +10,12 @@ _PORTSDIR=	${.CURDIR}/${RELPATH}
 .endif
 .endfor
 _PORTSDIR?=	/usr/ports
+.if defined(.PARSEDIR)
+PORTSDIR=	${_PORTSDIR:tA}
+.else # fmake doesn't have :tA
 PORTSDIR!=	realpath ${_PORTSDIR}
 .endif
+.endif
 
 BSDPORTMK?=	${PORTSDIR}/Mk/bsd.port.mk
 

Modified: head/share/mk/bsd.port.subdir.mk
==============================================================================
--- head/share/mk/bsd.port.subdir.mk	Thu Sep  3 16:43:35 2015	(r287435)
+++ head/share/mk/bsd.port.subdir.mk	Thu Sep  3 17:01:58 2015	(r287436)
@@ -10,8 +10,12 @@ _PORTSDIR=	${.CURDIR}/${RELPATH}
 .endif
 .endfor
 _PORTSDIR?=	/usr/ports
+.if defined(.PARSEDIR)
+PORTSDIR=	${_PORTSDIR:tA}
+.else # fmake doesn't have :tA
 PORTSDIR!=	realpath ${_PORTSDIR}
 .endif
+.endif
 
 BSDPORTSUBDIRMK?=	${PORTSDIR}/Mk/bsd.port.subdir.mk
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509031701.t83H1xnE054400>