diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2009-01-12 13:11:22 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2009-01-12 13:11:22 +0000 |
commit | c166eebbecd231e8c1b67e7b9a3965491f645cd0 (patch) | |
tree | e96728f0398f0fa9c6c37f93ca3511b02b4c0641 /mk/check | |
parent | fba18dd7062e26d69c25490f8e77753348f0cb2f (diff) | |
download | pkgsrc-c166eebbecd231e8c1b67e7b9a3965491f645cd0.tar.gz |
Fix check-wrkref path.
_CHECK_WRKREF_FILELIST_CMD is a command which prints PLIST paths
converted to absolute path. _CHECK_WRKREF_FILELIST_CMD can run
anywhere, so cd ${DESTDIR} before that is pointless. To access files,
_CHECK_WRKREF_FILELIST_CMD's output needs to be s/^/${DESTDIR}/ when
destdir is used.
Reviewed By: joerg
Diffstat (limited to 'mk/check')
-rw-r--r-- | mk/check/check-wrkref.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/check/check-wrkref.mk b/mk/check/check-wrkref.mk index 7aefa90fcd4..904a1283b31 100644 --- a/mk/check/check-wrkref.mk +++ b/mk/check/check-wrkref.mk @@ -1,4 +1,4 @@ -# $NetBSD: check-wrkref.mk,v 1.18 2008/02/20 10:23:26 rillig Exp $ +# $NetBSD: check-wrkref.mk,v 1.19 2009/01/12 13:11:22 uebayasi Exp $ # # This file checks that the installed files don't contain any strings # that point to the directory where the package had been built, to make @@ -73,7 +73,6 @@ _check-wrkref: error-check .PHONY ${RUN} rm -f ${ERROR_DIR}/${.TARGET} ${RUN} \ exec 1>${ERROR_DIR}/${.TARGET}; \ - cd ${DESTDIR}${PREFIX}; \ ${_CHECK_WRKREF_FILELIST_CMD} | ${SORT} | \ while read file; do \ case "$$file" in \ @@ -82,7 +81,7 @@ _check-wrkref: error-check .PHONY esac; \ ${SHCOMMENT} "[$$file]"; \ for d in ${_CHECK_WRKREF_DIRS}; do \ - grep "$$d" "$$file" 2>/dev/null | \ + grep "$$d" "${DESTDIR}$$file" 2>/dev/null | \ sed -e "s|^|$$file: |"; \ done; \ done |