Skip to content

Commit

Permalink
databases/mysql80-{client, server}: Update to latest release 8.0.35
Browse files Browse the repository at this point in the history
  • Loading branch information
joneum committed Nov 19, 2023
1 parent fbfc60e commit 6179bcf
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 43 deletions.
2 changes: 1 addition & 1 deletion databases/mysql80-client/Makefile
@@ -1,5 +1,5 @@
PORTNAME= mysql
PORTREVISION= 4
PORTREVISION= 0
PKGNAMESUFFIX= 80-client

COMMENT= Multithreaded SQL database (client)
Expand Down
4 changes: 2 additions & 2 deletions databases/mysql80-server/Makefile
@@ -1,6 +1,6 @@
PORTNAME?= mysql
PORTVERSION= 8.0.33
PORTREVISION?= 1
PORTVERSION= 8.0.35
PORTREVISION?= 0
CATEGORIES= databases
MASTER_SITES= MYSQL/MySQL-8.0
PKGNAMESUFFIX?= 80-server
Expand Down
6 changes: 3 additions & 3 deletions databases/mysql80-server/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1686677589
SHA256 (mysql-boost-8.0.33.tar.gz) = ae31e6368617776b43c82436c3736900067fada1289032f3ac3392f7380bcb58
SIZE (mysql-boost-8.0.33.tar.gz) = 438065679
TIMESTAMP = 1700321902
SHA256 (mysql-boost-8.0.35.tar.gz) = 41253c3a99cefcf6d806040c6687692eb0c37b4c7aae5882417dfb9c5d3ce4ce
SIZE (mysql-boost-8.0.35.tar.gz) = 438111810
@@ -1,13 +1,12 @@
--- router/src/harness/src/tls_server_context.cc.orig 2023-06-29 15:05:27.686865000 +0200
+++ router/src/harness/src/tls_server_context.cc 2023-06-29 15:31:25.869049000 +0200
@@ -275,7 +275,9 @@ stdx::expected<void, std::error_code> set_auto_dh_para
#if OPENSSL_VERSION_NUMBER >= ROUTER_OPENSSL_VERSION(3, 0, 0)
SSL_CTX_set_dh_auto(ssl_ctx, 1);
#else
--- router/src/harness/src/tls_server_context.cc.orig 2023-11-18 19:39:18.923205000 +0100
+++ router/src/harness/src/tls_server_context.cc 2023-11-18 19:42:53.690094000 +0100
@@ -474,7 +474,8 @@ int TlsServerContext::security_level() const {
}

int TlsServerContext::security_level() const {
-#if OPENSSL_VERSION_NUMBER >= ROUTER_OPENSSL_VERSION(1, 1, 0)
+#if OPENSSL_VERSION_NUMBER >= ROUTER_OPENSSL_VERSION(1, 1, 0) \
+ && !defined(LIBRESSL_VERSION_NUMBER)
+
int sec_level = SSL_CTX_get_security_level(ssl_ctx);
int sec_level = SSL_CTX_get_security_level(ssl_ctx_.get());

assert(sec_level <= kMaxSecurityLevel);
24 changes: 7 additions & 17 deletions databases/mysql80-server/files/patch-storage_innobase_ut_crc32.cc
@@ -1,16 +1,6 @@
--- storage/innobase/ut/crc32.cc.orig 2021-12-17 17:07:27 UTC
+++ storage/innobase/ut/crc32.cc
@@ -111,7 +111,9 @@ external tools. */
#endif /* CRC32_ARM64 */

#ifdef CRC32_ARM64_DEFAULT
+#ifndef __FreeBSD__
#include <asm/hwcap.h>
+#endif
#include <sys/auxv.h>
#endif /* CRC32_ARM64_DEFAULT */

@@ -360,8 +362,25 @@ bool can_use_poly_mul() { return true; }
--- storage/innobase/ut/crc32.cc.orig 2023-11-18 19:47:31.364606000 +0100
+++ storage/innobase/ut/crc32.cc 2023-11-18 20:51:42.956171000 +0100
@@ -332,8 +332,25 @@ bool can_use_poly_mul() { return true; }
#endif /* CRC32_ARM64_APPLE */

#ifdef CRC32_ARM64_DEFAULT
Expand All @@ -36,7 +26,7 @@
#endif /* CRC32_ARM64_DEFAULT */

/** A helper template to statically unroll a loop with a fixed number of
@@ -470,25 +489,39 @@ uint64_t crc32_impl::update(uint64_t crc, uint64_t dat
@@ -442,25 +459,39 @@ uint64_t crc32_impl::update(uint64_t crc, uint64_t dat
#ifdef CRC32_ARM64
#ifdef CRC32_ARM64_DEFAULT
Expand Down Expand Up @@ -76,7 +66,7 @@
#endif /* CRC32_ARM64_DEFAULT */
uint64_t crc32_impl::update(uint64_t crc, uint64_t data) {
return (uint64_t)__crc32cd((uint32_t)crc, data);
@@ -534,7 +567,11 @@ static inline uint64_t less_significant_half_of_poly12
@@ -506,7 +537,11 @@ template <uint32_t w>
}
template <uint32_t w>
#ifdef CRC32_ARM64_DEFAULT
Expand All @@ -88,7 +78,7 @@
#endif /* CRC32_ARM64_DEFAULT */
uint64_t use_pclmul::polynomial_mul_rev(uint32_t rev_u) {
constexpr uint64_t flipped_w = flip_at_32(w);
@@ -777,7 +814,11 @@ MY_ATTRIBUTE((target("sse4.2,pclmul"), flatten))
@@ -749,7 +784,11 @@ MY_ATTRIBUTE((flatten))
MY_ATTRIBUTE((flatten))
#endif /* CRC32_ARM64_APPLE */
#ifdef CRC32_ARM64_DEFAULT
Expand All @@ -100,7 +90,7 @@
#endif /* CRC32_ARM64_DEFAULT */
uint32_t crc32_using_pclmul(const byte *data, size_t len) {
return crc32<use_pclmul>(0, data, len);
@@ -797,7 +838,11 @@ MY_ATTRIBUTE((target("sse4.2"), flatten))
@@ -769,7 +808,11 @@ MY_ATTRIBUTE((flatten))
MY_ATTRIBUTE((flatten))
#endif /* CRC32_ARM64_APPLE */
#ifdef CRC32_ARM64_DEFAULT
Expand Down
24 changes: 12 additions & 12 deletions databases/mysql80-server/files/patch-vio_viosslfactories.cc
@@ -1,14 +1,14 @@
--- vio/viosslfactories.cc.orig 2022-07-06 21:36:34 UTC
+++ vio/viosslfactories.cc
@@ -40,6 +40,7 @@
#include "vio/vio_priv.h"
--- vio/viosslfactories.cc.orig 2023-11-18 20:56:37.098235000 +0100
+++ vio/viosslfactories.cc 2023-11-19 09:20:02.284708000 +0100
@@ -43,6 +43,7 @@
#include <dh_ecdh_config.h>

#include <openssl/dh.h>
+#include <openssl/crypto.h>
#include "my_openssl_fips.h"
+#include "openssl/crypto.h"
#define TLS_VERSION_OPTION_SIZE 256

#if OPENSSL_VERSION_NUMBER < 0x10002000L
#include <openssl/ec.h>
@@ -484,7 +485,7 @@ long process_tls_version(const char *tls_version) {
/*
@@ -417,7 +418,7 @@ long process_tls_version(const char *tls_version) {
const char *separator = ",";
char *token, *lasts = nullptr;
Expand All @@ -17,7 +17,7 @@
const char *tls_version_name_list[] = {"TLSv1.2", "TLSv1.3"};
const char ctx_flag_default[] = "TLSv1.2,TLSv1.3";
const long tls_ctx_list[] = {SSL_OP_NO_TLSv1_2, SSL_OP_NO_TLSv1_3};
@@ -559,7 +560,7 @@ static struct st_VioSSLFd *new_VioSSLFd(
@@ -489,7 +490,7 @@ static struct st_VioSSLFd *new_VioSSLFd(
ssl_ctx_options = (ssl_ctx_options | ssl_ctx_flags) &
(SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 |
SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2
Expand All @@ -26,7 +26,7 @@
| SSL_OP_NO_TLSv1_3
#endif /* HAVE_TLSv13 */
| SSL_OP_NO_TICKET);
@@ -568,7 +569,7 @@ static struct st_VioSSLFd *new_VioSSLFd(
@@ -498,7 +499,7 @@ static struct st_VioSSLFd *new_VioSSLFd(
return nullptr;

if (!(ssl_fd->ssl_context = SSL_CTX_new(is_client ?
Expand All @@ -35,7 +35,7 @@
TLS_client_method()
: TLS_server_method()
#else /* HAVE_TLSv13 */
@@ -583,7 +584,7 @@ static struct st_VioSSLFd *new_VioSSLFd(
@@ -513,7 +514,7 @@ static struct st_VioSSLFd *new_VioSSLFd(
return nullptr;
}

Expand Down

0 comments on commit 6179bcf

Please sign in to comment.