1 |
commit: 7d6dc109770f711173e8538d907675de5408407a |
2 |
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 25 14:46:14 2017 +0000 |
4 |
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 25 14:46:14 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=7d6dc109 |
7 |
|
8 |
sys-libs/db-5.3.28-r3: fix for x86-winnt |
9 |
|
10 |
Package-Manager: Portage-2.3.8-prefix, Repoman-2.3.3 |
11 |
|
12 |
sys-libs/db/db-5.3.28-r3.ebuild | 12 +++++++++++- |
13 |
1 file changed, 11 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/sys-libs/db/db-5.3.28-r3.ebuild b/sys-libs/db/db-5.3.28-r3.ebuild |
16 |
index 13ffc4a8f2..695ebf4f91 100644 |
17 |
--- a/sys-libs/db/db-5.3.28-r3.ebuild |
18 |
+++ b/sys-libs/db/db-5.3.28-r3.ebuild |
19 |
@@ -27,7 +27,7 @@ done |
20 |
|
21 |
LICENSE="Sleepycat" |
22 |
SLOT="5.3" |
23 |
-KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
24 |
+KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
25 |
IUSE="doc java cxx tcl test" |
26 |
|
27 |
REQUIRED_USE="test? ( tcl )" |
28 |
@@ -95,6 +95,8 @@ src_prepare() { |
29 |
# Needed when compiling with clang |
30 |
epatch "${FILESDIR}"/${PN}-5.1.29-rename-atomic-compare-exchange.patch |
31 |
|
32 |
+ epatch "${FILESDIR}"/${PN}-6.0.35-winnt.patch |
33 |
+ |
34 |
# Upstream release script grabs the dates when the script was run, so lets |
35 |
# end-run them to keep the date the same. |
36 |
export REAL_DB_RELEASE_DATE="$(awk \ |
37 |
@@ -170,6 +172,14 @@ multilib_src_configure() { |
38 |
myconf+=(--disable-tcl ) |
39 |
fi |
40 |
|
41 |
+ if [[ ${CHOST} == *-winnt* ]]; then |
42 |
+ # this one should really sound --enable-windows, but |
43 |
+ # seems the db devs only support mingw ... doesn't enable |
44 |
+ # anything too specific to mingw. |
45 |
+ myconf+=(--enable-mingw) |
46 |
+ myconf+=(--with-mutex=win32) |
47 |
+ fi |
48 |
+ |
49 |
# sql_compat will cause a collision with sqlite3 |
50 |
# --enable-sql_compat |
51 |
# Don't --enable-sql* because we don't want to use bundled sqlite. |