]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/commitdiff
compat-db: Fix build on aarch64
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Oct 2016 17:49:58 +0000 (13:49 -0400)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Oct 2016 10:50:25 +0000 (06:50 -0400)
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 <michael.tremer@ipfire.org>
compat-db/compat-db.nm

index 6c6c040200bf7acd161c826150b15fe062f4f1d5..6a5f7673cf4666578047ad79dc4aa2bfd55cebf8 100644 (file)
@@ -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 <michael.tremer@ipfire.org>
@@ -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}