mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
databases/proxysql: fix build on armv7 for real
Seems like I forgot to check in the patch files last time.
Write the patch files anew and add them to the tree.
Fixes: 0586757c29
Approved by: portmgr (build fix blanket)
MFH: 2025Q4
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
--- include/MySQL_HostGroups_Manager.h.orig 2025-11-05 18:26:00 UTC
|
||||
+++ include/MySQL_HostGroups_Manager.h
|
||||
@@ -1250,9 +1250,9 @@ T j_get_srv_default_int_val(
|
||||
return val;
|
||||
} else {
|
||||
proxy_error(
|
||||
- "Invalid value %ld supplied for 'mysql_hostgroup_attributes.servers_defaults.%s' for hostgroup %d."
|
||||
+ "Invalid value %lld supplied for 'mysql_hostgroup_attributes.servers_defaults.%s' for hostgroup %d."
|
||||
" Value NOT UPDATED.\n",
|
||||
- static_cast<int64_t>(val), key.c_str(), hid
|
||||
+ static_cast<long long int>(val), key.c_str(), hid
|
||||
);
|
||||
}
|
||||
} else {
|
||||
@@ -0,0 +1,11 @@
|
||||
--- lib/ProxySQL_Admin.cpp.orig 2025-11-05 18:44:48 UTC
|
||||
+++ lib/ProxySQL_Admin.cpp
|
||||
@@ -332,7 +332,7 @@ char rand_del[6];
|
||||
char rand_del[6];
|
||||
|
||||
//static int http_handler(void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **ptr) {
|
||||
-MHD_Result http_handler(void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, long unsigned int *upload_data_size, void **ptr) {
|
||||
+MHD_Result http_handler(void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **ptr) {
|
||||
return (MHD_Result) GloAdmin->AdminHTTPServer->handler(cls, connection, url, method, version, upload_data, upload_data_size, ptr);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
--- lib/ProxySQL_GloVars.cpp.orig 2025-11-05 18:21:29 UTC
|
||||
+++ lib/ProxySQL_GloVars.cpp
|
||||
@@ -334,7 +334,10 @@ void update_ulong_var_if_set(uint64_t& cur_val, ez::ez
|
||||
|
||||
void update_ulong_var_if_set(uint64_t& cur_val, ez::ezOptionParser* opt, const char* cmd_opt) {
|
||||
if (opt->isSet(cmd_opt)) {
|
||||
- opt->get(cmd_opt)->getULong(cur_val);
|
||||
+ unsigned long new_val = cur_val;
|
||||
+
|
||||
+ opt->get(cmd_opt)->getULong(new_val);
|
||||
+ cur_val = new_val;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user