From: Michael Tremer Date: Sun, 2 Oct 2016 17:49:58 +0000 (-0400) Subject: compat-db: Fix build on aarch64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b3631798e33e78fcc63a094ba3bbba412f92bbc;p=ipfire-3.x.git compat-db: Fix build on aarch64 Some older versions do not have support for aarch64 in configure, yet. Our automatic macro didn't fix that automatically which requires these lines. Signed-off-by: Michael Tremer --- diff --git a/compat-db/compat-db.nm b/compat-db/compat-db.nm index 6c6c04020..6a5f7673c 100644 --- a/compat-db/compat-db.nm +++ b/compat-db/compat-db.nm @@ -6,7 +6,7 @@ name = compat-db version = %{main_version} # Release cannot be reset because the sub-packages won't get updated -release = 7 +release = 8 thisapp = db-%{version} maintainer = Michael Tremer @@ -53,6 +53,15 @@ build build for version in %{versions}; do + # Fix autotools on aarch64 + for i in $(find %{DIR_SRC}/db-${version} -name config.guess -or -name config.sub); do + if ! grep -q "aarch64" ${i}; then + if [ -e "%{datadir}/pakfire/$(basename ${i})" ]; then + cp -vf %{datadir}/pakfire/$(basename ${i}) $(dirname ${i}) + fi + fi + done + cd %{DIR_SRC}/db-${version}/build_unix ../dist/configure \ %{configure_options}