diff options
author | bjs <bjs@pkgsrc.org> | 2007-11-30 08:34:31 +0000 |
---|---|---|
committer | bjs <bjs@pkgsrc.org> | 2007-11-30 08:34:31 +0000 |
commit | b5111e5b583ae84efff020bcddb0382d3ffdb37a (patch) | |
tree | dc1fce8cea32065bb635a350de9a22a2fea02006 /mk | |
parent | 558e7e4fd5a6f85d0be5d7f6701440bfe2db0809 (diff) | |
download | pkgsrc-b5111e5b583ae84efff020bcddb0382d3ffdb37a.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; \ |