From 2e5d6a089acf5c5e1a9398ba0e31cb753f724913 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Fri, 27 Nov 2020 16:24:40 +0300 Subject: [PATCH] Off multithreading by default on 32 bit arches --- xz.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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