Browse Source

[trunk] -> [staging] 'db-5.3.28-5' add

master
artoo 2 months ago
parent
commit
b871cfc966
Signed by: artoo <artoo@artixlinux.org> GPG Key ID: 3292CD0BB0DB310B
3 changed files with 59 additions and 4 deletions
  1. +36
    -0
      db/repos/staging-x86_64/PKGBUILD
  2. +20
    -0
      db/repos/staging-x86_64/atomic.patch
  3. +3
    -4
      db/trunk/PKGBUILD

+ 36
- 0
db/repos/staging-x86_64/PKGBUILD View File

@@ -0,0 +1,36 @@
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>

pkgname=db
pkgver=5.3.28
pkgrel=5
pkgdesc="The Berkeley DB embedded database system"
arch=('x86_64')
url="https://www.oracle.com/technology/software/products/berkeley-db/index.html"
license=('custom')
depends=('gcc-libs' 'sh')
source=(https://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 \
--enable-shared --enable-static --enable-cxx --enable-dbm \
--enable-stl
make LIBSO_LIBS=-lpthread
}

package() {
cd "${srcdir}"/$pkgname-${pkgver}/build_unix
make DESTDIR="${pkgdir}" install
rm -r "${pkgdir}"/usr/docs
install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE \
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}

+ 20
- 0
db/repos/staging-x86_64/atomic.patch View File

@@ -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;

+ 3
- 4
db/trunk/PKGBUILD View File

@@ -1,17 +1,16 @@
# $Id$
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>

pkgname=db
pkgver=5.3.28
pkgrel=4
pkgrel=5
pkgdesc="The Berkeley DB embedded database system"
arch=('x86_64')
url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
url="https://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 atomic.patch)
source=(https://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz atomic.patch)
sha1sums=('fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9'
'70a51fe2a39a21652ef01767a9c8a30515b95a33')



Loading…
Cancel
Save