diff --git a/xz.spec b/xz.spec index f236bff..fc4ed9e 100644 --- a/xz.spec +++ b/xz.spec @@ -8,7 +8,7 @@ Summary: XZ utils Name: xz Version: 5.2.5 -Release: 1 +Release: 2 License: Public Domain Group: Archiving/Compression Url: http://tukaani.org/xz/ @@ -87,6 +87,15 @@ Devel libraries & headers for liblzma. %prep %autosetup -p1 +# Patch3 turns on multithreading by default, but there are memory limits on 32 bit +# and xz(1) and liblzma do not control it by themselves +# https://bugzilla.redhat.com/show_bug.cgi?id=1196786 +# https://github.com/rpm-software-management/rpm/commit/a60f36a55cff3331e8bef3a1ab95c87d313911bb +# It makes xz fail in various places, e.g. when building the Linux kernel +%if "%{__isa_bits}" != "64" +%patch3 -p1 -R +%endif + %build export CONFIGURE_TOP=`pwd` mkdir objs