Off multithreading by default on 32 bit arches

This commit is contained in:
Mikhail Novosyolov 2020-11-27 16:24:40 +03:00
parent ebdb8428f2
commit 2e5d6a089a

11
xz.spec
View file

@ -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