aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2018-09-12 03:01:26 +0800
committersunpoet <sunpoet@FreeBSD.org>2018-09-12 03:01:26 +0800
commit68d9f0cc4ec6b0954f26f7f0a622450f2af23933 (patch)
treea82e44e5c3267db5566f059df8f39ad5b37c7324
parent7d912a662cf983af7bf972eac2d5c2856cbf9cd8 (diff)
downloadfreebsd-ports-gnome-68d9f0cc4ec6b0954f26f7f0a622450f2af23933.tar.gz
freebsd-ports-gnome-68d9f0cc4ec6b0954f26f7f0a622450f2af23933.tar.zst
freebsd-ports-gnome-68d9f0cc4ec6b0954f26f7f0a622450f2af23933.zip
Fix build with MariaDB
PR: 231271 Submitted by: pi
-rw-r--r--databases/p5-DBD-mysql/files/patch-dbdimp.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/databases/p5-DBD-mysql/files/patch-dbdimp.c b/databases/p5-DBD-mysql/files/patch-dbdimp.c
new file mode 100644
index 000000000000..3edf48b71232
--- /dev/null
+++ b/databases/p5-DBD-mysql/files/patch-dbdimp.c
@@ -0,0 +1,19 @@
+--- dbdimp.c.orig 2018-09-08 20:02:03 UTC
++++ dbdimp.c
+@@ -1907,14 +1907,14 @@ MYSQL *mysql_dr_connect(
+ (SvTRUE(*svp) ? "utf8" : "latin1"));
+ }
+
+-#if (MYSQL_VERSION_ID >= 50723) && (MYSQL_VERSION_ID < MARIADB_BASE_VERSION)
++#if (MYSQL_VERSION_ID >= 50723) && (MYSQL_VERSION_ID < MARIADB_VERSION_ID)
+ if ((svp = hv_fetch(hv, "mysql_get_server_pubkey", 23, FALSE)) && *svp && SvTRUE(*svp)) {
+ my_bool server_get_pubkey = 1;
+ mysql_options(sock, MYSQL_OPT_GET_SERVER_PUBLIC_KEY, &server_get_pubkey);
+ }
+ #endif
+
+-#if (MYSQL_VERSION_ID >= 50600) && (MYSQL_VERSION_ID < MARIADB_BASE_VERSION)
++#if (MYSQL_VERSION_ID >= 50600) && (MYSQL_VERSION_ID < MARIADB_VERSION_ID)
+ if ((svp = hv_fetch(hv, "mysql_server_pubkey", 19, FALSE)) && *svp) {
+ STRLEN plen;
+ char *server_pubkey = SvPV(*svp, plen);