From: "Michael Haubenwallner" <haubi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-libs/db/
Date: Mon, 25 Sep 2017 13:21:48 +0000 (UTC) [thread overview]
Message-ID: <1506345695.80a9bbed9e9beb32b8ec7f51dd779306be349447.haubi@gentoo> (raw)
commit: 80a9bbed9e9beb32b8ec7f51dd779306be349447
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 25 13:21:35 2017 +0000
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Mon Sep 25 13:21:35 2017 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=80a9bbed
sys-libs/db-5.3.28-r3: apply prefix diffs
Package-Manager: Portage-2.3.10-prefix, Repoman-2.3.3
sys-libs/db/db-5.3.28-r3.ebuild | 39 +++++++++++++++++++++++++++++++++++----
1 file changed, 35 insertions(+), 4 deletions(-)
diff --git a/sys-libs/db/db-5.3.28-r3.ebuild b/sys-libs/db/db-5.3.28-r3.ebuild
index 00859ca021..13ffc4a8f2 100644
--- a/sys-libs/db/db-5.3.28-r3.ebuild
+++ b/sys-libs/db/db-5.3.28-r3.ebuild
@@ -27,7 +27,7 @@ done
LICENSE="Sleepycat"
SLOT="5.3"
-KEYWORDS=""
+KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc java cxx tcl test"
REQUIRED_USE="test? ( tcl )"
@@ -36,7 +36,10 @@ REQUIRED_USE="test? ( tcl )"
DEPEND="tcl? ( >=dev-lang/tcl-8.5.15-r1:0=[${MULTILIB_USEDEP}] )
test? ( >=dev-lang/tcl-8.5.15-r1:0=[${MULTILIB_USEDEP}] )
java? ( >=virtual/jdk-1.5 )
- >=sys-devel/binutils-2.16.1"
+ || ( sys-devel/binutils-apple
+ sys-devel/native-cctools
+ >=sys-devel/binutils-2.16.1
+ )"
RDEPEND="tcl? ( >=dev-lang/tcl-8.5.15-r1:0=[${MULTILIB_USEDEP}] )
java? ( >=virtual/jre-1.5 )"
@@ -53,11 +56,34 @@ src_prepare() {
# bug #510506
epatch "${FILESDIR}"/${PN}-4.8.24-java-manifest-location.patch
+ # Set of patches to make this thing compile with C++11, Oracle
+ # promised to fix this for the next release
+ # https://community.oracle.com/thread/3952592
+ epatch "${FILESDIR}"/${PN}-6.2-c++11.patch
+
+ pushd dist > /dev/null || die "Cannot cd to 'dist'"
+
+ # need to upgrade local copy of libtool.m4
+ # for correct shared libs on aix (#213277).
+ local g="" ; type -P glibtoolize > /dev/null && g=g
+ local _ltpath="$(dirname "$(dirname "$(type -P ${g}libtoolize)")")"
+ cp -f "${_ltpath}"/share/aclocal/libtool.m4 aclocal/libtool.m4 \
+ || die "cannot update libtool.ac from libtool.m4"
+
+ # need to upgrade ltmain.sh for AIX,
+ # but aclocal.m4 is created in ./s_config,
+ # and elibtoolize does not work when there is no aclocal.m4, so:
+ ${g}libtoolize --force --copy || die "${g}libtoolize failed."
+ # now let shipped script do the autoconf stuff, it really knows best.
+ #see code below
+ #sh ./s_config || die "Cannot execute ./s_config"
# 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
+ popd > /dev/null
+
# sqlite configure call has an extra leading ..
# upstreamed:5.2.36, missing in 5.3.x
epatch "${FILESDIR}"/${PN}-5.2.28-sqlite-configure-path.patch
@@ -119,10 +145,13 @@ multilib_src_configure() {
# Add linker versions to the symbols. Easier to do, and safer than header file
# mumbo jumbo.
- if use userland_GNU ; then
+ if [[ ${CHOST} == *-linux-gnu || ${CHOST} == *-solaris* ]] ; then
+ # we hopefully use a GNU binutils linker in this case
append-ldflags -Wl,--default-symver
fi
+ tc-export CC CXX # would use CC=xlc_r on aix if not set
+
# use `set` here since the java opts will contain whitespace
if multilib_is_native_abi && use java ; then
myconf+=(
@@ -172,7 +201,9 @@ multilib_src_install() {
db_src_install_usrlibcleanup
if multilib_is_native_abi && use java; then
- java-pkg_regso "${ED}"/usr/"$(get_libdir)"/libdb_java*.so
+ local ext=so
+ [[ ${CHOST} == *-darwin* ]] && ext=jnilib #313085
+ java-pkg_regso "${ED}"/usr/"$(get_libdir)"/libdb_java*.${ext}
java-pkg_dojar "${ED}"/usr/"$(get_libdir)"/*.jar
rm -f "${ED}"/usr/"$(get_libdir)"/*.jar
fi
next reply other threads:[~2017-09-25 13:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-25 13:21 Michael Haubenwallner [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-09-25 14:46 [gentoo-commits] repo/proj/prefix:master commit in: sys-libs/db/ Michael Haubenwallner
2017-09-25 13:21 Michael Haubenwallner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1506345695.80a9bbed9e9beb32b8ec7f51dd779306be349447.haubi@gentoo \
--to=haubi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox