From 6c5d1c87763dfe0dc055a7bcdf08f59186936543 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 17 Mar 2020 23:59:23 +0100 Subject: [PATCH] john: fix build on ppc64/ppc --- srcpkgs/john/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/john/template b/srcpkgs/john/template index 30cb6c8a3d5..a18953b2af9 100644 --- a/srcpkgs/john/template +++ b/srcpkgs/john/template @@ -15,6 +15,14 @@ homepage="https://www.openwall.com/john/" distfiles="$homepage/k/$pkgname-${version}-jumbo-${_jumbover}.tar.xz" checksum=f5d123f82983c53d8cc598e174394b074be7a77756f5fb5ed8515918c81e7f3b +# the build system checks the host cpu for features, so when building on +# a modern power9 system, it will attempt to shove in -mvsx and so on, +# which breaks builds for 970 and 32-bit +case "$XBPS_TARGET_MACHINE" in + ppc64le*) ;; + ppc*) configure_args+=" --disable-simd";; +esac + pre_configure() { unset CPP AS LD }