Browse Source

Merge pull request #8185 from micmac1/maria-10222

mariadb: update to 10.2.22 + clean up shared lib deps
lilik-openwrt-22.03
Hannu Nyman 6 years ago
committed by GitHub
parent
commit
66e68603f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 21 deletions
  1. +9
    -6
      utils/mariadb/Makefile
  2. +1
    -1
      utils/mariadb/patches/100-fix_hostname.patch
  3. +0
    -14
      utils/mariadb/patches/200-openssl-deprecated.patch

+ 9
- 6
utils/mariadb/Makefile View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=mariadb PKG_NAME:=mariadb
PKG_VERSION:=10.2.21
PKG_VERSION:=10.2.22
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 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://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/$(PKG_NAME)-$(PKG_VERSION)/source \
https://downloads.mariadb.org/interstitial/$(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 <sebastian_ml@gmx.net> PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
PKG_LICENSE:=GPL-2.0 LGPL-2.1 PKG_LICENSE:=GPL-2.0 LGPL-2.1
PKG_LICENSE_FILES:=COPYING libmariadb/COPYING.LIB PKG_LICENSE_FILES:=COPYING libmariadb/COPYING.LIB
@ -171,11 +171,14 @@ include $(INCLUDE_DIR)/nls.mk
MARIADB_COMMON_DEPENDS := \ MARIADB_COMMON_DEPENDS := \
$(ICONV_DEPENDS) \ $(ICONV_DEPENDS) \
+libatomic \
+libopenssl \ +libopenssl \
+libstdcpp \
+zlib +zlib
MARIADB_COMMON_DEPENDS_EXE := \
$(MARIADB_COMMON_DEPENDS) \
+libatomic \
+libstdcpp
# Pass CPPFLAGS in the CFLAGS as otherwise the build system will # Pass CPPFLAGS in the CFLAGS as otherwise the build system will
# ignore them. # ignore them.
TARGET_CFLAGS+=$(TARGET_CPPFLAGS) TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
@ -256,7 +259,7 @@ define Package/mariadb-client-base
$(call Package/mariadb/Default) $(call Package/mariadb/Default)
TITLE:=MariaDB database client base TITLE:=MariaDB database client base
DEPENDS:=mariadb-common \ DEPENDS:=mariadb-common \
$(MARIADB_COMMON_DEPENDS) \
$(MARIADB_COMMON_DEPENDS_EXE) \
+libedit +libedit
endef endef
@ -324,7 +327,7 @@ endef
define Package/mariadb-server-base define Package/mariadb-server-base
$(call Package/mariadb/Default) $(call Package/mariadb/Default)
DEPENDS:=mariadb-common \ DEPENDS:=mariadb-common \
$(MARIADB_COMMON_DEPENDS) \
$(MARIADB_COMMON_DEPENDS_EXE) \
+!arc:libaio \ +!arc:libaio \
+liblzma \ +liblzma \
+libpcre \ +libpcre \


+ 1
- 1
utils/mariadb/patches/100-fix_hostname.patch View File

@ -1,6 +1,6 @@
--- a/scripts/mysql_install_db.sh --- a/scripts/mysql_install_db.sh
+++ b/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 # Try to determine the hostname


+ 0
- 14
utils/mariadb/patches/200-openssl-deprecated.patch View File

@ -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();

Loading…
Cancel
Save