aboutsummaryrefslogtreecommitdiff
path: root/databases/mysqlwsrep57-server
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2018-01-23 09:51:53 +0000
committerVasil Dimov <vd@FreeBSD.org>2018-01-23 09:51:53 +0000
commite2f106a61e97268a5db2f1ffb243011faa24e658 (patch)
tree8b3ad744c4ec070b3916b772973905727ef822f4 /databases/mysqlwsrep57-server
parent4d1df0588af4ce68f75edb9e83c92f10d1f263d6 (diff)
downloadports-e2f106a61e97268a5db2f1ffb243011faa24e658.tar.gz
ports-e2f106a61e97268a5db2f1ffb243011faa24e658.zip
databases/mysqlwsrep57-server: Fix compilation with Clang 6
Notes
Notes: svn path=/head/; revision=459735
Diffstat (limited to 'databases/mysqlwsrep57-server')
-rw-r--r--databases/mysqlwsrep57-server/Makefile8
-rw-r--r--databases/mysqlwsrep57-server/files/patch-sql-common_client__authentication.cc11
-rw-r--r--databases/mysqlwsrep57-server/files/patch-storage_innobase_row_row0sel.cc11
3 files changed, 30 insertions, 0 deletions
diff --git a/databases/mysqlwsrep57-server/Makefile b/databases/mysqlwsrep57-server/Makefile
index ffecb2fe7ead..5afb6b8409ea 100644
--- a/databases/mysqlwsrep57-server/Makefile
+++ b/databases/mysqlwsrep57-server/Makefile
@@ -171,6 +171,14 @@ CMAKE_ARGS+= -DWITH_SSL=system
CMAKE_ARGS+= -DWITH_SSL=${OPENSSLBASE}
.endif
+# ${LOCALBASE}/include/lz4.h does not compile with Clang 6.
+# Also MySQL code itself needs -Wno-c++11-narrowing when Clang 6 is used.
+.if ${OSVERSION} >= 1200056
+CFLAGS+= -DLZ4_DISABLE_DEPRECATE_WARNINGS
+CXXFLAGS+= -DLZ4_DISABLE_DEPRECATE_WARNINGS -Wno-c++11-narrowing
+LDFLAGS+= -L${LOCALBASE}/lib
+.endif
+
post-extract:
${RM} -fv ${WRKSRC}/sql/sql_hints.yy.cc ${WRKSRC}/sql/sql_hints.yy.h
diff --git a/databases/mysqlwsrep57-server/files/patch-sql-common_client__authentication.cc b/databases/mysqlwsrep57-server/files/patch-sql-common_client__authentication.cc
new file mode 100644
index 000000000000..8717b90cb859
--- /dev/null
+++ b/databases/mysqlwsrep57-server/files/patch-sql-common_client__authentication.cc
@@ -0,0 +1,11 @@
+--- sql-common/client_authentication.cc.orig 2018-01-22 16:19:07.776289000 +0200
++++ sql-common/client_authentication.cc 2018-01-22 16:19:26.756981000 +0200
+@@ -84,7 +84,7 @@
+
+ if (mysql->options.extension != NULL &&
+ mysql->options.extension->server_public_key_path != NULL &&
+- mysql->options.extension->server_public_key_path != '\0')
++ mysql->options.extension->server_public_key_path[0] != '\0')
+ {
+ pub_key_file= fopen(mysql->options.extension->server_public_key_path,
+ "r");
diff --git a/databases/mysqlwsrep57-server/files/patch-storage_innobase_row_row0sel.cc b/databases/mysqlwsrep57-server/files/patch-storage_innobase_row_row0sel.cc
new file mode 100644
index 000000000000..e8799c151318
--- /dev/null
+++ b/databases/mysqlwsrep57-server/files/patch-storage_innobase_row_row0sel.cc
@@ -0,0 +1,11 @@
+--- storage/innobase/row/row0sel.cc.orig 2018-01-22 18:12:31.679942000 +0200
++++ storage/innobase/row/row0sel.cc 2018-01-22 18:12:55.834909000 +0200
+@@ -5193,7 +5193,7 @@
+ reporting due to search views etc. */
+ if (prev_rec != NULL
+ && prebuilt->m_mysql_handler->end_range != NULL
+- && prebuilt->idx_cond == false && end_loop >= 100) {
++ && prebuilt->idx_cond == NULL && end_loop >= 100) {
+
+ dict_index_t* key_index = prebuilt->index;
+ bool clust_templ_for_sec = false;