diff options
author | bjs <bjs> | 2007-11-30 08:34:31 +0000 |
---|---|---|
committer | bjs <bjs> | 2007-11-30 08:34:31 +0000 |
commit | c0bc777b3d60cd659b789c1327254e7b1e6a0e01 (patch) | |
tree | dc1fce8cea32065bb635a350de9a22a2fea02006 /mk/check | |
parent | 32bc515734b525b7d49a1602100cf8ca9c316eeb (diff) | |
download | pkgsrc-c0bc777b3d60cd659b789c1327254e7b1e6a0e01.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/check')
-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; \ |