From 5c6cf9164d07cbba1e5c2fcbf4a5b0490909dcfb Mon Sep 17 00:00:00 2001 From: dholland Date: Wed, 6 Jan 2016 07:38:25 +0000 Subject: Use :tA to make DISTINFO_FILE absolute when passing it to the fetch and checksum scripts. Fixes the problem where DISTINFO_FILE=../../foo/bar/distinfo doesn't work without having an extraneous and ugly ${.CURDIR} stuffed into it by hand. --- mk/checksum/checksum.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk/checksum') diff --git a/mk/checksum/checksum.mk b/mk/checksum/checksum.mk index 61e42b3fb59..4d82d777b14 100644 --- a/mk/checksum/checksum.mk +++ b/mk/checksum/checksum.mk @@ -1,4 +1,4 @@ -# $NetBSD: checksum.mk,v 1.21 2015/10/12 18:23:48 agc Exp $ +# $NetBSD: checksum.mk,v 1.22 2016/01/06 07:38:25 dholland Exp $ # # See bsd.checksum.mk for helpful comments. # @@ -41,7 +41,7 @@ checksum checksum-phase: case ${.TARGET:Q} in \ *-phase) ${TEST} ! -f ${_COOKIE.checksum} || exit 0 ;; \ esac; \ - if cd ${DISTDIR} && ${_CHECKSUM_CMD} ${DISTINFO_FILE} ${_CKSUMFILES}; then \ + if cd ${DISTDIR} && ${_CHECKSUM_CMD} ${DISTINFO_FILE:tA} ${_CKSUMFILES}; then \ ${TRUE}; \ else \ ${ERROR_MSG} "Make sure the Makefile and checksum file (${DISTINFO_FILE})"; \ -- cgit v1.2.3