summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2021-10-22 19:00:06 +0000
committerjperkin <jperkin@pkgsrc.org>2021-10-22 19:00:06 +0000
commitd08dbb1423493d136d9df553eb6b6a0f71577492 (patch)
treee92163020818a03224185c40d9f6c7bb33ba4992 /mk/tools
parent28b15318a1ca06e0b4ec7cebb9115cde7af42bd1 (diff)
downloadpkgsrc-d08dbb1423493d136d9df553eb6b6a0f71577492.tar.gz
mk: Use native bsdtar on NetBSD 9.0 onwards.
Relying on native variables like MKBSDTAR only works when using the native make, and should be avoided as they are not set when using a bootstrap. Should fix build of lang/go117 with bootstrapped NetBSD, as bsdtar from pkgsrc is unable to handle the distfile due to locale errors.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/tools.NetBSD.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/tools/tools.NetBSD.mk b/mk/tools/tools.NetBSD.mk
index 57aa2a9f53a..ffb3adab801 100644
--- a/mk/tools/tools.NetBSD.mk
+++ b/mk/tools/tools.NetBSD.mk
@@ -1,11 +1,11 @@
-# $NetBSD: tools.NetBSD.mk,v 1.67 2020/02/25 11:20:28 tnn Exp $
+# $NetBSD: tools.NetBSD.mk,v 1.68 2021/10/22 19:00:06 jperkin Exp $
#
# System-supplied tools for the NetBSD operating system.
TOOLS_PLATFORM.[?= [ # shell builtin
TOOLS_PLATFORM.awk?= /usr/bin/awk
TOOLS_PLATFORM.basename?= /usr/bin/basename
-.if !empty(MKBSDTAR:U:Myes)
+.if empty(MACHINE_PLATFORM:MNetBSD-[0-8].*) || !empty(MKBSDTAR:U:Myes)
TOOLS_PLATFORM.bsdtar?= /bin/tar
.endif
TOOLS_PLATFORM.byacc?= /usr/bin/yacc