pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Whether a missing interpreter is a warning or an er...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32b4dd742f43
branches:  trunk
changeset: 506735:32b4dd742f43
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jan 21 10:13:25 2006 +0000

description:
Whether a missing interpreter is a warning or an error depends on whether
the _file_ is executable, not the _interpreter_.

diffstat:

 mk/bsd.pkg.check.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 41712a6ee3a4 -r 32b4dd742f43 mk/bsd.pkg.check.mk
--- a/mk/bsd.pkg.check.mk       Sat Jan 21 10:12:40 2006 +0000
+++ b/mk/bsd.pkg.check.mk       Sat Jan 21 10:13:25 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.check.mk,v 1.26 2006/01/21 10:04:44 rillig Exp $
+# $NetBSD: bsd.pkg.check.mk,v 1.27 2006/01/21 10:13:25 rillig Exp $
 #
 # This Makefile fragment is included by bsd.pkg.mk and defines the
 # relevant variables and targets for the various install-time "check"
@@ -450,7 +450,7 @@
                "") continue;                                           \
                esac;                                                   \
                if ${TEST} ! -f "$$interp"; then                        \
-                       if ${TEST} -x "$$interp"; then                  \
+                       if ${TEST} -x "$$file"; then                    \
                                ${ECHO} "[bsd.pkg.check.mk] ERROR: The interpreter \"$$interp\" of \"$$file\" does not exist." 1>&2; \
                                exitcode=1;                             \
                        else                                            \



Home | Main Index | Thread Index | Old Index