Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Nov 2018 09:47:07 +0100
From:      Stefan Ehmann <shoesoft@gmx.net>
To:        freebsd-stable@freebsd.org
Subject:   bsdtar: xz threads support disabled
Message-ID:  <a257cd4d-7d8f-2b7a-4fd8-5440544eaee7@gmx.net>

next in thread | raw e-mail | index | archive | help
Is there any reason why bsdtar is built without XZ multi-threading support?

It's not documented in the man page, so maybe it's an experimental feature.

Can be tested with this command:
tar -Jcf /dev/null --options xz:threads=4 $HOME

After setting HAVE_LZMA_STREAM_ENCODER_MT, it works as expected:

Index: lib/libarchive/Makefile
===================================================================
--- lib/libarchive/Makefile     (revision 340812)
+++ lib/libarchive/Makefile     (working copy)
@@ -7,7 +7,7 @@
 LIB=   archive

 LIBADD=        z bz2 lzma bsdxml
-CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
+CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
-DHAVE_LZMA_STREAM_ENCODER_MT=1

 # FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
 # It has no real relation to the libarchive version number.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a257cd4d-7d8f-2b7a-4fd8-5440544eaee7>