diff options
author | bjs <bjs> | 2007-11-30 08:34:31 +0000 |
---|---|---|
committer | bjs <bjs> | 2007-11-30 08:34:31 +0000 |
commit | 32db66f37660b21129fdb615b56a6be53d636aad (patch) | |
tree | dc1fce8cea32065bb635a350de9a22a2fea02006 /mk | |
parent | e84b6ff584d151c6cd4361d4f3ac20c8398af08a (diff) | |
download | pkgsrc-32db66f37660b21129fdb615b56a6be53d636aad.tar.gz |
The interpreter check for packages which are their own interpreter,
e.g. lang/perl5, was failing. Adding a check for ${DESTDIR}"$$interp"
fixes this.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/check/check-interpreter.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk index 1f6138b43d4..1aa35238930 100644 --- a/mk/check/check-interpreter.mk +++ b/mk/check/check-interpreter.mk @@ -1,4 +1,4 @@ -# $NetBSD: check-interpreter.mk,v 1.20 2007/11/07 10:52:00 rillig Exp $ +# $NetBSD: check-interpreter.mk,v 1.21 2007/11/30 08:34:31 bjs Exp $ # # This file checks that after installation, all files of the package # that start with a "#!" line will find their interpreter. Files that @@ -63,10 +63,14 @@ _check-interpreter: error-check .PHONY case "$$interp" in \ "") continue; \ esac; \ - if [ ! -f "$$interp" ]; then \ + \ + if { [ ! -f ${DESTDIR:Q}"$$interp" ] && \ + [ ! -f "$$interp" ]; }; then \ + \ if [ -x "$$file" ]; then \ ${DELAYED_ERROR_MSG} "[check-interpreter.mk] The interpreter \"$$interp\" of \"${DESTDIR}${PREFIX}/$$file\" does not exist."; \ else \ + \ ${DELAYED_WARNING_MSG} "[check-interpreter.mk] The interpreter \"$$interp\" of \"${DESTDIR}${PREFIX}/$$file\" does not exist."; \ fi; \ fi; \ |