1 |
commit: 4a86e974111fde9c163c780a638c5f32025e517f |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 30 21:37:04 2015 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 30 21:37:04 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=4a86e974 |
7 |
|
8 |
Fix OpenSSL detection |
9 |
|
10 |
--- |
11 |
dev-db/mysql-connector-c/files/openssl-cmake-detection.patch | 12 ++++++++++++ |
12 |
dev-db/mysql-connector-c/mysql-connector-c-6.1.5.ebuild | 5 +++++ |
13 |
2 files changed, 17 insertions(+) |
14 |
|
15 |
diff --git a/dev-db/mysql-connector-c/files/openssl-cmake-detection.patch b/dev-db/mysql-connector-c/files/openssl-cmake-detection.patch |
16 |
new file mode 100644 |
17 |
index 0000000..3a5f53e |
18 |
--- /dev/null |
19 |
+++ b/dev-db/mysql-connector-c/files/openssl-cmake-detection.patch |
20 |
@@ -0,0 +1,12 @@ |
21 |
+diff -aurN a/cmake/ssl.cmake b/cmake/ssl.cmake |
22 |
+--- a/cmake/ssl.cmake 2014-11-21 00:39:51.000000000 -0500 |
23 |
++++ b/cmake/ssl.cmake 2015-01-27 08:45:36.771744344 -0500 |
24 |
+@@ -166,7 +166,7 @@ |
25 |
+ # Encoded as MNNFFPPS: major minor fix patch status |
26 |
+ FILE(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" |
27 |
+ OPENSSL_VERSION_NUMBER |
28 |
+- REGEX "^#define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*" |
29 |
++ REGEX "^#[\t ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*" |
30 |
+ ) |
31 |
+ STRING(REGEX REPLACE |
32 |
+ "^.*OPENSSL_VERSION_NUMBER[\t ]+0x([0-9]).*$" "\\1" |
33 |
|
34 |
diff --git a/dev-db/mysql-connector-c/mysql-connector-c-6.1.5.ebuild b/dev-db/mysql-connector-c/mysql-connector-c-6.1.5.ebuild |
35 |
index d850290..7e1f1fd 100644 |
36 |
--- a/dev-db/mysql-connector-c/mysql-connector-c-6.1.5.ebuild |
37 |
+++ b/dev-db/mysql-connector-c/mysql-connector-c-6.1.5.ebuild |
38 |
@@ -39,6 +39,11 @@ DEPEND="${CDEPEND} |
39 |
|
40 |
DOCS=( README Docs/ChangeLog ) |
41 |
|
42 |
+src_prepare() { |
43 |
+ epatch "${FILESDIR}/openssl-cmake-detection.patch" |
44 |
+ epatch_user |
45 |
+} |
46 |
+ |
47 |
multilib_src_configure() { |
48 |
mycmakeargs+=( |
49 |
-DINSTALL_LAYOUT=RPM |