Date: Thu, 17 Sep 2015 00:24:50 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r287889 - stable/10/share/mk Message-ID: <201509170024.t8H0OoxS078626@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Thu Sep 17 00:24:50 2015 New Revision: 287889 URL: https://svnweb.freebsd.org/changeset/base/287889 Log: MFC r287436: Avoid sub-shell for realpath(1) for bmake by using its built-in :tA. Modified: stable/10/share/mk/bsd.port.mk stable/10/share/mk/bsd.port.subdir.mk Directory Properties: stable/10/ (props changed) Modified: stable/10/share/mk/bsd.port.mk ============================================================================== --- stable/10/share/mk/bsd.port.mk Thu Sep 17 00:19:27 2015 (r287888) +++ stable/10/share/mk/bsd.port.mk Thu Sep 17 00:24:50 2015 (r287889) @@ -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: stable/10/share/mk/bsd.port.subdir.mk ============================================================================== --- stable/10/share/mk/bsd.port.subdir.mk Thu Sep 17 00:19:27 2015 (r287888) +++ stable/10/share/mk/bsd.port.subdir.mk Thu Sep 17 00:24:50 2015 (r287889) @@ -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?201509170024.t8H0OoxS078626>