diff options
author | dholland <dholland@pkgsrc.org> | 2016-01-06 07:38:25 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2016-01-06 07:38:25 +0000 |
commit | d0d1c118217939faaf9331dbc82a703424e46800 (patch) | |
tree | 43ff554cd0fd9d01605be87a71c749ad429211b6 /mk/checksum | |
parent | 7cca08b5d5a1e9e73052b5ee1e88b57b2cac2e56 (diff) | |
download | pkgsrc-d0d1c118217939faaf9331dbc82a703424e46800.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.mk | 4 |
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})"; \ |