diff options
author | 2016-07-26 13:47:44 -0400 | |
---|---|---|
committer | 2016-07-26 13:56:29 -0400 | |
commit | e7190087b79b1685765ab683bf3ad23edb229950 (patch) | |
tree | d8af50ed5fb007a08c067862b80f8a40254313d1 /app-arch/libarchive/files/libarchive-3.2.1-xz-utils-thread-detection.patch | |
parent | profiles: mask net-misc/gogoc for removal, bug #589760 (diff) | |
download | gentoo-e7190087b79b1685765ab683bf3ad23edb229950.tar.gz gentoo-e7190087b79b1685765ab683bf3ad23edb229950.tar.bz2 gentoo-e7190087b79b1685765ab683bf3ad23edb229950.zip |
app-arch/libarchive: Add explicit dep on xz threads=, backport detecction
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-arch/libarchive/files/libarchive-3.2.1-xz-utils-thread-detection.patch')
-rw-r--r-- | app-arch/libarchive/files/libarchive-3.2.1-xz-utils-thread-detection.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-arch/libarchive/files/libarchive-3.2.1-xz-utils-thread-detection.patch b/app-arch/libarchive/files/libarchive-3.2.1-xz-utils-thread-detection.patch new file mode 100644 index 000000000000..dda2359ac92e --- /dev/null +++ b/app-arch/libarchive/files/libarchive-3.2.1-xz-utils-thread-detection.patch @@ -0,0 +1,27 @@ +From 7c3148ec0a2fed4834c6f9869ff7d2da77ba804c Mon Sep 17 00:00:00 2001 +From: Joerg Sonnenberger <joerg@bec.de> +Date: Wed, 22 Jun 2016 23:03:43 +0200 +Subject: [PATCH] Ignore the MT encoder in XZ 5.2 prerelease versions. + +--- + configure.ac | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 64775fa..4f7f432 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -374,8 +374,11 @@ if test "x$with_lzma" != "xno"; then + AC_CACHE_CHECK( + [whether we have multithread support in lzma], + ac_cv_lzma_has_mt, +- [AC_COMPILE_IFELSE([ +- AC_LANG_PROGRAM([[#include <lzma.h>]], ++ [AC_LINK_IFELSE([ ++ AC_LANG_PROGRAM([[#include <lzma.h>] ++ [#if LZMA_VERSION < 50020000] ++ [#error unsupported] ++ [#endif]], + [[lzma_stream_encoder_mt(0, 0);]])], + [ac_cv_lzma_has_mt=yes], [ac_cv_lzma_has_mt=no])]) + if test "x$ac_cv_lzma_has_mt" != xno; then |