summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-libs/db/ChangeLog9
-rw-r--r--sys-libs/db/Manifest5
-rw-r--r--sys-libs/db/db-5.2.42-r1.ebuild221
-rw-r--r--sys-libs/db/db-5.2.42.ebuild223
4 files changed, 9 insertions, 449 deletions
diff --git a/sys-libs/db/ChangeLog b/sys-libs/db/ChangeLog
index fd765e815b5c..31ea5c7dc74e 100644
--- a/sys-libs/db/ChangeLog
+++ b/sys-libs/db/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-libs/db
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.355 2014/08/04 03:34:08 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/ChangeLog,v 1.356 2014/08/04 19:28:47 robbat2 Exp $
+
+ 04 Aug 2014; Robin H. Johnson <robbat2@gentoo.org> -db-5.2.42-r1.ebuild,
+ -db-5.2.42.ebuild:
+ db-5.2 fails tests, so removing forever: condition {[stat_field $env rep_stat
+ "Startup complete"]} not achieved in 40 seconds; perm_failed_stat returned
+ error value 0; db_location returned error value 0; files_archivable_closed:
+ expected 0, got 1
*db-5.1.29-r1 (04 Aug 2014)
*db-5.2.42-r1 (04 Aug 2014)
diff --git a/sys-libs/db/Manifest b/sys-libs/db/Manifest
index 9606e3bbbe12..d47001e245d4 100644
--- a/sys-libs/db/Manifest
+++ b/sys-libs/db/Manifest
@@ -40,7 +40,6 @@ DIST db-4.6.21.tar.gz 11881885 SHA256 53ea9c9f03746a0aa415e6706e9c6da18ca18148f2
DIST db-4.7.25.tar.gz 13124129 SHA256 f14fd96dd38915a1d63dcb94a63fbb8092334ceba6b5060760427096f631263e SHA512 3a0b2bcb210192c7a37b082fab47a8a32da5e7e91058e18be8fb844c8780088cbd4de6234257750505d5a05864517be03afdad95cb1c549f9743386d6129554b WHIRLPOOL 71ef3aefab84d1ccd782aa948c03bf814eef45b8352837b5d797f781a94652c72f45adf2a114014a78693d27f8ad87c6cd22237b154dc4a8452eba72ee5b2c16
DIST db-4.8.30.tar.gz 22887305 SHA256 e0491a07cdb21fb9aa82773bbbedaeb7639cbd0e7f96147ab46141e0045db72a SHA512 d1a3c52b0ab54ae3fd6792e6396c9f74d25f36b2eb9e853b67ef9c872508a58c784c7818108d06d184f59601b70cc877916e67dfea6f0ee1ca2b07468c1041f1 WHIRLPOOL 4a9c8b4ca4ff3c94d2c01001911ea7aff824ddff971f99c802eee642bd78882456dca1347bb1ce7add42f402b9bdc3b099775f8b74e81496d1c0ee2bd131eaf3
DIST db-5.1.29.tar.gz 32188074 SHA256 a943cb4920e62df71de1069ddca486d408f6d7a09ddbbb5637afe7a229389182 SHA512 b3487161cc09dd0aee6117d685d0bc0a58854cf5e96f9e778969a51d3a61b66f8e007b76e584e4ef73f84e07d4418b89c2f6697e34c1ad4072609b11b7b4c5b0 WHIRLPOOL c2c5e335a8ed85f9dd947eb8225148c9633d21f5e17d321a6938b50d4bf061e735563cdbefb8c8aa457923ef80e778f95ad80aba4a92a381432ecf52c2a25353
-DIST db-5.2.42.tar.gz 34659298 SHA256 5626f51b3f904c0e00b5ce5ea7904d941b46cfc904557545edd4190e7316a1a5 SHA512 8f9e6e38d9aa0a5fb3f9733cd60b37f012ba43a6f0e632af09f1bd3afa552c3d68b1e2a44393eace2bf8692eba855611affc45401e1bee36bab541fd0869c811 WHIRLPOOL df14903e4dfe7a50cb264d54c12aa6ba7116e9f8d565387a816467fd35763640ac6d3b7ad4ee809430b46c834fc9877293f7e64462f2226d8182f7d37949cc91
DIST db-5.3.28.tar.gz 35090431 SHA256 e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628 SHA512 e91bbe550fc147a8be7e69ade86fdb7066453814971b2b0223f7d17712bd029a8eff5b2b6b238042ff6ec1ffa6879d44cb95c5645a922fee305c26c3eeaee090 WHIRLPOOL ad9042c4509ece1cae42ade4734f69d59a9ec946a85bd486063a7e8f9fa1ae3f925b71f0475fef05a27d33f695ef82ffd06fbaadbd7dc5bfaa77a8caacf9d1dc
DIST db-6.0.30.tar.gz 36584356 SHA256 608e4b1cf390e9bf54c0ef00c5bd9ca76d36e2261b9f4d33d54516f3f6a20fd2 SHA512 ea249c59dba18cad391f523840028ba8ef962c32f2c7470942d52f9c07f18ba9fdf964dcd545cb7f2d6c66b91924a0ba1478af1d8f81f0dcbbf94c97ac515cf9 WHIRLPOOL 6784730d250dd480bacf78e966c6acb2fb3ca2c3989668e9440a0a60376b009850b2b48fc35f47e3964b175e78501d18b1c3e3b265831165083fe2dd04a46eb3
DIST db.1.85.tar.gz 270953 SHA256 4220d4ddeb77fb57ba2f37c1aa105d561d3ef85a6fb89c79c3edd735d0e193c6 SHA512 03bf3a2b0947efdca4e38719542e96378b5eeb57da64d5030dd23ab710773c1826f1c867032d0bea658b7fdd8272db253e97bbc490d198b9437025ffdf9e880e WHIRLPOOL 802346b9fc133f6c9316e987352e8bd8e12792b30b0eae9b4e2b3629c9bc8385ab12244dead428bb824945aab383cd4801de3fc705667797bdf6159066ed1352
@@ -79,11 +78,9 @@ EBUILD db-4.8.30-r2.ebuild 5136 SHA256 45d9378d7136112ff48027175bf90dda648727123
EBUILD db-4.8.30.ebuild 4562 SHA256 fe7409e1b17ccc13af1fe941f5f685d05ac310d66ad8a24b116d9957ac145f5f SHA512 2613a9cc3e04411d7a6faacdf62657d832ca505821af9d061eb6767a1169cc733f609928b335696d385837e676bee75f92e405fb7461ba4ac244b81d5c03d5dd WHIRLPOOL 02bcb8f47dce6a1a567465b93fd7ab8e197796832b1f87ae2dab18fd4f8ecb78006495bd475d96b9dfe0cb1f56e8ee3d5198112e96c756d9932791f5f53456aa
EBUILD db-5.1.29-r1.ebuild 5384 SHA256 8900acf42b898b8c7619f05777ba295654cfedf3dc1867aa43c70303a6177a57 SHA512 4cb337386bdc79b5e0244617ca14df2fc1959959e4f8d8ceb8dd799eeae1bfcadc5038c860e56c1c85159486e8781bc308488c9e6dd8e8e2db1eeb244dabf19a WHIRLPOOL a94fb86f35b55983551aed08e7413b529bd35f39d585148d3609e936356a74a91112cb1cd433a4fa87c8b71a2a654341dc373b940466abd9cdbc486afa25957e
EBUILD db-5.1.29.ebuild 5393 SHA256 c6ac68ea12fccd4fe97892af30f25909418d605b1e98e92ff062714bc69a4b12 SHA512 f02dcf3434ca388a97bf59fb5e925503b1d4f332f63941c8d098eaaf8c8c3efda3dbe73852074de0f54329b949e73548fdbefa831f60a16167e2a5c4ac3a22ce WHIRLPOOL 89609f988335d512116ce103baf5ae24adcbb5b707ffd28e1a4c4975eaa7497202e20fd40a455c564f9fc6d0ee2914314dea7be3ca60ed74cead5d94f65fe773
-EBUILD db-5.2.42-r1.ebuild 6258 SHA256 0956792d5a6f62f84db5eea942cc8a6cdb304f9ac30eabbbe928ba37128b3822 SHA512 3ead62a6fb19ce173e9eee53651e8f40cb7aeda45d78748e45b17775a7a04629455c3c8b6cae3f9248d2407fe038008f61f9072cbafab8699a8fc13e41aff451 WHIRLPOOL e3362e0e0acc68048d8cb56b92f2ac62c7c9c04d122105b0e1ee618093a644e2abce64db0b875733193b8e6a07411cd07d8fc177b12cc83814f11408408d9b4d
-EBUILD db-5.2.42.ebuild 6267 SHA256 8ac23b6377328fe41e39bce0dd4f41d7bb66ebf20f1fd8dd2fec173f53da268a SHA512 0461767e88f6a4edeba2ca4cbf3fb89beefd56d3c0406db0e01defa7dba0de4ac6bdb92f999a62638eacac7f2eeab06c7c3a7b154a2563b79aec806debbf416e WHIRLPOOL 564c1466b0e490632675b70d06e9e89c7cf2ff3142d929a5d706058fe0baeadb69fb6d60e93c7eee244e5743f4b44514c7a8954c3f081fe21706ac2637b06905
EBUILD db-5.3.28-r1.ebuild 6086 SHA256 0fcc323de3ca62f743580b114d88e8dcd3c59d5d72088f05da954a1c749a5300 SHA512 73925fbe9f43754f12c205030d23570338458146c3c74be33f1374e3f1545193f19e77f2bc49cd5064d0b531b75fbe0c9023b99b7242491c008e1f8ce215dadf WHIRLPOOL 18364228c4babe42239ac904cac48a103589416e429c3c85cbde1dbdbaef9a150fa540245d1a379336339c5a6a29270012e3a2cab829fe9784ae11616f6244af
EBUILD db-5.3.28-r2.ebuild 6590 SHA256 4ab811618daaa0112aafea7cfc4473fc7b47d73a9262b5e2bd7a0eeb314b99f8 SHA512 c8751d1bba9cd54ae57acf415b9e546887d5967a3a53fad044b4bd90f3dd6d9e071aee3109a2e20ec3cfc451e1dd18c9e32ef48c976cb8a6bdcf31feb72125c6 WHIRLPOOL 893f0e8dca47e06f4a39de2c403cc14271fb9cbc092469c887f34fee2797217b6638e9cb3ffcd90d62315557275804ed0d51adf657df499ab3e85e9f9cf5e892
EBUILD db-6.0.30-r1.ebuild 6705 SHA256 d355f9e7910b3f1cde7f5fde08bb4f4fd76a486f5ff09677648a066ac634c60f SHA512 8213f23a60f4c32d9809441acfd7450f828d44f69ddbbc467fe1b714ff01a32a116368d59a0187c01fc7f6fa761afa333067c46e3f7b981171a4b6e2e6d91cce WHIRLPOOL c330e3bb2ab0be8be3e2f5a661ba8e1511a4eed5cfc35b4bce9692cdeb6cf1e1052b405c7f5c53ee44d371eb2e69750e20f70a6ccd850c308df0e8ab01592fdd
EBUILD db-6.0.30.ebuild 6714 SHA256 29bf09b815b4ebff90a9c8cff2b2f5342a567f147f02f24f759535620e18ca00 SHA512 eb3dae0caf8affbbbb33f72c605e464ce40780602b9ac8409f1cefe3e785f210a7d5ea910a6905709e6a564675cf8c7dc1a8e9f544c4d6283e2e55bb0f7a0df9 WHIRLPOOL 056531e5e6dd67880778ab5e009a4aaaac6f417274441192fea4e2a71c8357ef8581fd7abbaa826ae322ae42eaade7f4b7c0cd3b1d8295886fd5567e71e2ead3
-MISC ChangeLog 57805 SHA256 7b1716f805a6e0723ce5bff19c39ae6d6449024a511dc55b8b35a63e0c5b79f4 SHA512 d64104fd28a9e18defe50744c686fcf2af8e31724462d125d408703abdbe25172e2b0a12f1e682e571d51f96b9ec060945d8e4d3dab38ca12043a7550ea7ba2a WHIRLPOOL b722f618aa758874bcbedeb21b4f48d5ca9a605a5926314af2b0f440d36943cbe7fc78b865db4a295041558eecd29b691e5562ad974e55b99c958fc5563f321e
+MISC ChangeLog 58158 SHA256 1ff534ca65a4af8a5bc6060473c721a1f7f1b909b5e2e2932243830b8c830813 SHA512 213b9a558f44490b4bf75e13144dc3f8f8ad4bdf7b67de8c13fd231b367cdc67ea737dc3857ffbd2ed76bdd7c08f7fccd9755fda13ec6b50c886d875d24417f6 WHIRLPOOL c56d17b7cac322a4b1dc9860ecb2777dff8251aa0b908b5a8ab8605a6c431d78dfdfe7d6d8637e21f2711d0ceb9892f1bedc8fbb2ee9677ab596f8d9f837344e
MISC metadata.xml 1231 SHA256 0aac93eb29b4674d00b215122f39eb1ec03248e105cab670bc1921cbcca1e927 SHA512 6d25e610cc6cdcba13f8ffaab19406ca9dd7b5eda0585a6666058408ef1eb23a062428483532f4d1461888039e49a97aad4afc6dceb96baa70b880f7c4cf59b9 WHIRLPOOL 1d6531dd2346d7bc02dd016688a58c1c454a9262c3bad846147a6bce51f3ab0aba11165782162a5fda678a1fae3bafcab0d57eb882d5450814ce4fa7b813de54
diff --git a/sys-libs/db/db-5.2.42-r1.ebuild b/sys-libs/db/db-5.2.42-r1.ebuild
deleted file mode 100644
index 20cc34337b7e..000000000000
--- a/sys-libs/db/db-5.2.42-r1.ebuild
+++ /dev/null
@@ -1,221 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/db-5.2.42-r1.ebuild,v 1.1 2014/08/04 03:34:08 robbat2 Exp $
-
-EAPI=5
-inherit eutils db flag-o-matic java-pkg-opt-2 autotools multilib
-
-#Number of official patches
-#PATCHNO=`echo ${PV}|sed -e "s,\(.*_p\)\([0-9]*\),\2,"`
-PATCHNO=${PV/*.*.*_p}
-if [[ ${PATCHNO} == "${PV}" ]] ; then
- MY_PV=${PV}
- MY_P=${P}
- PATCHNO=0
-else
- MY_PV=${PV/_p${PATCHNO}}
- MY_P=${PN}-${MY_PV}
-fi
-
-S_BASE="${WORKDIR}/${MY_P}"
-S="${S_BASE}/build_unix"
-DESCRIPTION="Oracle Berkeley DB"
-HOMEPAGE="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
-SRC_URI="http://download.oracle.com/berkeley-db/${MY_P}.tar.gz"
-for (( i=1 ; i<=${PATCHNO} ; i++ )) ; do
- export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}"
-done
-
-LICENSE="Sleepycat"
-SLOT="5.2"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="doc java cxx tcl test"
-
-REQUIRED_USE="test? ( tcl )"
-
-# the entire testsuite needs the TCL functionality
-DEPEND="tcl? ( >=dev-lang/tcl-8.4 )
- test? ( >=dev-lang/tcl-8.4 )
- java? ( >=virtual/jdk-1.5 )
- >=sys-devel/binutils-2.16.1"
-RDEPEND="tcl? ( dev-lang/tcl )
- java? ( >=virtual/jre-1.5 )"
-
-src_prepare() {
- cd "${WORKDIR}"/"${MY_P}"
- for (( i=1 ; i<=${PATCHNO} ; i++ ))
- do
- epatch "${DISTDIR}"/patch."${MY_PV}"."${i}"
- done
- #epatch "${FILESDIR}"/${PN}-4.8-libtool.patch
- # upstreamed:5.2.36
- #epatch "${FILESDIR}"/${PN}-4.8.24-java-manifest-location.patch
-
- # use the includes from the prefix
- epatch "${FILESDIR}"/${PN}-4.6-jni-check-prefix-first.patch
- epatch "${FILESDIR}"/${PN}-4.3-listen-to-java-options.patch
-
- # upstream autoconf fails to build DBM when it's supposed to
- # merged upstream in 5.0.26
- #epatch "${FILESDIR}"/${PN}-5.0.21-enable-dbm-autoconf.patch
-
- # sqlite configure call has an extra leading ..
- # upstreamed:5.2.36
- #epatch "${FILESDIR}"/${PN}-5.2.28-sqlite-configure-path.patch
-
- # The upstream testsuite copies .lib and the binaries for each parallel test
- # core, ~300MB each. This patch uses links instead, saves a lot of space.
- epatch "${FILESDIR}"/${PN}-6.0.20-test-link.patch
-
- # Upstream release script grabs the dates when the script was run, so lets
- # end-run them to keep the date the same.
- export REAL_DB_RELEASE_DATE="$(awk \
- '/^DB_VERSION_STRING=/{ gsub(".*\\(|\\).*","",$0); print $0; }' \
- "${S_BASE}"/dist/configure)"
- sed -r -i \
- -e "/^DB_RELEASE_DATE=/s~=.*~='${REAL_DB_RELEASE_DATE}'~g" \
- "${S_BASE}"/dist/RELEASE
-
- # Include the SLOT for Java JAR files
- # This supersedes the unused jarlocation patches.
- sed -r -i \
- -e '/jarfile=.*\.jar$/s,(.jar$),-$(LIBVERSION)\1,g' \
- "${S_BASE}"/dist/Makefile.in
-
- cd "${S_BASE}"/dist
- rm -f aclocal/libtool.m4
- sed -i \
- -e '/AC_PROG_LIBTOOL$/aLT_OUTPUT' \
- configure.ac
- sed -i \
- -e '/^AC_PATH_TOOL/s/ sh, none/ bash, none/' \
- aclocal/programs.m4
- AT_M4DIR="aclocal aclocal_java" eautoreconf
- # Upstream sucks - they do autoconf and THEN replace the version variables.
- . ./RELEASE
- for v in \
- DB_VERSION_{FAMILY,LETTER,RELEASE,MAJOR,MINOR} \
- DB_VERSION_{PATCH,FULL,UNIQUE_NAME,STRING,FULL_STRING} \
- DB_VERSION \
- DB_RELEASE_DATE ; do
- local ev="__EDIT_${v}__"
- sed -i -e "s/${ev}/${!v}/g" configure
- done
-}
-
-src_configure() {
- local myconf=''
-
- # compilation with -O0 fails on amd64, see bug #171231
- if use amd64; then
- replace-flags -O0 -O2
- is-flagq -O[s123] || append-flags -O2
- fi
-
- # use `set` here since the java opts will contain whitespace
- set --
- if use java ; then
- set -- "$@" \
- --with-java-prefix="${JAVA_HOME}" \
- --with-javac-flags="$(java-pkg_javac-args)"
- fi
-
- # Add linker versions to the symbols. Easier to do, and safer than header file
- # mumbo jumbo.
- if use userland_GNU ; then
- append-ldflags -Wl,--default-symver
- fi
-
- # Bug #270851: test needs TCL support
- if use tcl || use test ; then
- myconf="${myconf} --enable-tcl"
- myconf="${myconf} --with-tcl=/usr/$(get_libdir)"
- else
- myconf="${myconf} --disable-tcl"
- fi
-
- # sql_compat will cause a collision with sqlite3
- # --enable-sql_compat
- cd "${S}"
- ECONF_SOURCE="${S_BASE}"/dist \
- STRIP="true" \
- econf \
- --enable-compat185 \
- --enable-dbm \
- --enable-o_direct \
- --without-uniquename \
- --enable-sql \
- --enable-sql_codegen \
- --disable-sql_compat \
- $(use arm && echo --with-mutex=ARM/gcc-assembly) \
- $(use amd64 && echo --with-mutex=x86/gcc-assembly) \
- $(use_enable cxx) \
- $(use_enable cxx stl) \
- $(use_enable java) \
- ${myconf} \
- $(use_enable test) \
- "$@"
-}
-
-src_compile() {
- emake || die "make failed"
-}
-
-src_install() {
- emake install DESTDIR="${D}" || die
-
- db_src_install_usrbinslot
-
- db_src_install_headerslot
-
- db_src_install_doc
-
- db_src_install_usrlibcleanup
-
- dodir /usr/sbin
- # This file is not always built, and no longer exists as of db-4.8
- [[ -f "${D}"/usr/bin/berkeley_db_svc ]] && \
- mv "${D}"/usr/bin/berkeley_db_svc "${D}"/usr/sbin/berkeley_db"${SLOT/./}"_svc
-
- if use java; then
- java-pkg_regso "${D}"/usr/"$(get_libdir)"/libdb_java*.so
- java-pkg_dojar "${D}"/usr/"$(get_libdir)"/*.jar
- rm -f "${D}"/usr/"$(get_libdir)"/*.jar
- fi
-}
-
-pkg_postinst() {
- db_fix_so
-}
-
-pkg_postrm() {
- db_fix_so
-}
-
-src_test() {
- # db_repsite is impossible to build, as upstream strips those sources.
- # db_repsite is used directly in the setup_site_prog,
- # setup_site_prog is called from open_site_prog
- # which is called only from tests in the multi_repmgr group.
- #sed -ri \
- # -e '/set subs/s,multi_repmgr,,g' \
- # "${S_BASE}/test/testparams.tcl"
- sed -ri \
- -e '/multi_repmgr/d' \
- "${S_BASE}/test/tcl/test.tcl"
-
- # This is the only failure in 5.2.28 so far, and looks like a false positive.
- # Repmgr018 (btree): Test of repmgr stats.
- # Repmgr018.a: Start a master.
- # Repmgr018.b: Start a client.
- # Repmgr018.c: Run some transactions at master.
- # Rep_test: btree 20 key/data pairs starting at 0
- # Rep_test.a: put/get loop
- # FAIL:07:05:59 (00:00:00) perm_no_failed_stat: expected 0, got 1
- sed -ri \
- -e '/set parms.*repmgr018/d' \
- -e 's/repmgr018//g' \
- "${S_BASE}/test/tcl/test.tcl"
-
- db_src_test
-}
diff --git a/sys-libs/db/db-5.2.42.ebuild b/sys-libs/db/db-5.2.42.ebuild
deleted file mode 100644
index 13356dde4306..000000000000
--- a/sys-libs/db/db-5.2.42.ebuild
+++ /dev/null
@@ -1,223 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/db/db-5.2.42.ebuild,v 1.4 2014/01/18 04:14:32 vapier Exp $
-
-EAPI=2
-inherit eutils db flag-o-matic java-pkg-opt-2 autotools multilib
-
-#Number of official patches
-#PATCHNO=`echo ${PV}|sed -e "s,\(.*_p\)\([0-9]*\),\2,"`
-PATCHNO=${PV/*.*.*_p}
-if [[ ${PATCHNO} == "${PV}" ]] ; then
- MY_PV=${PV}
- MY_P=${P}
- PATCHNO=0
-else
- MY_PV=${PV/_p${PATCHNO}}
- MY_P=${PN}-${MY_PV}
-fi
-
-S_BASE="${WORKDIR}/${MY_P}"
-S="${S_BASE}/build_unix"
-DESCRIPTION="Oracle Berkeley DB"
-HOMEPAGE="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
-SRC_URI="http://download.oracle.com/berkeley-db/${MY_P}.tar.gz"
-for (( i=1 ; i<=${PATCHNO} ; i++ )) ; do
- export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}"
-done
-
-LICENSE="Sleepycat"
-SLOT="5.2"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="doc java cxx tcl test"
-
-# the entire testsuite needs the TCL functionality
-DEPEND="tcl? ( >=dev-lang/tcl-8.4 )
- test? ( >=dev-lang/tcl-8.4 )
- java? ( >=virtual/jdk-1.5 )
- >=sys-devel/binutils-2.16.1"
-RDEPEND="tcl? ( dev-lang/tcl )
- java? ( >=virtual/jre-1.5 )"
-
-src_unpack() {
- unpack "${MY_P}".tar.gz
-}
-
-src_prepare() {
- cd "${WORKDIR}"/"${MY_P}"
- for (( i=1 ; i<=${PATCHNO} ; i++ ))
- do
- epatch "${DISTDIR}"/patch."${MY_PV}"."${i}"
- done
- #epatch "${FILESDIR}"/${PN}-4.8-libtool.patch
- # upstreamed:5.2.36
- #epatch "${FILESDIR}"/${PN}-4.8.24-java-manifest-location.patch
-
- # use the includes from the prefix
- epatch "${FILESDIR}"/${PN}-4.6-jni-check-prefix-first.patch
- epatch "${FILESDIR}"/${PN}-4.3-listen-to-java-options.patch
-
- # upstream autoconf fails to build DBM when it's supposed to
- # merged upstream in 5.0.26
- #epatch "${FILESDIR}"/${PN}-5.0.21-enable-dbm-autoconf.patch
-
- # sqlite configure call has an extra leading ..
- # upstreamed:5.2.36
- #epatch "${FILESDIR}"/${PN}-5.2.28-sqlite-configure-path.patch
-
- # The upstream testsuite copies .lib and the binaries for each parallel test
- # core, ~300MB each. This patch uses links instead, saves a lot of space.
- epatch "${FILESDIR}"/${PN}-6.0.20-test-link.patch
-
- # Upstream release script grabs the dates when the script was run, so lets
- # end-run them to keep the date the same.
- export REAL_DB_RELEASE_DATE="$(awk \
- '/^DB_VERSION_STRING=/{ gsub(".*\\(|\\).*","",$0); print $0; }' \
- "${S_BASE}"/dist/configure)"
- sed -r -i \
- -e "/^DB_RELEASE_DATE=/s~=.*~='${REAL_DB_RELEASE_DATE}'~g" \
- "${S_BASE}"/dist/RELEASE
-
- # Include the SLOT for Java JAR files
- # This supersedes the unused jarlocation patches.
- sed -r -i \
- -e '/jarfile=.*\.jar$/s,(.jar$),-$(LIBVERSION)\1,g' \
- "${S_BASE}"/dist/Makefile.in
-
- cd "${S_BASE}"/dist
- rm -f aclocal/libtool.m4
- sed -i \
- -e '/AC_PROG_LIBTOOL$/aLT_OUTPUT' \
- configure.ac
- sed -i \
- -e '/^AC_PATH_TOOL/s/ sh, none/ bash, none/' \
- aclocal/programs.m4
- AT_M4DIR="aclocal aclocal_java" eautoreconf
- # Upstream sucks - they do autoconf and THEN replace the version variables.
- . ./RELEASE
- for v in \
- DB_VERSION_{FAMILY,LETTER,RELEASE,MAJOR,MINOR} \
- DB_VERSION_{PATCH,FULL,UNIQUE_NAME,STRING,FULL_STRING} \
- DB_VERSION \
- DB_RELEASE_DATE ; do
- local ev="__EDIT_${v}__"
- sed -i -e "s/${ev}/${!v}/g" configure
- done
-}
-
-src_configure() {
- local myconf=''
-
- # compilation with -O0 fails on amd64, see bug #171231
- if use amd64; then
- replace-flags -O0 -O2
- is-flagq -O[s123] || append-flags -O2
- fi
-
- # use `set` here since the java opts will contain whitespace
- set --
- if use java ; then
- set -- "$@" \
- --with-java-prefix="${JAVA_HOME}" \
- --with-javac-flags="$(java-pkg_javac-args)"
- fi
-
- # Add linker versions to the symbols. Easier to do, and safer than header file
- # mumbo jumbo.
- if use userland_GNU ; then
- append-ldflags -Wl,--default-symver
- fi
-
- # Bug #270851: test needs TCL support
- if use tcl || use test ; then
- myconf="${myconf} --enable-tcl"
- myconf="${myconf} --with-tcl=/usr/$(get_libdir)"
- else
- myconf="${myconf} --disable-tcl"
- fi
-
- # sql_compat will cause a collision with sqlite3
- # --enable-sql_compat
- cd "${S}"
- ECONF_SOURCE="${S_BASE}"/dist \
- STRIP="true" \
- econf \
- --enable-compat185 \
- --enable-dbm \
- --enable-o_direct \
- --without-uniquename \
- --enable-sql \
- --enable-sql_codegen \
- --disable-sql_compat \
- $(use arm && echo --with-mutex=ARM/gcc-assembly) \
- $(use amd64 && echo --with-mutex=x86/gcc-assembly) \
- $(use_enable cxx) \
- $(use_enable cxx stl) \
- $(use_enable java) \
- ${myconf} \
- $(use_enable test) \
- "$@"
-}
-
-src_compile() {
- emake || die "make failed"
-}
-
-src_install() {
- emake install DESTDIR="${D}" || die
-
- db_src_install_usrbinslot
-
- db_src_install_headerslot
-
- db_src_install_doc
-
- db_src_install_usrlibcleanup
-
- dodir /usr/sbin
- # This file is not always built, and no longer exists as of db-4.8
- [[ -f "${D}"/usr/bin/berkeley_db_svc ]] && \
- mv "${D}"/usr/bin/berkeley_db_svc "${D}"/usr/sbin/berkeley_db"${SLOT/./}"_svc
-
- if use java; then
- java-pkg_regso "${D}"/usr/"$(get_libdir)"/libdb_java*.so
- java-pkg_dojar "${D}"/usr/"$(get_libdir)"/*.jar
- rm -f "${D}"/usr/"$(get_libdir)"/*.jar
- fi
-}
-
-pkg_postinst() {
- db_fix_so
-}
-
-pkg_postrm() {
- db_fix_so
-}
-
-src_test() {
- # db_repsite is impossible to build, as upstream strips those sources.
- # db_repsite is used directly in the setup_site_prog,
- # setup_site_prog is called from open_site_prog
- # which is called only from tests in the multi_repmgr group.
- #sed -ri \
- # -e '/set subs/s,multi_repmgr,,g' \
- # "${S_BASE}/test/testparams.tcl"
- sed -ri \
- -e '/multi_repmgr/d' \
- "${S_BASE}/test/tcl/test.tcl"
-
- # This is the only failure in 5.2.28 so far, and looks like a false positive.
- # Repmgr018 (btree): Test of repmgr stats.
- # Repmgr018.a: Start a master.
- # Repmgr018.b: Start a client.
- # Repmgr018.c: Run some transactions at master.
- # Rep_test: btree 20 key/data pairs starting at 0
- # Rep_test.a: put/get loop
- # FAIL:07:05:59 (00:00:00) perm_no_failed_stat: expected 0, got 1
- sed -ri \
- -e '/set parms.*repmgr018/d' \
- -e 's/repmgr018//g' \
- "${S_BASE}/test/tcl/test.tcl"
-
- db_src_test
-}