diff --git a/proxysql.spec b/proxysql.spec index b7e2f58..f779399 100644 --- a/proxysql.spec +++ b/proxysql.spec @@ -76,6 +76,8 @@ Patch1: libinjection_python2_to_3.patch Patch2: %{name}-gcc11.patch # Provides fixes for cmake scheme Patch3: %{name}_mariadb_cmake.patch +# Removes deprecated openssl function +Patch4: %{name}_openssl.patch %description ProxySQL is a high performance, high availability, protocol aware proxy for @@ -87,6 +89,7 @@ MySQL and forks (like Percona Server and MariaDB). %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 # Remove sources of debundled libraries from v2.2.0 rm -r deps/{libssl,pcre,curl,lz4,libev,libconfig,libdaemon,sqlite3} diff --git a/proxysql_openssl.patch b/proxysql_openssl.patch new file mode 100644 index 0000000..c308365 --- /dev/null +++ b/proxysql_openssl.patch @@ -0,0 +1,23 @@ +According to docs: + CRYPTO_mem_ctrl() provides fine-grained control of memory leak tracking. + To enable tracking call CRYPTO_mem_ctrl() with a mode argument of the CRYPTO_MEM_CHECK_ON. + To disable tracking call CRYPTO_mem_ctrl() with a mode argument of the CRYPTO_MEM_CHECK_OFF. + +Since 3.0.0: + The memory-leak checking has been deprecated in OpenSSL 3.0 in favor of clang's memory and leak sanitizer. + +Notes: + This patch should not cause any problems. CRYPTO_mem_ctrl is probably used to debug potential TLS issues + and this is leftover that does not affect release builds. + +--- test/src/proxy_tls.cpp.org 2021-09-20 07:22:10.562767358 +0000 ++++ test/src/proxy_tls.cpp 2021-09-20 07:19:31.035728759 +0000 +@@ -465,7 +465,7 @@ + + int ret = 0; + +- CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF); ++ //CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_OFF); + + bio_err = BIO_new_fp(stderr, BIO_NOCLOSE); +