diff options
author | roy <roy@pkgsrc.org> | 2011-04-19 15:31:45 +0000 |
---|---|---|
committer | roy <roy@pkgsrc.org> | 2011-04-19 15:31:45 +0000 |
commit | ad142128039122d6ec1019de62fca203ae3dd908 (patch) | |
tree | ec5bed63316e1c82759d1c109a9c1c963bb63779 /mk/check | |
parent | 79850b9d7c57f17bcfcd2c8876c2b7f72da80de2 (diff) | |
download | pkgsrc-ad142128039122d6ec1019de62fca203ae3dd908.tar.gz |
Just warn about non executable files using env.
Diffstat (limited to 'mk/check')
-rw-r--r-- | mk/check/check-interpreter.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk index f2883e1b431..b026e6a5ea9 100644 --- a/mk/check/check-interpreter.mk +++ b/mk/check/check-interpreter.mk @@ -1,4 +1,4 @@ -# $NetBSD: check-interpreter.mk,v 1.26 2011/04/19 14:28:28 roy Exp $ +# $NetBSD: check-interpreter.mk,v 1.27 2011/04/19 15:31:45 roy Exp $ # # This file checks that after installation, all files of the package # that start with a "#!" line will find their interpreter. Files that @@ -67,7 +67,12 @@ _check-interpreter: error-check .PHONY }; \ case "$$interp" in \ "") continue;; \ - /bin/env|/usr/bin/env) ${DELAYED_ERROR_MSG} "[check-interpreter.mk] The interpreter \"$$interp\" of \"${DESTDIR}${PREFIX}/$$file\" is not allowed.";; \ + /bin/env|/usr/bin/env) if [ -x "$$file" ]; then \ + ${DELAYED_ERROR_MSG} "[check-interpreter.mk] The interpreter \"$$interp\" of \"${DESTDIR}${PREFIX}/$$file\" is not allowed."; \ + else \ + ${DELAYED_WARNING_MSG} "[check-interpreter.mk] The interpreter \"$$interp\" of \"${DESTDIR}${PREFIX}/$$file\" is not allowed."; \ + fi; \ + continue;; \ esac; \ \ if { [ ! -f ${DESTDIR:Q}"$$interp" ] && \ |