git: 8ef92ee26b9d - stable/14 - libarchive: fix thread autodetermination for zstd compression format

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Thu, 27 Jun 2024 08:55:02 UTC
The branch stable/14 has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=8ef92ee26b9d8e5bb76a759b6356119b5a8b8e9d

commit 8ef92ee26b9d8e5bb76a759b6356119b5a8b8e9d
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-05-03 13:37:29 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-06-27 08:53:41 +0000

    libarchive: fix thread autodetermination for zstd compression format
    
    The libarchive code uses sysconf(3) to determine the number of threads
    when 0 has been given as the number of thread to use
    
    MFC after:      3 days
    
    (cherry picked from commit a25e0ba57ee17e75ab27fdc09ac3275a8215087e)
---
 lib/libarchive/Makefile.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/libarchive/Makefile.inc b/lib/libarchive/Makefile.inc
index 153f96b12165..755a39ec01e8 100644
--- a/lib/libarchive/Makefile.inc
+++ b/lib/libarchive/Makefile.inc
@@ -4,7 +4,8 @@
 
 LIBADD=	z bz2 lzma bsdxml zstd
 CFLAGS+=	-DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 \
-		-DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1 -DHAVE_ZSTD_compressStream=1
+		-DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1 -DHAVE_ZSTD_compressStream=1 \
+		-DHAVE_SYSCONF=1
 CFLAGS+=	-DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
 
 .if ${MK_OPENSSL} != "no"