From f4fda3f7f6b447513fb45dd862f9aa887c434d66 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Mon, 11 Feb 2019 21:44:36 +0100 Subject: [PATCH 1/2] mariadb: fix libmariadb depends The shared library does not depend on libatomic nor libstdcpp anymore. This is very good news for the users of said lib. This commit updates the depends accordingly. Signed-off-by: Sebastian Kemper --- utils/mariadb/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/utils/mariadb/Makefile b/utils/mariadb/Makefile index 6a987d1c0..89d92fa55 100644 --- a/utils/mariadb/Makefile +++ b/utils/mariadb/Makefile @@ -171,11 +171,14 @@ include $(INCLUDE_DIR)/nls.mk MARIADB_COMMON_DEPENDS := \ $(ICONV_DEPENDS) \ - +libatomic \ +libopenssl \ - +libstdcpp \ +zlib +MARIADB_COMMON_DEPENDS_EXE := \ + $(MARIADB_COMMON_DEPENDS) \ + +libatomic \ + +libstdcpp + # Pass CPPFLAGS in the CFLAGS as otherwise the build system will # ignore them. TARGET_CFLAGS+=$(TARGET_CPPFLAGS) @@ -256,7 +259,7 @@ define Package/mariadb-client-base $(call Package/mariadb/Default) TITLE:=MariaDB database client base DEPENDS:=mariadb-common \ - $(MARIADB_COMMON_DEPENDS) \ + $(MARIADB_COMMON_DEPENDS_EXE) \ +libedit endef @@ -324,7 +327,7 @@ endef define Package/mariadb-server-base $(call Package/mariadb/Default) DEPENDS:=mariadb-common \ - $(MARIADB_COMMON_DEPENDS) \ + $(MARIADB_COMMON_DEPENDS_EXE) \ +!arc:libaio \ +liblzma \ +libpcre \ From 874701cdabe61cd8cb59f996d3c9e816bf94d576 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Mon, 11 Feb 2019 21:49:20 +0100 Subject: [PATCH 2/2] mariadb: bump to 10.2.22 From upstream release notes: - Backport Information Schema CHECK_CONSTRAINTS Table. - MDEV-17475: Maximum value of table_definition_cache is now 2097152. - InnoDB ALTER TABLE fixes: MDEV-16499, MDEV-18186, MDEV-18237, MDEV-18222, MDEV-18256, MDEV-18016, MDEV-16849 - Mariabackup fixes: MDEV-18185, MDEV-18201, MDEV-18194 - Galera crash recovery fix: MDEV-15740 - Encryption fixes: MDEV-18129, MDEV-18183, MDEV-18279 - Fixes for the following security vulnerabilities: - CVE-2019-2510 - CVE-2019-2537 OpenWrt notes: - OpenSSL patch dropped as issue fixed upstream Signed-off-by: Sebastian Kemper --- utils/mariadb/Makefile | 4 ++-- utils/mariadb/patches/100-fix_hostname.patch | 2 +- utils/mariadb/patches/200-openssl-deprecated.patch | 14 -------------- 3 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 utils/mariadb/patches/200-openssl-deprecated.patch diff --git a/utils/mariadb/Makefile b/utils/mariadb/Makefile index 89d92fa55..cd153d0b1 100644 --- a/utils/mariadb/Makefile +++ b/utils/mariadb/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mariadb -PKG_VERSION:=10.2.21 +PKG_VERSION:=10.2.22 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -18,7 +18,7 @@ PKG_SOURCE_URL := \ https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/$(PKG_NAME)-$(PKG_VERSION)/source \ https://downloads.mariadb.org/interstitial/$(PKG_NAME)-$(PKG_VERSION)/source -PKG_HASH:=637f0808b65ec06902897a2f885a60377828d019d35802402dca541f8113536c +PKG_HASH:=42f4c54c29b7c196bd105bbf4d2ea721f869b14cb7ba436c3566e6dd2760614c PKG_MAINTAINER:=Sebastian Kemper PKG_LICENSE:=GPL-2.0 LGPL-2.1 PKG_LICENSE_FILES:=COPYING libmariadb/COPYING.LIB diff --git a/utils/mariadb/patches/100-fix_hostname.patch b/utils/mariadb/patches/100-fix_hostname.patch index 829b98fb2..d428a7b7e 100644 --- a/utils/mariadb/patches/100-fix_hostname.patch +++ b/utils/mariadb/patches/100-fix_hostname.patch @@ -1,6 +1,6 @@ --- a/scripts/mysql_install_db.sh +++ b/scripts/mysql_install_db.sh -@@ -388,7 +388,7 @@ fi +@@ -399,7 +399,7 @@ fi # Try to determine the hostname diff --git a/utils/mariadb/patches/200-openssl-deprecated.patch b/utils/mariadb/patches/200-openssl-deprecated.patch deleted file mode 100644 index 2e499188c..000000000 --- a/utils/mariadb/patches/200-openssl-deprecated.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- a/libmariadb/libmariadb/secure/openssl.c -+++ b/libmariadb/libmariadb/secure/openssl.c -@@ -419,8 +419,10 @@ void ma_tls_end() - if (mariadb_deinitialize_ssl) - { - #ifndef HAVE_OPENSSL_1_1_API --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10000000L - ERR_remove_state(0); -+#else -+ ERR_remove_thread_state(NULL); - #endif - EVP_cleanup(); - CRYPTO_cleanup_all_ex_data();