summaryrefslogtreecommitdiff
path: root/mk/checksum
diff options
context:
space:
mode:
authordholland <dholland>2016-01-06 07:38:25 +0000
committerdholland <dholland>2016-01-06 07:38:25 +0000
commit5c6cf9164d07cbba1e5c2fcbf4a5b0490909dcfb (patch)
tree43ff554cd0fd9d01605be87a71c749ad429211b6 /mk/checksum
parent7127420a9488a5f66634569ac2386e37b8835f28 (diff)
downloadpkgsrc-5c6cf9164d07cbba1e5c2fcbf4a5b0490909dcfb.tar.gz
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.
Diffstat (limited to 'mk/checksum')
-rw-r--r--mk/checksum/checksum.mk4
1 files changed, 2 insertions, 2 deletions
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})"; \