From d4277ffe458c5cff1502f8b5441f56dde24bfd45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Wed, 6 Nov 2013 10:23:00 +0100 Subject: [PATCH] Updated config files to allow build on aarch64 (#1022970) --- libdb.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libdb.spec b/libdb.spec index c92a95c..ef3676a 100644 --- a/libdb.spec +++ b/libdb.spec @@ -4,7 +4,7 @@ Summary: The Berkeley DB database library for C Name: libdb Version: 5.3.28 -Release: 1%{?dist} +Release: 2%{?dist} Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz Source1: http://download.oracle.com/berkeley-db/db.1.85.tar.gz # For mt19937db.c @@ -210,6 +210,7 @@ popd cd dist ./s_config +cd .. %build CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" @@ -224,6 +225,11 @@ test -d dist/dist-tls || mkdir dist/dist-tls /bin/sh libtool --tag=CC --mode=compile %{__cc} $RPM_OPT_FLAGS -Idb.1.85/PORT/%{_os}/include -D_REENTRANT -c util/db_dump185.c -o dist/dist-tls/db_dump185.lo /bin/sh libtool --tag=LD --mode=link %{__cc} -o dist/dist-tls/db_dump185 dist/dist-tls/db_dump185.lo db.1.85/PORT/%{_os}/libdb.a +# Update config files to understand aarch64 +for dir in dist lang/sql/sqlite lang/sql/jdbc lang/sql/odbc; do + cp /usr/lib/rpm/redhat/config.{guess,sub} "$dir" +done + pushd dist/dist-tls ln -sf ../configure . %configure -C \ @@ -404,6 +410,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/libdb_java.so %changelog +* Wed Nov 06 2013 Jan Stanek - 5.3.28-2 +- Updated config files to allow build on aarch64 (#1022970) + * Tue Oct 08 2013 Jan Stanek - 5.3.28-1 - Added Sleepycat to the license list (#1013841) - Updated to 5.3.28 (#1013233)