summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-03-20 16:21:10 +0000
committerjoerg <joerg@pkgsrc.org>2007-03-20 16:21:10 +0000
commit28be10b7b55809bc5718a73dadc47cf42f94afbc (patch)
tree81636c886c0fd3746169c77cd3a4f5bb8b7afb6f
parent16e42a3022f814a00a677f2b19e0a70eb435927c (diff)
downloadpkgsrc-28be10b7b55809bc5718a73dadc47cf42f94afbc.tar.gz
Fix check-interpreter when using USE_DESTDIR. From Klaus Heinz on
tech-pkg.
-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 \