git: 7866f1270fd2 - main - bsd.own.mk: Introduce TAR_XZ_CMD
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 May 2025 13:06:41 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=7866f1270fd2214f18efadc65482c6ef6dee253d
commit 7866f1270fd2214f18efadc65482c6ef6dee253d
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-05-22 18:48:13 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-05-25 01:00:41 +0000
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 0c47ba9af5c4..00a048fedc1d 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