summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjoerg <joerg>2007-03-20 16:21:10 +0000
committerjoerg <joerg>2007-03-20 16:21:10 +0000
commite5a773d0c9d7a1c0e383aa6c73555f1b0f2ee7ff (patch)
tree81636c886c0fd3746169c77cd3a4f5bb8b7afb6f /mk
parent424f368c61bf93dd21dd6db979e0bf8979f31a91 (diff)
downloadpkgsrc-e5a773d0c9d7a1c0e383aa6c73555f1b0f2ee7ff.tar.gz
Fix check-interpreter when using USE_DESTDIR. From Klaus Heinz on
tech-pkg.
Diffstat (limited to 'mk')
-rw-r--r--mk/check/check-interpreter.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk
index 60f46c3ec27..ae4ae82098f 100644
--- a/mk/check/check-interpreter.mk
+++ b/mk/check/check-interpreter.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-interpreter.mk,v 1.16 2006/11/12 00:49:57 rillig Exp $
+# $NetBSD: check-interpreter.mk,v 1.17 2007/03/20 16:21:10 joerg Exp $
#
# This file checks that after installation, all files of the package
# that start with a "#!" line will find their interpreter. Files that
@@ -40,11 +40,11 @@ _check-interpreter: error-check .PHONY
@${STEP_MSG} "Checking for non-existent script interpreters in ${PKGNAME}"
${_PKG_SILENT}${_PKG_DEBUG} \
set -e; \
- cd ${PREFIX}; \
+ cd ${DESTDIR}${PREFIX}; \
${_CHECK_INTERP_FILELIST_CMD} | ${SORT} | ${SED} 's,\\,\\\\,g' |\
while read file; do \
case "$$file" in \
- ${_CHECK_INTERP_SKIP:@p@${PREFIX}/${p}|${p}) continue ;;@} \
+ ${_CHECK_INTERP_SKIP:@p@${p}|${p}) continue ;;@} \
*) ;; \
esac; \
if [ ! -r "$$file" ]; then \