5 changed files with 0 additions and 195 deletions
@ -1 +0,0 @@
|
||||
ae78468482cf2e8a3f0b461a4d1a49a2d469bb33 db-4.4.20.tar.bz2 |
@ -1,126 +0,0 @@
|
||||
#!/bin/bash |
||||
# Build script for Slackware |
||||
# Copyright (C) 2009 Damien Goutte-Gattat |
||||
# |
||||
# Redistribution and use of this script, with or without modifications, |
||||
# is permitted provided that the following conditions are met: |
||||
# |
||||
# 1. Redistributions of this script must retain the above copyright |
||||
# notice, this list of conditions and the following disclaimer. |
||||
# |
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR |
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
||||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
||||
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, |
||||
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
||||
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
||||
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
||||
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
||||
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
||||
# POSSIBILITY OF SUCH DAMAGE. |
||||
# |
||||
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org> |
||||
# |
||||
# Latest db sourcecode is available at: |
||||
# <http://www.oracle.com/database/berkeley-db/db/index.html> |
||||
|
||||
# Source package infos |
||||
NAMESRC=${NAMESRC:-db} |
||||
VERSION=${VERSION:-4.4.20} |
||||
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2} |
||||
WGET=${WGET:-http://www.slackware.org.uk/slackware/slackware-12.2/source/l/db44/$ARCHIVE} |
||||
|
||||
# Build infos |
||||
NAMETGZ=${NAMETGZ:-db_java} |
||||
BUILD=${BUILD:-1GGD} |
||||
ARCH=${ARCH:-i486} |
||||
JOBS=${JOBS:-1} |
||||
|
||||
# Directories |
||||
TMP=${TMP:-/tmp} |
||||
OUT=${OUT:-$TMP/build} |
||||
PKG=${PKG:-$OUT/$NAMETGZ} |
||||
CWD=$(pwd) |
||||
|
||||
set -e # Quit if a command returns non-zero |
||||
|
||||
# Sanity checks |
||||
if [ $UID -eq 0 ]; then |
||||
echo "You should NOT run this script as ROOT!" |
||||
exit 1 |
||||
fi |
||||
if [ ! -d $TMP ]; then |
||||
echo "$TMP does not exist or is not a directory!" |
||||
exit 1 |
||||
fi |
||||
|
||||
# Compilation flags |
||||
case "$ARCH" in |
||||
i?86) |
||||
CPUOPT="-O2 -march=$ARCH -mtune=i686" |
||||
;; |
||||
x86_64) |
||||
CPUOPT="-O2 -fPIC" |
||||
;; |
||||
*) |
||||
CPUOPT="-O2" |
||||
;; |
||||
esac |
||||
|
||||
# Get and verify the source archive |
||||
if [ ! -r $ARCHIVE ]; then |
||||
wget -c -O $ARCHIVE.part "$WGET" |
||||
mv $ARCHIVE.part $ARCHIVE |
||||
fi |
||||
sha1sum -c $ARCHIVE.sha1 |
||||
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
||||
|
||||
# Compile |
||||
cd $TMP |
||||
echo "Building $ARCHIVE..." |
||||
tar xf $CWD/$ARCHIVE |
||||
cd $NAME |
||||
patch -p 0 < $CWD/patch.4.4.20.1 |
||||
patch -p 0 < $CWD/patch.4.4.20.2 |
||||
cd build_unix |
||||
CFLAGS=$CPUOPT \ |
||||
CXXFLAGS=$CPUOPT \ |
||||
../dist/configure \ |
||||
--prefix=/usr \ |
||||
--enable-shared \ |
||||
--enable-rpc \ |
||||
--enable-compat185 \ |
||||
--enable-java |
||||
make -j $JOBS |
||||
make install DESTDIR=$PKG |
||||
|
||||
# Remove docs and files unrelated to the Java bindings |
||||
rm -rf $PKG/usr/{bin,docs,include} |
||||
rm -rf $PKG/usr/lib/libdb-* $PKG/usr/lib/libdb.* |
||||
|
||||
# Strip binaries |
||||
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \ |
||||
xargs strip --strip-unneeded 2> /dev/null |
||||
|
||||
# Install the Jar file to the right place |
||||
mkdir -p $PKG/usr/share/java |
||||
mv $PKG/usr/lib/db.jar $PKG/usr/share/java/db.jar |
||||
|
||||
# Copy slack-desc file |
||||
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
||||
|
||||
# Package the tree |
||||
cd $PKG |
||||
mkdir -p $OUT |
||||
PACKAGING=" |
||||
chown root:root . -R |
||||
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz |
||||
rm -rf $PKG |
||||
rm -rf $TMP/$NAME |
||||
" |
||||
if type -p fakeroot ; then |
||||
echo "$PACKAGING" | fakeroot |
||||
else |
||||
su -c "$PACKAGING" |
||||
fi |
@ -1,27 +0,0 @@
|
||||
*** qam/qam_files.c.orig 2005-10-20 11:57:12.000000000 -0700 |
||||
--- qam/qam_files.c 2006-01-27 13:38:38.000000000 -0800 |
||||
*************** |
||||
*** 411,416 **** |
||||
--- 411,422 ---- |
||||
DB_APP_DATA, buf, 0, NULL, &real_name)) != 0) |
||||
goto err; |
||||
#endif |
||||
+ |
||||
+ mpf = array->mpfarray[offset].mpf; |
||||
+ /* This extent my already be marked for delete and closed. */ |
||||
+ if (mpf == NULL) |
||||
+ goto err; |
||||
+ |
||||
/* |
||||
* The log must be flushed before the file is deleted. We depend on |
||||
* the log record of the last delete to recreate the file if we crash. |
||||
*************** |
||||
*** 418,424 **** |
||||
if (LOGGING_ON(dbenv) && (ret = __log_flush(dbenv, NULL)) != 0) |
||||
goto err; |
||||
|
||||
- mpf = array->mpfarray[offset].mpf; |
||||
(void)__memp_set_flags(mpf, DB_MPOOL_UNLINK, 1); |
||||
/* Someone could be real slow, let them close it down. */ |
||||
if (array->mpfarray[offset].pinref != 0) |
||||
--- 424,429 ---- |
@ -1,29 +0,0 @@
|
||||
*** txn/txn.c.orig Tue Nov 1 06:50:03 2005 |
||||
--- txn/txn.c Tue Jan 31 15:05:13 2006 |
||||
*************** |
||||
*** 1049,1060 **** |
||||
--- 1049,1062 ---- |
||||
return (ret); |
||||
memcpy(txn->name, name, len); |
||||
|
||||
+ TXN_SYSTEM_LOCK(dbenv); |
||||
if (td->name != INVALID_ROFF) { |
||||
__db_shalloc_free( |
||||
&mgr->reginfo, R_ADDR(&mgr->reginfo, td->name)); |
||||
td->name = INVALID_ROFF; |
||||
} |
||||
if ((ret = __db_shalloc(&mgr->reginfo, len, 0, &p)) != 0) { |
||||
+ TXN_SYSTEM_UNLOCK(dbenv); |
||||
__db_err(dbenv, |
||||
"Unable to allocate memory for transaction name"); |
||||
|
||||
*************** |
||||
*** 1063,1068 **** |
||||
--- 1065,1071 ---- |
||||
|
||||
return (ret); |
||||
} |
||||
+ TXN_SYSTEM_UNLOCK(dbenv); |
||||
td->name = R_OFFSET(&mgr->reginfo, p); |
||||
memcpy(p, name, len); |
||||
|
@ -1,12 +0,0 @@
|
||||
|-----handy-ruler-----------------------------------------------------| |
||||
db_java: db_java (Java binding for the Berkeley database library) |
||||
db_java: |
||||
db_java: The Berkeley Database (Berkeley DB) library provides embedded |
||||
db_java: database support for both traditional and client/server applications. |
||||
db_java: |
||||
db_java: This package installs the Java bindings of the DB library. |
||||
db_java: |
||||
db_java: |
||||
db_java: |
||||
db_java: |
||||
db_java: |
Loading…
Reference in new issue