Date: Saturday, December 10, 2022 @ 19:12:34
  Author: freswa
Revision: 464032

archrelease: copy trunk to staging-x86_64

Added:
  db/repos/staging-x86_64/
  db/repos/staging-x86_64/PKGBUILD
    (from rev 464031, db/trunk/PKGBUILD)
  db/repos/staging-x86_64/atomic.patch
    (from rev 464031, db/trunk/atomic.patch)

--------------+
 PKGBUILD     |   33 +++++++++++++++++++++++++++++++++
 atomic.patch |   20 ++++++++++++++++++++
 2 files changed, 53 insertions(+)

Copied: db/repos/staging-x86_64/PKGBUILD (from rev 464031, db/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2022-12-10 19:12:34 UTC (rev 464032)
@@ -0,0 +1,33 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: Stéphane Gaudreault <[email protected]>
+# Contributor: Allan McRae <[email protected]>
+# Contributor: Andreas Radke <[email protected]>
+
+pkgname=db
+pkgver=6.2.32
+pkgrel=1
+pkgdesc="The Berkeley DB embedded database system"
+arch=(x86_64)
+url='https://www.oracle.com/technology/software/products/berkeley-db/index.html'
+license=(AGPL3)
+depends=(gcc-libs sh)
+source=(https://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz)
+b2sums=('d3254fba1300d6c7dda5d872c5fa349e8704d71be9c4d37ccf3357782adeb879ce30e066cf083bd97554405c2e94071a96cee16090ad9f797a4fa657ff7e8c46')
+
+build() {
+  cd ${pkgname}-${pkgver}/build_unix
+  ../dist/configure \
+    --prefix=/usr \
+    --enable-compat185 \
+    --enable-shared \
+    --enable-static \
+    --enable-cxx \
+    --enable-dbm \
+    --enable-stl
+  make LIBSO_LIBS=-lpthread
+}
+
+package() {
+  make -C ${pkgname}-${pkgver}/build_unix DESTDIR="${pkgdir}" install
+  rm -r "${pkgdir}"/usr/docs
+}

Copied: db/repos/staging-x86_64/atomic.patch (from rev 464031, 
db/trunk/atomic.patch)
===================================================================
--- staging-x86_64/atomic.patch                         (rev 0)
+++ staging-x86_64/atomic.patch 2022-12-10 19:12:34 UTC (rev 464032)
@@ -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;

Reply via email to