Browse Source

l/db53: Built according to ZeroC instructions.

slackware-14.2
Damien Goutte-Gattat 6 years ago
parent
commit
e7e2058d30
  1. 70
      l/db53/berkeley-db.5.3.28.patch
  2. 1
      l/db53/db-5.3.28.NC.tar.gz.sha1
  3. 1
      l/db53/db5.3_5.3.28.orig.tar.xz.sha1
  4. 15
      l/db53/db53.SlackBuild

70
l/db53/berkeley-db.5.3.28.patch

@ -0,0 +1,70 @@
diff -r -c -N ../db-5.3.28.orig/lang/java/src/com/sleepycat/asm/ClassReader.java ./lang/java/src/com/sleepycat/asm/ClassReader.java
*** ../db-5.3.28.orig/lang/java/src/com/sleepycat/asm/ClassReader.java 2013-09-09 13:05:04.000000000 -0230
--- ./lang/java/src/com/sleepycat/asm/ClassReader.java 2015-02-20 15:34:50.000000000 -0330
***************
*** 163,169 ****
public ClassReader(final byte[] b, final int off, final int len) {
this.b = b;
// checks the class version
! if (readShort(6) > Opcodes.V1_7) {
throw new IllegalArgumentException();
}
// parses the constant pool
--- 163,169 ----
public ClassReader(final byte[] b, final int off, final int len) {
this.b = b;
// checks the class version
! if (readShort(6) > Opcodes.V1_8) {
throw new IllegalArgumentException();
}
// parses the constant pool
diff -r -c -N ../db-5.3.28.orig/lang/java/src/com/sleepycat/asm/Opcodes.java ./lang/java/src/com/sleepycat/asm/Opcodes.java
*** ../db-5.3.28.orig/lang/java/src/com/sleepycat/asm/Opcodes.java 2013-09-09 13:05:04.000000000 -0230
--- ./lang/java/src/com/sleepycat/asm/Opcodes.java 2015-02-20 15:35:09.000000000 -0330
***************
*** 56,61 ****
--- 56,62 ----
int V1_5 = 0 << 16 | 49;
int V1_6 = 0 << 16 | 50;
int V1_7 = 0 << 16 | 51;
+ int V1_8 = 0 << 16 | 52;
// access flags
diff -r -c -N ../db-5.3.28.orig/src/dbinc/atomic.h ./src/dbinc/atomic.h
*** ../db-5.3.28.orig/src/dbinc/atomic.h 2013-09-09 13:05:08.000000000 -0230
--- ./src/dbinc/atomic.h 2015-02-20 15:33:31.000000000 -0330
***************
*** 144,150 ****
#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))
static inline int __atomic_inc(db_atomic_t *p)
{
int temp;
--- 144,150 ----
#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_db((p), (o), (n))
static inline int __atomic_inc(db_atomic_t *p)
{
int temp;
***************
*** 176,182 ****
* 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(
db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
{
atomic_value_t was;
--- 176,182 ----
* 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_db(
db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
{
atomic_value_t was;

1
l/db53/db-5.3.28.NC.tar.gz.sha1

@ -0,0 +1 @@
8e8971fb49fff9366cf34db2f04ffbb7ec295cc2 db-5.3.28.NC.tar.gz

1
l/db53/db5.3_5.3.28.orig.tar.xz.sha1

@ -1 +0,0 @@
054638fd2c161147f60ad66c70a9b15d29d7f658 db5.3_5.3.28.orig.tar.xz

15
l/db53/db53.SlackBuild

@ -25,8 +25,8 @@
# Source package infos
NAMESRC=${NAMESRC:-db}
VERSION=${VERSION:-5.3.28}
ARCHIVE=${ARCHIVE:-${NAMESRC}5.3_$VERSION.orig.tar.xz}
WGET=${WGET:-http://archive.ubuntu.com/ubuntu/pool/main/d/db5.3/$ARCHIVE}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.NC.tar.gz}
WGET=${WGET:-https://download.zeroc.com/berkeley-db/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-db53}
@ -80,12 +80,17 @@ NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME/build_unix
cd $NAME
# Apply patch provided by ZeroC
patch -p 0 < $CWD/berkeley-db.5.3.28.patch
cd build_unix
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
../dist/configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--enable-shared \
--disable-static \
--enable-compat185 \
--enable-cxx \
--enable-sql \
@ -100,9 +105,9 @@ make install DESTDIR=$PKG
mv *.h db53
)
# Remove static libraries and default symlinks
# Remove unversioned libraries
(cd $PKG/usr/lib64
rm -f {libdb,libdb_cxx,libdb_java,libdb_sql,libdb_stl}.so *.a
rm -f {libdb,libdb_cxx,libdb_java,libdb_sql,libdb_stl}.so
)
# Rename programs

Loading…
Cancel
Save