From 05c246e5e16d20b7e1baa48b10a821b4540c3a2faf6c0336f692ee7b2f8ec987 Mon Sep 17 00:00:00 2001 From: Torsten Gruner Date: Tue, 10 Sep 2019 14:39:55 +0000 Subject: [PATCH] Accepting request 729919 from home:Simmphonie Fixed build for ARM and PPC. CPU with AVX support at least is only available for x86_64 architecture now. OBS-URL: https://build.opensuse.org/request/show/729919 OBS-URL: https://build.opensuse.org/package/show/security/john?expand=0&rev=60 --- john.changes | 6 ++++++ john.spec | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/john.changes b/john.changes index add642c..ca57b2c 100644 --- a/john.changes +++ b/john.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 10 13:32:21 UTC 2019 - simmphonie@opensuse.org + +- Fixed build for ARM and PPC. CPU with AVX support at least is + only available for x86_64 architecture now. + ------------------------------------------------------------------- Tue Sep 10 06:57:56 UTC 2019 - Jan Engelhardt diff --git a/john.spec b/john.spec index d933e62..66475fd 100644 --- a/john.spec +++ b/john.spec @@ -66,7 +66,15 @@ perl -pi -e 's#^(\#define JOHN_SYSTEMWIDE_HOME)\s.+$#$1\t\"%{johndir}\"#g' $RPM_ %build pushd src -%configure --with-systemwide --disable-openmp --enable-fuzz --enable-experimental-code --enable-pkg-config --disable-native-tests --enable-simd=avx +%configure --with-systemwide \ + --disable-openmp \ + --enable-fuzz \ + --enable-experimental-code \ + --enable-pkg-config \ +%ifarch x86_64 + --enable-simd=avx \ +%endif + --disable-native-tests make -s clean make %{?_smp_mflags} popd