1 |
commit: 080a6315580b734e3e79f9420b207b495b4bc693 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 1 13:45:16 2017 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 1 13:45:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=080a6315 |
7 |
|
8 |
dev-db/mysql++: Fix build for Bug 629492 and general build cleanup |
9 |
|
10 |
Installed files are unchanged |
11 |
|
12 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
13 |
|
14 |
.../mysql++/files/mysql++-3.2.3-mariadb-10.2.patch | 31 ++++++++++++++++++++++ |
15 |
dev-db/mysql++/mysql++-3.2.3.ebuild | 18 ++++++++++--- |
16 |
2 files changed, 46 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/dev-db/mysql++/files/mysql++-3.2.3-mariadb-10.2.patch b/dev-db/mysql++/files/mysql++-3.2.3-mariadb-10.2.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..f461daac2a4 |
21 |
--- /dev/null |
22 |
+++ b/dev-db/mysql++/files/mysql++-3.2.3-mariadb-10.2.patch |
23 |
@@ -0,0 +1,31 @@ |
24 |
+diff -Naur mysql++-3.2.2-ORIG/lib/dbdriver.cpp mysql++-3.2.2/lib/dbdriver.cpp |
25 |
+--- mysql++-3.2.2-ORIG/lib/dbdriver.cpp 2017-07-14 14:56:06.206629443 +0200 |
26 |
++++ mysql++-3.2.2/lib/dbdriver.cpp 2017-07-14 15:28:34.690826959 +0200 |
27 |
+@@ -257,7 +257,11 @@ |
28 |
+ } |
29 |
+ |
30 |
+ if ((n == 1) && |
31 |
++#ifdef CLIENT_LONG_PASSWORD |
32 |
+ (o >= CLIENT_LONG_PASSWORD) && |
33 |
++#else |
34 |
++ (o >= CLIENT_MYSQL) && |
35 |
++#endif |
36 |
+ #if MYSQL_VERSION_ID > 40000 // highest flag value varies by version |
37 |
+ (o <= CLIENT_MULTI_RESULTS) |
38 |
+ #else |
39 |
+diff -aurN a/lib/common.h b/lib/common.h |
40 |
+--- a/lib/common.h 2016-12-30 18:44:44.000000000 -0500 |
41 |
++++ b/lib/common.h 2017-09-01 09:12:12.270089396 -0400 |
42 |
+@@ -130,12 +130,6 @@ |
43 |
+ #define MYSQLPP_PATH_SEPARATOR '/' |
44 |
+ #endif |
45 |
+ |
46 |
+-#if defined(MYSQLPP_MYSQL_HEADERS_BURIED) |
47 |
+-# include <mysql/mysql_version.h> |
48 |
+-#else |
49 |
+-# include <mysql_version.h> |
50 |
+-#endif |
51 |
+- |
52 |
+ namespace mysqlpp { |
53 |
+ |
54 |
+ /// \brief Alias for 'true', to make code requesting exceptions more |
55 |
|
56 |
diff --git a/dev-db/mysql++/mysql++-3.2.3.ebuild b/dev-db/mysql++/mysql++-3.2.3.ebuild |
57 |
index 01ad02be6ce..7491c26b1fb 100644 |
58 |
--- a/dev-db/mysql++/mysql++-3.2.3.ebuild |
59 |
+++ b/dev-db/mysql++/mysql++-3.2.3.ebuild |
60 |
@@ -3,7 +3,7 @@ |
61 |
|
62 |
EAPI=6 |
63 |
|
64 |
-inherit eutils |
65 |
+inherit autotools libtool flag-o-matic |
66 |
|
67 |
DESCRIPTION="C++ API interface to the MySQL database" |
68 |
HOMEPAGE="http://tangentsoft.net/mysql++/" |
69 |
@@ -19,16 +19,28 @@ DEPEND="${RDEPEND}" |
70 |
DOCS=( CREDITS.txt HACKERS.txt Wishlist doc/ssqls-pretty ) |
71 |
|
72 |
src_prepare() { |
73 |
+ # Bug filed upstream about deprecated std::auto_ptr |
74 |
+ append-cxxflags $(test-flags-CXX -Wno-deprecated-declarations) |
75 |
+ # Bad symlink for libtool in the archive |
76 |
+ rm "${S}/ltmain.sh" || die |
77 |
eapply "${FILESDIR}/${PN}-3.2.1-gold.patch" |
78 |
+ eapply "${FILESDIR}/${PN}-3.2.3-mariadb-10.2.patch" |
79 |
eapply_user |
80 |
+ _elibtoolize --auto-ltdl --install --copy --force |
81 |
+ elibtoolize |
82 |
# Current MySQL libraries are always with threads and slowly being removed |
83 |
sed -i -e "s/mysqlclient_r/mysqlclient/" "${S}/configure" || die |
84 |
rm "${S}/doc/"README-*-RPM.txt || die |
85 |
} |
86 |
|
87 |
src_configure() { |
88 |
- local myconf="--enable-thread-check --with-mysql=${EPREFIX}/usr" |
89 |
- econf ${myconf} |
90 |
+ local myconf=( |
91 |
+ --enable-thread-check |
92 |
+ --with-mysql="${EPREFIX}/usr" |
93 |
+ --with-mysql-lib="${EPREFIX}$(mysql_config --variable=pkglibdir)" |
94 |
+ --with-mysql-include="${EPREFIX}$(mysql_config --variable=pkgincludedir)" |
95 |
+ ) |
96 |
+ econf "${myconf[@]}" |
97 |
} |
98 |
|
99 |
src_install() { |