From 20e951833874bc6f36cb72387151075352f38e1f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 23 Jul 2018 01:26:38 +0200 Subject: [PATCH] mariadb: Update from 10.3.7 to 10.3.8 --- packages/mariadb/CMakeLists.txt.patch | 10 +++++----- packages/mariadb/build.sh | 7 ++++--- packages/mariadb/cmake-install_layout.cmake.patch | 11 +++++++++++ packages/mariadb/etc-my.cnf.patch | 12 ------------ packages/mariadb/sql-CMakeLists.txt.patch | 11 +++++++++++ 5 files changed, 31 insertions(+), 20 deletions(-) create mode 100644 packages/mariadb/cmake-install_layout.cmake.patch create mode 100644 packages/mariadb/sql-CMakeLists.txt.patch diff --git a/packages/mariadb/CMakeLists.txt.patch b/packages/mariadb/CMakeLists.txt.patch index 41141380e..ba0372357 100644 --- a/packages/mariadb/CMakeLists.txt.patch +++ b/packages/mariadb/CMakeLists.txt.patch @@ -1,11 +1,11 @@ -diff -u -r ../mariadb-10.2.7/CMakeLists.txt ./CMakeLists.txt ---- ../mariadb-10.2.7/CMakeLists.txt 2017-07-10 10:53:26.000000000 +0000 -+++ ./CMakeLists.txt 2017-08-09 23:44:24.691181837 +0000 -@@ -386,7 +386,6 @@ +diff -u -r ../mariadb-10.3.8/CMakeLists.txt ./CMakeLists.txt +--- ../mariadb-10.3.8/CMakeLists.txt 2018-07-02 07:34:08.000000000 +0000 ++++ ./CMakeLists.txt 2018-07-03 11:15:40.073729412 +0000 +@@ -397,7 +397,6 @@ OPTION (WITH_EMBEDDED_SERVER "Compile MySQL with embedded server" OFF) IF(WITH_EMBEDDED_SERVER) ADD_SUBDIRECTORY(libmysqld) - ADD_SUBDIRECTORY(libmysqld/examples) + ADD_SUBDIRECTORY(unittest/embedded) ENDIF(WITH_EMBEDDED_SERVER) - IF(WITH_WSREP) diff --git a/packages/mariadb/build.sh b/packages/mariadb/build.sh index bb469d418..b72505202 100644 --- a/packages/mariadb/build.sh +++ b/packages/mariadb/build.sh @@ -1,14 +1,14 @@ TERMUX_PKG_HOMEPAGE=https://mariadb.org TERMUX_PKG_DESCRIPTION="A drop-in replacement for mysql server" -TERMUX_PKG_VERSION=10.3.7 -TERMUX_PKG_REVISION=1 -TERMUX_PKG_SHA256=e990afee6ae7cf9ac40154d0e150be359385dd6ef408ad80ea30df34e2c164cf +TERMUX_PKG_VERSION=10.3.8 +TERMUX_PKG_SHA256=30bec17514d12d811a05757be46bd41724df28002cdec550d5c757b0b3f31ab8 TERMUX_PKG_SRCURL=https://ftp.osuosl.org/pub/mariadb/mariadb-$TERMUX_PKG_VERSION/source/mariadb-$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -DBISON_EXECUTABLE=`which bison` -DGETCONF=`which getconf` -DBUILD_CONFIG=mysql_release -DCAT_EXECUTABLE=`which cat` +-DGIT_EXECUTABLE=`which git` -DGSSAPI_FOUND=NO -DGRN_WITH_LZ4=no -DENABLED_LOCAL_INFILE=ON @@ -42,6 +42,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -DWITH_INNODB_LZO=OFF -DWITH_INNODB_SNAPPY=OFF -DWITH_UNIT_TESTS=OFF +-DINSTALL_SYSCONFDIR=$TERMUX_PREFIX/etc " TERMUX_PKG_HOSTBUILD=true TERMUX_PKG_DEPENDS="liblzma, ncurses, libedit, openssl, pcre, libcrypt, libandroid-support, libandroid-glob" diff --git a/packages/mariadb/cmake-install_layout.cmake.patch b/packages/mariadb/cmake-install_layout.cmake.patch new file mode 100644 index 000000000..39da2f7f2 --- /dev/null +++ b/packages/mariadb/cmake-install_layout.cmake.patch @@ -0,0 +1,11 @@ +diff -u -r ../mariadb-10.3.8/cmake/install_layout.cmake ./cmake/install_layout.cmake +--- ../mariadb-10.3.8/cmake/install_layout.cmake 2018-07-02 09:34:08.000000000 +0200 ++++ ./cmake/install_layout.cmake 2018-07-22 23:28:13.863668234 +0200 +@@ -172,7 +172,6 @@ + SET(INSTALL_SBINDIR_DEB "sbin") + SET(INSTALL_SCRIPTDIR_DEB "bin") + SET(INSTALL_SYSCONFDIR_DEB "/etc") +-SET(INSTALL_SYSCONF2DIR_DEB "/etc/mysql/conf.d") + # + SET(INSTALL_LIBDIR_DEB "lib") + SET(INSTALL_PLUGINDIR_DEB "lib/mysql/plugin") diff --git a/packages/mariadb/etc-my.cnf.patch b/packages/mariadb/etc-my.cnf.patch index 0330df5eb..30ecbe7df 100644 --- a/packages/mariadb/etc-my.cnf.patch +++ b/packages/mariadb/etc-my.cnf.patch @@ -1,15 +1,3 @@ -diff -u -r ./cmake/install_layout.cmake ../src.orig/cmake/install_layout.cmake ---- ./cmake/install_layout.cmake 2017-10-30 08:10:43.000000000 +0000 -+++ ../src.orig/cmake/install_layout.cmake 2017-12-09 20:12:27.748617252 +0000 -@@ -135,7 +135,7 @@ - SET(INSTALL_SBINDIR_RPM "sbin") - SET(INSTALL_SCRIPTDIR_RPM "bin") - SET(INSTALL_SYSCONFDIR_RPM "/etc") --SET(INSTALL_SYSCONF2DIR_RPM "/etc/my.cnf.d") -+SET(INSTALL_SYSCONF2DIR_RPM "@TERMUX_PREFIX@/etc/my.cnf.d") - # - IF(CMAKE_SIZEOF_VOID_P EQUAL 8) - SET(INSTALL_LIBDIR_RPM "lib64") diff -u -r ./support-files/mysql-multi.server.sh ../src.orig/support-files/mysql-multi.server.sh --- ./support-files/mysql-multi.server.sh 2017-10-30 08:10:49.000000000 +0000 +++ ../src.orig/support-files/mysql-multi.server.sh 2017-12-09 20:12:10.456623540 +0000 diff --git a/packages/mariadb/sql-CMakeLists.txt.patch b/packages/mariadb/sql-CMakeLists.txt.patch new file mode 100644 index 000000000..ec03fc1aa --- /dev/null +++ b/packages/mariadb/sql-CMakeLists.txt.patch @@ -0,0 +1,11 @@ +diff -u -r ../mariadb-10.3.8/sql/CMakeLists.txt ./sql/CMakeLists.txt +--- ../mariadb-10.3.8/sql/CMakeLists.txt 2018-07-02 07:34:11.000000000 +0000 ++++ ./sql/CMakeLists.txt 2018-07-22 21:00:22.913542838 +0000 +@@ -388,6 +388,7 @@ + DEPENDS + ${CMAKE_CURRENT_BINARY_DIR}/lex_hash.h + ${CMAKE_CURRENT_BINARY_DIR}/lex_token.h ++ ${CMAKE_CURRENT_BINARY_DIR}/sql_yacc.cc + ${CMAKE_CURRENT_BINARY_DIR}/sql_yacc_ora.cc + ) +