Date: Tuesday, June 5, 2018 @ 07:08:19 Author: arojas Revision: 325889
BUILDINFO rebuild Added: db/trunk/atomic.patch Modified: db/trunk/PKGBUILD --------------+ PKGBUILD | 12 +++++++++--- atomic.patch | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-06-05 06:58:56 UTC (rev 325888) +++ PKGBUILD 2018-06-05 07:08:19 UTC (rev 325889) @@ -5,15 +5,21 @@ pkgname=db pkgver=5.3.28 -pkgrel=3 +pkgrel=4 pkgdesc="The Berkeley DB embedded database system" arch=('x86_64') url="http://www.oracle.com/technology/software/products/berkeley-db/index.html" license=('custom') depends=('gcc-libs' 'sh') -source=(http://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz) -sha1sums=('fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9') +source=(http://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz atomic.patch) +sha1sums=('fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9' + '70a51fe2a39a21652ef01767a9c8a30515b95a33') +prepare() { + cd $pkgname-$pkgver + patch -p0 -i ../atomic.patch # Fix build +} + build() { cd "${srcdir}"/$pkgname-${pkgver}/build_unix ../dist/configure --prefix=/usr --enable-compat185 \ Added: atomic.patch =================================================================== --- atomic.patch (rev 0) +++ atomic.patch 2018-06-05 07:08:19 UTC (rev 325889) @@ -0,0 +1,20 @@ +--- src/dbinc/atomic.h 2013-03-12 14:07:22.000000000 -0400 ++++ src/dbinc/atomic.h.change 2013-03-12 14:06:35.000000000 -0400 +@@ -144,7 +144,7 @@ + #define atomic_inc(env, p) __atomic_inc(p) + #define atomic_dec(env, p) __atomic_dec(p) + #define atomic_compare_exchange(env, p, o, n) \ +- __atomic_compare_exchange((p), (o), (n)) ++ __atomic_compare_exchange_db((p), (o), (n)) + static inline int __atomic_inc(db_atomic_t *p) + { + int temp; +@@ -176,7 +176,7 @@ + * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html + * which configure could be changed to use. + */ +-static inline int __atomic_compare_exchange( ++static inline int __atomic_compare_exchange_db( + db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval) + { + atomic_value_t was;