summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authoruebayasi <uebayasi>2009-01-12 13:11:22 +0000
committeruebayasi <uebayasi>2009-01-12 13:11:22 +0000
commit243d62ede57e150b07dfa2ee477054230be07bd4 (patch)
treee96728f0398f0fa9c6c37f93ca3511b02b4c0641 /mk/check
parent5b9166e90ed794bcc5088e01c8425ff69ee5bd29 (diff)
downloadpkgsrc-243d62ede57e150b07dfa2ee477054230be07bd4.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.mk5
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