1 |
commit: b2d1a0549d2ecba00dbbb58f8c4242137a8a0773 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 18 09:59:00 2016 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 18 09:59:12 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2d1a054 |
7 |
|
8 |
gnustep-libs/sope: fix mysql compilation, bug #566138 |
9 |
|
10 |
Bug report and patch by Russell Knighton <russell <AT> annunaki2k2.co.uk> |
11 |
|
12 |
Package-Manager: portage-2.2.27 |
13 |
|
14 |
.../sope/files/sope-2.3.2-mysql-preamble.patch | 35 ++++++++++++++++++++++ |
15 |
gnustep-libs/sope/sope-2.3.2.ebuild | 1 + |
16 |
gnustep-libs/sope/sope-3.0.1.ebuild | 4 +++ |
17 |
3 files changed, 40 insertions(+) |
18 |
|
19 |
diff --git a/gnustep-libs/sope/files/sope-2.3.2-mysql-preamble.patch b/gnustep-libs/sope/files/sope-2.3.2-mysql-preamble.patch |
20 |
new file mode 100644 |
21 |
index 0000000..86bcc7a |
22 |
--- /dev/null |
23 |
+++ b/gnustep-libs/sope/files/sope-2.3.2-mysql-preamble.patch |
24 |
@@ -0,0 +1,35 @@ |
25 |
+--- a/sope-gdl1/MySQL/GNUmakefile.preamble 2015-09-07 17:52:21.244429620 +0100 |
26 |
++++ b/sope-gdl1/MySQL/GNUmakefile.preamble 2015-09-07 17:54:16.586770809 +0100 |
27 |
+@@ -33,12 +33,12 @@ |
28 |
+ |
29 |
+ MySQL_BUNDLE_LIBS += \ |
30 |
+ -lGDLAccess \ |
31 |
+- `mysql_config --libs` |
32 |
++ $(shell mysql_config --libs) |
33 |
+ |
34 |
+ MySQLD_BUNDLE_LIBS += \ |
35 |
+ -lGDLAccess \ |
36 |
+ -lEOControl \ |
37 |
+- `mysql_config --libs` |
38 |
++ $(shell mysql_config --libs) |
39 |
+ |
40 |
+ gdltest_TOOL_LIBS += \ |
41 |
+ -lGDLAccess \ |
42 |
+@@ -46,14 +46,15 @@ |
43 |
+ |
44 |
+ # set compile flags and go |
45 |
+ |
46 |
+-ADDITIONAL_CFLAGS += `mysql_config --cflags` |
47 |
++ADDITIONAL_CFLAGS += $(shell mysql_config --cflags) |
48 |
+ |
49 |
+ ADDITIONAL_INCLUDE_DIRS += \ |
50 |
+ -I../GDLAccess -I.. -I$(SOPE_ROOT) |
51 |
+ |
52 |
+ ADDITIONAL_INCLUDE_DIRS += \ |
53 |
+ -I$(SOPE_ROOT)/sope-core/ \ |
54 |
+- -I$(SOPE_ROOT)/sope-core/NGExtensions |
55 |
++ -I$(SOPE_ROOT)/sope-core/NGExtensions \ |
56 |
++ $(shell mysql_config --cflags) |
57 |
+ |
58 |
+ |
59 |
+ # dependencies |
60 |
|
61 |
diff --git a/gnustep-libs/sope/sope-2.3.2.ebuild b/gnustep-libs/sope/sope-2.3.2.ebuild |
62 |
index 5706ac2..f042ec9 100644 |
63 |
--- a/gnustep-libs/sope/sope-2.3.2.ebuild |
64 |
+++ b/gnustep-libs/sope/sope-2.3.2.ebuild |
65 |
@@ -39,6 +39,7 @@ pkg_pretend() { |
66 |
src_prepare() { |
67 |
# https://github.com/inverse-inc/sope/pull/33 |
68 |
epatch "${FILESDIR}"/${P}-optional-deps.patch |
69 |
+ epatch "${FILESDIR}"/${P}-mysql-preamble.patch |
70 |
gnustep-base_src_prepare |
71 |
} |
72 |
|
73 |
|
74 |
diff --git a/gnustep-libs/sope/sope-3.0.1.ebuild b/gnustep-libs/sope/sope-3.0.1.ebuild |
75 |
index 06fd5e2..f714000 100644 |
76 |
--- a/gnustep-libs/sope/sope-3.0.1.ebuild |
77 |
+++ b/gnustep-libs/sope/sope-3.0.1.ebuild |
78 |
@@ -29,6 +29,10 @@ RDEPEND=" |
79 |
" |
80 |
DEPEND="${RDEPEND}" |
81 |
|
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}"/${PN}-2.3.2-mysql-preamble.patch |
84 |
+) |
85 |
+ |
86 |
pkg_pretend() { |
87 |
if use ssl && use gnutls && use libressl ; then |
88 |
ewarn "You have enabled both gnutls and libressl, but only" |