aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2024-01-26 15:03:09 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2024-01-26 15:05:30 +0000
commit4c5b01c37aa273ddd476f67ba63569a1e6c7eeda (patch)
tree68226ed6c88723b6b59d5468c158d9c15b2560d4
parent01ede3084b43f7f4ce2502f2f0438fcbfbf96096 (diff)
downloadports-4c5b01c37aa273ddd476f67ba63569a1e6c7eeda.tar.gz
ports-4c5b01c37aa273ddd476f67ba63569a1e6c7eeda.zip
databases/mysqltcl: Unbreak with MySQL 8.x, bump PORTREVISION
-rw-r--r--databases/mysqltcl/Makefile2
-rw-r--r--databases/mysqltcl/files/patch-generic_mysqltcl.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/databases/mysqltcl/Makefile b/databases/mysqltcl/Makefile
index dba640436ca9..d89ddc338236 100644
--- a/databases/mysqltcl/Makefile
+++ b/databases/mysqltcl/Makefile
@@ -1,5 +1,6 @@
PORTNAME= mysqltcl
PORTVERSION= 3.052
+PORTREVISION= 1
CATEGORIES= databases tcl
MASTER_SITES= http://www.xdobry.de/mysqltcl/
@@ -8,7 +9,6 @@ COMMENT= TCL module for accessing MySQL databases based on msqltcl
WWW= http://www.xdobry.de/mysqltcl/
USES= mysql tcl
-IGNORE_WITH_MYSQL= 80 81
USE_LDCONFIG= yes
PLIST_FILES= lib/${PORTNAME}-${PORTVERSION}/libmysqltcl${PORTVERSION}.so \
diff --git a/databases/mysqltcl/files/patch-generic_mysqltcl.c b/databases/mysqltcl/files/patch-generic_mysqltcl.c
new file mode 100644
index 000000000000..477c951daee7
--- /dev/null
+++ b/databases/mysqltcl/files/patch-generic_mysqltcl.c
@@ -0,0 +1,11 @@
+--- generic/mysqltcl.c.orig 2024-01-26 14:58:40 UTC
++++ generic/mysqltcl.c
+@@ -911,7 +911,7 @@ static int Mysqltcl_Connect(ClientData clientData, Tcl
+ #if (MYSQL_VERSION_ID>=32350)
+ if(mysql_options_reconnect)
+ {
+- my_bool reconnect = 1;
++ bool reconnect = 1;
+ mysql_options(handle->connection, MYSQL_OPT_RECONNECT, &reconnect);
+ }
+ mysql_options(handle->connection,MYSQL_READ_DEFAULT_GROUP,groupname);