mariadb: Update to version 10.6.4
authorMichal Hrusecky <michal.hrusecky@turris.com>
Fri, 29 Oct 2021 12:31:47 +0000 (14:31 +0200)
committerRosen Penev <rosenp@gmail.com>
Sat, 30 Oct 2021 08:03:31 +0000 (01:03 -0700)
Update to the latest stable version of MariaDB. Dropped few no longer
needed patches.

Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
utils/mariadb/Makefile
utils/mariadb/patches/100-fix_hostname.patch
utils/mariadb/patches/110-pcre.cmake.patch [deleted file]
utils/mariadb/patches/130-c11_atomics.patch
utils/mariadb/patches/170-ppc-remove-glibc-dep.patch
utils/mariadb/patches/180-relax-mysql_install-db-wrt-pam-tool.patch
utils/mariadb/patches/190-replace-hostname-in-mysqld_safe.patch
utils/mariadb/patches/200-no-selinux.patch
utils/mariadb/patches/210-libmariadb-fix-cmake.patch [deleted file]

index a243b740b964a8ba0227eb95e8787e73b786b500..6a14242f642806b174299df1bced6e6fa675631b 100644 (file)
@@ -1,5 +1,6 @@
 #
 # Copyright (C) 2018 Sebastian Kemper <sebastian_ml@gmx.net>
+# Copyright (C) 2021 Michal Hrusecky <michal@hrusecky.net>
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,19 +9,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mariadb
-PKG_VERSION:=10.4.18
+PKG_VERSION:=10.6.4
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL := \
-       https://mirror.netcologne.de/mariadb/$(PKG_NAME)-$(PKG_VERSION)/source \
-       https://mirror.lstn.net/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
+PKG_SOURCE_URL := https://archive.mariadb.org/$(PKG_NAME)-$(PKG_VERSION)/source
 
-PKG_HASH:=330d9e8273002fc92f0f3f3f9b08157a3cab1265a0f114adeb6235e4283a0d3e
+PKG_HASH:=75bf9b147a95d38160d01a73b098d50a1960563b46d16a235971fff64d99643c
 PKG_MAINTAINER:=Michal Hrusecky <Michal@Hrusecky.net>
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0-only
 PKG_LICENSE_FILES:=COPYING THIRDPARTY
 
 PKG_CPE_ID:=cpe:/a:mariadb:mariadb
@@ -288,7 +285,7 @@ define Package/mariadb-server-base
          $(MARIADB_COMMON_DEPENDS) \
          +libaio \
          +liblzma \
-         +libpcre \
+         +libpcre2 \
          +resolveip
   TITLE:=MariaDB database server base
   USERID:=mariadb=376:mariadb=376
@@ -560,11 +557,6 @@ ifeq ($(1),auth_pam)
          $(INSTALL_DATA) \
                  $(PKG_INSTALL_DIR)/lib/security/pam_user_map.so \
                                          $$(1)/lib/security
-endif
-ifeq ($(1),ha_spider)
-         $(INSTALL_DIR) $$(1)$(SHARE_DIR)
-         $(INSTALL_DATA) $(PKG_INSTALL_DIR)$(SHARE_DIR)/install_spider.sql \
-                 $$(1)$(SHARE_DIR)
 endif
   endef
   $$(eval $$(call BuildPackage,mariadb-server-plugin-$(subst _,-,$(1))))
index 0a64dc6f3bb453763df3360f4cf0cb4465d88aef..1e20f4f92818e92402202f02d515aa9a18d5865c 100644 (file)
@@ -1,6 +1,6 @@
 --- a/scripts/mysql_install_db.sh
 +++ b/scripts/mysql_install_db.sh
-@@ -418,7 +418,7 @@ fi
+@@ -419,7 +419,7 @@ fi
  
  
  # Try to determine the hostname
diff --git a/utils/mariadb/patches/110-pcre.cmake.patch b/utils/mariadb/patches/110-pcre.cmake.patch
deleted file mode 100644 (file)
index 2d370a3..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= <ondrej@debian.org>
-Date: Wed, 22 Nov 2017 06:05:45 +0000
-Subject: Revert to using system pcre library
-
----
- cmake/pcre.cmake | 16 ++--------------
- 1 file changed, 2 insertions(+), 14 deletions(-)
-
---- a/cmake/pcre.cmake
-+++ b/cmake/pcre.cmake
-@@ -1,23 +1,11 @@
--INCLUDE (CheckCSourceRuns)
--
- SET(WITH_PCRE "auto" CACHE STRING
-    "Which pcre to use (possible values are 'bundled', 'system', or 'auto')")
- MACRO (CHECK_PCRE)
-   IF(WITH_PCRE STREQUAL "system" OR WITH_PCRE STREQUAL "auto")
--    CHECK_LIBRARY_EXISTS(pcre pcre_stack_guard "" HAVE_PCRE_STACK_GUARD)
--    IF(NOT CMAKE_CROSSCOMPILING)
--      SET(CMAKE_REQUIRED_LIBRARIES "pcre")
--      CHECK_C_SOURCE_RUNS("
--        #include <pcre.h>
--        int main() {
--        return -pcre_exec(NULL, NULL, NULL, -999, -999, 0, NULL, 0) < 256;
--        }"  PCRE_STACK_SIZE_OK)
--      SET(CMAKE_REQUIRED_LIBRARIES)
--    ENDIF()
-+    CHECK_LIBRARY_EXISTS(pcre pcre_stack_guard "" HAVE_PCRE)
-   ENDIF()
--  IF(NOT HAVE_PCRE_STACK_GUARD OR NOT PCRE_STACK_SIZE_OK OR
--     WITH_PCRE STREQUAL "bundled")
-+  IF(NOT HAVE_PCRE OR WITH_PCRE STREQUAL "bundled")
-     IF (WITH_PCRE STREQUAL "system")
-       MESSAGE(FATAL_ERROR "system pcre is not found or unusable")
-     ENDIF()
index 11c834d692684294398520b73efd8bca8121f1b4..80b5a2e77a7b540adb9f61bc71461f1e4c6f8a7d 100644 (file)
@@ -9,7 +9,7 @@ Date:   Fri Dec 21 19:14:04 2018 +0200
 
 --- a/configure.cmake
 +++ b/configure.cmake
-@@ -863,7 +863,25 @@ int main()
+@@ -866,7 +866,25 @@ int main()
    long long int *ptr= &var;
    return (int)__atomic_load_n(ptr, __ATOMIC_SEQ_CST);
  }"
@@ -38,8 +38,8 @@ Date:   Fri Dec 21 19:14:04 2018 +0200
    SET(HAVE_valgrind 1)
 --- a/mysys/CMakeLists.txt
 +++ b/mysys/CMakeLists.txt
-@@ -78,6 +78,10 @@ TARGET_LINK_LIBRARIES(mysys dbug strings
-  ${LIBNSL} ${LIBM} ${LIBRT} ${CMAKE_DL_LIBS} ${LIBSOCKET} ${LIBEXECINFO} ${CRC32_LIBRARY})
+@@ -168,6 +168,10 @@ TARGET_LINK_LIBRARIES(mysys dbug strings
+  ${LIBNSL} ${LIBM} ${LIBRT} ${CMAKE_DL_LIBS} ${LIBSOCKET} ${LIBEXECINFO})
  DTRACE_INSTRUMENT(mysys)
  
 +IF (HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC)
@@ -51,8 +51,8 @@ Date:   Fri Dec 21 19:14:04 2018 +0200
  ENDIF(HAVE_BFD_H)
 --- a/sql/CMakeLists.txt
 +++ b/sql/CMakeLists.txt
-@@ -191,6 +191,10 @@ ELSE()
-   SET(MYSQLD_SOURCE main.cc ${DTRACE_PROBES_ALL})
+@@ -324,6 +324,10 @@ IF(WITH_MYSQLD_LDFLAGS)
+      "${MYSQLD_LINK_FLAGS} ${WITH_MYSQLD_LDFLAGS}")
  ENDIF()
  
 +IF (HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC)
@@ -60,5 +60,5 @@ Date:   Fri Dec 21 19:14:04 2018 +0200
 +ENDIF()
 +
  
IF(MSVC AND NOT WITHOUT_DYNAMIC_PLUGINS)
FIND_PACKAGE(BISON 2.0)
  
index 46431d36f4a30b66a76a7457b22acb0780a7261a..3ce75d5a56104dd923709ffdd72bc2e128eeef9b 100644 (file)
@@ -23,7 +23,7 @@
  /* High priority */
  #define HMT_high() asm volatile("or 3,3,3")
  #else
-@@ -80,7 +79,7 @@ static inline void MY_RELAX_CPU(void)
+@@ -81,7 +80,7 @@ static inline void MY_RELAX_CPU(void)
    __asm__ __volatile__ ("pause");
  #endif
  #elif defined(_ARCH_PWR8)
  #elif defined __GNUC__ && (defined __arm__ || defined __aarch64__)
    /* Mainly, prevent the compiler from optimizing away delay loops */
    __asm__ __volatile__ ("":::"memory");
---- a/storage/tokudb/PerconaFT/portability/toku_time.h
-+++ b/storage/tokudb/PerconaFT/portability/toku_time.h
-@@ -124,7 +124,7 @@ static inline tokutime_t toku_time_now(v
-     __asm __volatile__ ("mrs %[rt], cntvct_el0" : [rt] "=r" (result));
-     return result;
- #elif defined(__powerpc__)
--    return __ppc_get_timebase();
-+    return __builtin_ppc_get_timebase();
- #else
- #error No timer implementation for this platform
- #endif
index 5a2c30dcf1f5eb45cb24608ab2ffdef68a09f0a6..1971c2adcd4c76199be51e0858b49e79fc893b6b 100644 (file)
@@ -14,8 +14,8 @@
 +  fi
    pamtooldir=$plugindir
  # relative from where the script was run for a relocatable install
- elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mysqld"
-@@ -477,7 +485,9 @@ do
+ elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mariadbd"
+@@ -478,7 +486,9 @@ do
    fi
  done
  
@@ -26,7 +26,7 @@
  then
    if test -z "$srcdir" -a "$in_rpm" -eq 0
    then
-@@ -498,6 +508,10 @@ then
+@@ -499,6 +509,10 @@ then
          echo
      fi
    fi
index 8b74e0308f251e69fe73548ba3f697f569512f7e..69d09c01776032488a0e372ba7f0dc75b61d7c30 100644 (file)
@@ -1,6 +1,6 @@
 --- a/scripts/mysqld_safe.sh
 +++ b/scripts/mysqld_safe.sh
-@@ -244,7 +244,7 @@ wsrep_recover_position() {
+@@ -246,7 +246,7 @@ wsrep_recover_position() {
      return 1
    fi
  
@@ -9,7 +9,7 @@
  
    local wr_options="--disable-log-error  --pid-file='$wr_pidfile'"
  
-@@ -664,7 +664,7 @@ then
+@@ -667,7 +667,7 @@ then
          * ) err_log="$DATADIR/$err_log" ;;
        esac
      else
@@ -18,7 +18,7 @@
      fi
    fi
  
-@@ -743,7 +743,7 @@ fi
+@@ -746,7 +746,7 @@ fi
  
  if test -z "$pid_file"
  then
index d7ed569f7135d9bf0c76d0bf84bcdc96b97f49a1..1ab55a9cf69d056de0ff811ee333daf008c72e85 100644 (file)
@@ -1,6 +1,6 @@
 --- a/support-files/CMakeLists.txt
 +++ b/support-files/CMakeLists.txt
-@@ -61,7 +61,7 @@ IF(UNIX)
+@@ -61,7 +61,7 @@ IF(UNIX AND NOT WITHOUT_SERVER)
      INSTALL(FILES magic DESTINATION ${inst_location} COMPONENT SupportFiles)
      INSTALL(DIRECTORY policy DESTINATION ${inst_location} COMPONENT SupportFiles)
      FIND_PROGRAM(CHECKMODULE checkmodule)
diff --git a/utils/mariadb/patches/210-libmariadb-fix-cmake.patch b/utils/mariadb/patches/210-libmariadb-fix-cmake.patch
deleted file mode 100644 (file)
index 2b28bfb..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/libmariadb/cmake/ConnectorName.cmake
-+++ b/libmariadb/cmake/ConnectorName.cmake
-@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
-     SET(MACHINE_NAME "x64")
-   ELSE()
-     SET(MACHINE_NAME "32")
--  END()
-+  ENDIF()
- ENDIF()
- SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}")