summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-04-29 13:05:28 +0000
committerjperkin <jperkin@pkgsrc.org>2015-04-29 13:05:28 +0000
commita27429a7b9f730058fb571668646b9e5c7701fc7 (patch)
treeef4c44a07061bb85bd0302391104ace316953930
parent8391c042c4346394746a856efd17c7200fa540c2 (diff)
downloadpkgsrc-a27429a7b9f730058fb571668646b9e5c7701fc7.tar.gz
Only check executable files for valid interpreters. By the time this check is
performed all installed files should have their correct mode set, and there are no INSTALL scripts that currently change file modes under PREFIX after installation (nor should they ever). This change considerably speeds up the test. For example in www/firefox-l10n the time to run the test reduces from 181 seconds (135 seconds of system time) down to 10 seconds (6 seconds system time) on my SmartOS build systems.
-rw-r--r--mk/check/check-interpreter.mk13
1 files changed, 3 insertions, 10 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk
index cbb8a73bedc..7970df4945b 100644
--- a/mk/check/check-interpreter.mk
+++ b/mk/check/check-interpreter.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-interpreter.mk,v 1.28 2014/10/12 23:39:17 joerg Exp $
+# $NetBSD: check-interpreter.mk,v 1.29 2015/04/29 13:05:28 jperkin Exp $
#
# This file checks that after installation, all files of the package
# that start with a "#!" line will find their interpreter. Files that
@@ -53,7 +53,7 @@ _check-interpreter: error-check .PHONY
${_CHECK_INTERP_SKIP:@p@${p}) continue ;;@} \
*) ;; \
esac; \
- if [ ! -f "$$file" ]; then \
+ if [ ! -x "$$file" ]; then \
continue; \
fi; \
if [ ! -r "$$file" ]; then \
@@ -74,15 +74,8 @@ _check-interpreter: error-check .PHONY
fi; \
continue;; \
esac; \
- \
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; \
+ ${DELAYED_ERROR_MSG} "[check-interpreter.mk] The interpreter \"$$interp\" of \"${DESTDIR}${PREFIX}/$$file\" does not exist."; \
fi; \
done