diff options
author | gdt <gdt@pkgsrc.org> | 2020-03-12 17:01:39 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2020-03-12 17:01:39 +0000 |
commit | 617bac4a2c736dfe8e113320e2380363466276cb (patch) | |
tree | c51937b85cf95b656f5564182758c7e7441767c6 | |
parent | 1aa1bd9580c891924e8b9a1a3045ccecf9a1cbd1 (diff) | |
download | pkgsrc-617bac4a2c736dfe8e113320e2380363466276cb.tar.gz |
mk/platform/NetBSD.mk: Default to bsdtar
Native tar on NetBSD <=8 (and later, if MKBSDTAR is no) does not
handle archive formats increasingly being seen in pkgsrc. bsdtar
("libarchive tar") does, and is natively provided on NetBSD >=9.
pkgsrc already has a mechanism to use /bin/tar as the bsdtar tool when
it is bsdtar, so this change should not cause anything different on
NetBSD >= 9. On <=8, it will depend on archivers/bsdtar, which can
be built without using an extract tool, and which will then be broadly
usable.
As broadly discussed over multiple days on tech-pkg.
-rw-r--r-- | mk/platform/NetBSD.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk index 9673a62e3ea..971af6ee8c4 100644 --- a/mk/platform/NetBSD.mk +++ b/mk/platform/NetBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: NetBSD.mk,v 1.58 2019/01/09 13:19:03 wiz Exp $ +# $NetBSD: NetBSD.mk,v 1.59 2020/03/12 17:01:39 gdt Exp $ # # Variable definitions for the NetBSD operating system. @@ -13,6 +13,9 @@ PS?= /bin/ps SU?= /usr/bin/su TYPE?= type # Shell builtin +# pax-as-tar, found on <=8, and optionally later, fails on many archives. +EXTRACT_USING?= bsdtar + USERADD?= /usr/sbin/useradd GROUPADD?= /usr/sbin/groupadd |