From 7866f1270fd2214f18efadc65482c6ef6dee253d Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 22 May 2025 14:48:13 -0400 Subject: [PATCH] bsd.own.mk: Introduce TAR_XZ_CMD It is TAR_CMD with -J added, and can be used to avoid a tar | xz pipe that could mask errors. Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50473 --- share/mk/bsd.own.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 0c47ba9af5c..00a048fedc1 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -272,8 +272,10 @@ XZ_THREADS?= 0 .if !empty(XZ_THREADS) XZ_CMD?= xz -T ${XZ_THREADS} +TAR_XZ_CMD?= ${TAR_CMD} -J --options xz:threads=${XZ_THREADS} .else XZ_CMD?= xz +TAR_XZ_CMD?= ${TAR_CMD} -J .endif PKG_CMD?= pkg