git: ca5e45084008 - main - databases/proxysql: Update to 3.0.6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Mar 2026 19:49:05 UTC
The branch main has been updated by zi:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ca5e45084008a95f4261677c98e781d0d40952c1
commit ca5e45084008a95f4261677c98e781d0d40952c1
Author: Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2026-03-20 19:47:20 +0000
Commit: Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2026-03-20 19:47:20 +0000
databases/proxysql: Update to 3.0.6
- The previous commit actually updated us to 3.0.5 as upstream uses
the 3.0.6 tag as the start of 3.0.6 and v3.0.6 as the actual release.
---
databases/proxysql/Makefile | 4 +++-
databases/proxysql/distinfo | 6 +++---
databases/proxysql/files/patch-lib_log__utils.cpp | 11 +++++++++++
databases/proxysql/files/patch-lib_proxysql__utils.cpp | 11 ++++-------
4 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/databases/proxysql/Makefile b/databases/proxysql/Makefile
index b136eada9ae1..43db4dc4235f 100644
--- a/databases/proxysql/Makefile
+++ b/databases/proxysql/Makefile
@@ -1,5 +1,6 @@
PORTNAME= proxysql
PORTVERSION= 3.0.6
+DISTVERSIONPREFIX= v
CATEGORIES= databases
MAINTAINER= zi@FreeBSD.org
@@ -25,7 +26,7 @@ RUN_DEPENDS= libgcrypt>0:security/libgcrypt \
USES= bison:build compiler:c++11-lang gmake libtool perl5 pkgconfig python:build ssl
USE_PERL5= build
USE_GCC= yes
-MAKE_ENV= GIT_VERSION="${PORTVERSION}" SOURCE_DATE_EPOCH="$$(date +%s)"
+MAKE_ENV= GIT_VERSION_BASE="${PORTVERSION}" SOURCE_DATE_EPOCH="$$(date +%s)"
USE_GITHUB= yes
ALL_TARGET= build_deps default
LDFLAGS+= -L${LOCALBASE}/lib
@@ -51,6 +52,7 @@ post-patch:
-e '7s/^/pidfile="\/var\/run\/${PORTNAME}\/${PORTNAME}.pid"\n/g' \
${WRKSRC}/src/proxysql.cfg
@${REINPLACE_CMD} \
+ -e '/^GIT_VERSION_BASE := /d' \
-e 's,grep -P,g&,' \
-e '/ export C/d' \
-e 's,PROXYSQLCLICKHOUSE=1 ,,g' \
diff --git a/databases/proxysql/distinfo b/databases/proxysql/distinfo
index 1c1c7b2fb640..c2f1f6a3d663 100644
--- a/databases/proxysql/distinfo
+++ b/databases/proxysql/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1773849369
-SHA256 (sysown-proxysql-3.0.6_GH0.tar.gz) = a56fc549406dcc6c525f5757f60e9b68a7df8b513f8042f5d9fdcd839f270d30
-SIZE (sysown-proxysql-3.0.6_GH0.tar.gz) = 62876841
+TIMESTAMP = 1774033903
+SHA256 (sysown-proxysql-v3.0.6_GH0.tar.gz) = 5002fc58b9d6417992426c85818858bd95237d1a1ba8207766363d32f72b5705
+SIZE (sysown-proxysql-v3.0.6_GH0.tar.gz) = 64368152
diff --git a/databases/proxysql/files/patch-lib_log__utils.cpp b/databases/proxysql/files/patch-lib_log__utils.cpp
new file mode 100644
index 000000000000..601c90eac15c
--- /dev/null
+++ b/databases/proxysql/files/patch-lib_log__utils.cpp
@@ -0,0 +1,11 @@
+--- lib/log_utils.cpp.orig 2026-03-20 19:38:59 UTC
++++ lib/log_utils.cpp
+@@ -112,7 +112,7 @@ LogBufferThreadContext::LogBufferThreadContext() : dis
+ std::seed_seq seed{
+ rd(),
+ static_cast<unsigned>(std::chrono::high_resolution_clock::now().time_since_epoch().count()),
+- static_cast<unsigned>(pthread_self())
++ static_cast<unsigned>(reinterpret_cast<uintptr_t>(pthread_self()))
+ };
+ rng.seed(seed);
+ }
diff --git a/databases/proxysql/files/patch-lib_proxysql__utils.cpp b/databases/proxysql/files/patch-lib_proxysql__utils.cpp
index f79704dcd047..c14c8052a531 100644
--- a/databases/proxysql/files/patch-lib_proxysql__utils.cpp
+++ b/databases/proxysql/files/patch-lib_proxysql__utils.cpp
@@ -1,12 +1,9 @@
---- lib/proxysql_utils.cpp.orig 2026-01-16 09:33:05 UTC
+--- lib/proxysql_utils.cpp.orig 2026-03-20 19:16:36 UTC
+++ lib/proxysql_utils.cpp
-@@ -19,7 +19,13 @@
- #include <unistd.h>
- #include <dirent.h>
- #include <sys/syscall.h>
-+#ifdef __linux__
+@@ -23,6 +23,10 @@
+ #ifdef __linux__
#include <linux/close_range.h>
-+#endif
+ #endif
+#ifdef __FreeBSD__
+#include <sys/socket.h>
+#include <netinet/in.h>