summaryrefslogtreecommitdiff
path: root/mk/check
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
commitd4732893d73d2510d29559c392c7b144eb88d44c (patch)
treeef4c44a07061bb85bd0302391104ace316953930 /mk/check
parentb5a7572a9b6f62c4e4155b1fb75b2c3b23b4717f (diff)
downloadpkgsrc-d4732893d73d2510d29559c392c7b144eb88d44c.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.
Diffstat (limited to 'mk/check')
-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