Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/strace strace: fail in a more user-friendly m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e50b8ab4856d
branches:  trunk
changeset: 437187:e50b8ab4856d
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Aug 18 05:22:38 2020 +0000

description:
strace: fail in a more user-friendly manner if kernel sources are missing

diffstat:

 sysutils/strace/Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 7d13412e3c61 -r e50b8ab4856d sysutils/strace/Makefile
--- a/sysutils/strace/Makefile  Tue Aug 18 05:12:55 2020 +0000
+++ b/sysutils/strace/Makefile  Tue Aug 18 05:22:38 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2019/08/11 13:23:17 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2020/08/18 05:22:38 tnn Exp $
 #
 
 DISTNAME=              strace-4.5.15
@@ -31,7 +31,10 @@
 .endif
 
 .if ${OPSYS} == "NetBSD"
-MAKE_ENV+=     NETBSD_SRCDIR=${BSD_SRCDIR:Q}
+MAKE_ENV+=     NETBSD_SRCDIR=${BSDSRCDIR:Q}
+.if !exists(${BSDSRCDIR:Q}/sys/kern/syscalls.master)
+PKG_FAIL_REASON+=      "Please place kernel sources in ${BSDSRCDIR:Q}/sys or set BSDSRCDIR"
+.endif
 pre-configure:
        ${CP} -f ${WRKSRC}/syscalls.pl ${WRKSRC}/netbsd
 



Home | Main Index | Thread Index | Old Index