[arch-commits] Commit in percona-server/trunk (4 files)
Massimiliano Torromeo
mtorromeo at archlinux.org
Wed Aug 2 10:05:52 UTC 2017
Date: Wednesday, August 2, 2017 @ 10:05:51
Author: mtorromeo
Revision: 247412
upgpkg: percona-server 5.7.18_16-1
Added:
percona-server/trunk/gcc7-fixes.patch
percona-server/trunk/rocksdb-systemdlibs.patch
Modified:
percona-server/trunk/PKGBUILD
Deleted:
percona-server/trunk/boolcheck.patch
---------------------------+
PKGBUILD | 35 +++++++++++++++----------------
boolcheck.patch | 13 -----------
gcc7-fixes.patch | 26 +++++++++++++++++++++++
rocksdb-systemdlibs.patch | 49 ++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 92 insertions(+), 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-02 08:41:13 UTC (rev 247411)
+++ PKGBUILD 2017-08-02 10:05:51 UTC (rev 247412)
@@ -3,13 +3,13 @@
pkgbase=percona-server
pkgname=('libperconaserverclient' 'percona-server-clients' 'percona-server')
-pkgver=5.7.18_15
+pkgver=5.7.18_16
_boost_ver=1.59.0
_pkgver=${pkgver/_/-}
_myver=${pkgver/_rel*}
pkgrel=1
arch=('i686' 'x86_64')
-makedepends=('cmake' 'zlib' 'libaio' 'systemd-tools' 'valgrind' 'pam' 'numactl' 'jemalloc')
+makedepends=('cmake' 'zlib' 'lz4' 'zstd' 'libaio' 'systemd-tools' 'valgrind' 'pam' 'numactl' 'jemalloc' 'openssl')
license=('GPL')
url="https://www.percona.com/software/mysql-database/percona-server"
source=("https://www.percona.com/downloads/Percona-Server-${pkgver%.*_*}/Percona-Server-$_pkgver/source/tarball/percona-server-$_pkgver.tar.gz"
@@ -16,19 +16,15 @@
"https://sourceforge.net/projects/boost/files/boost/${_boost_ver}/boost_${_boost_ver//./_}.tar.gz"
'my.cnf'
'mysql-user.conf'
- boolcheck.patch)
-sha256sums=('a95d5c79122a889300855483426483975445a247c4b3f9ed2a9a54f4b4cd60bc'
+ 'gcc7-fixes.patch'
+ 'rocksdb-systemdlibs.patch')
+sha256sums=('dc80833354675956fe90e01316fcd46b17cd23a8f17d9f30b9ef18e1a9bd2ae1'
'47f11c8844e579d02691a607fbd32540104a9ac7a2534a8ddaef50daf502baac'
'ae451839c368f0db25a63bb0a6a890194897a8e74818bd4245140933c29e5f83'
'e638a2657085f15b6728f43c1fd6aa551b27608fbf6b435e33afd3606a0cfb0e'
- '19ec30af8d0a9ccf8d8eeb1147cda3f7583f8e6bc329d0e353bed99e990aa5bb')
+ '0d6010539e54752bc9995e569bb813625369fef05be70d9542f0acb70497894a'
+ 'aef17e069ea417dad053594d0dd919b2daf75cf5ae10da3743c3e293ccd533bf')
-# This ships with bundled SSL library until proper support for openssl 1.1.0
-# is available.
-# TODO: Switch back to system openssl
-# -> add 'openssl' to dependencies
-# -> switch to '-DWITH_SSL=system' in cmake command
-
prepare() {
cd $pkgbase-$_pkgver
rm -v sql/sql_yacc.{cc,h}
@@ -35,10 +31,11 @@
sed 's/${fullhostname}/"archbuild"/' -i storage/tokudb/PerconaFT/cmake_modules/TokuSetupCTest.cmake
sed 's/-Werror//g' -i \
- storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake \
- plugin/tokudb-backup-plugin/Percona-TokuBackup/backup/CMakeLists.txt
+ storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake \
+ plugin/tokudb-backup-plugin/Percona-TokuBackup/backup/CMakeLists.txt
- patch -p1 -i "$srcdir"/boolcheck.patch
+ patch -p1 -i "$srcdir"/gcc7-fixes.patch
+ patch -p1 -i "$srcdir"/rocksdb-systemdlibs.patch
}
build() {
@@ -67,7 +64,8 @@
-DINSTALL_DOCDIR=share/mysql/docs \
-DINSTALL_SHAREDIR=share/mysql \
-DWITH_ZLIB=system \
- -DWITH_SSL=bundled \
+ -DWITH_LZ4=system \
+ -DWITH_SSL=system \
-DWITH_LIBWRAP=OFF \
-DCMAKE_EXE_LINKER_FLAGS='-ljemalloc' \
-DWITH_UNIT_TESTS=OFF \
@@ -83,6 +81,7 @@
-DWITH_BLACKHOLE_STORAGE_ENGINE=ON \
-DWITH_FEDERATED_STORAGE_ENGINE=OFF \
-DWITH_EXAMPLE_STORAGE_ENGINE=OFF \
+ -DWITH_ROCKSDB=1 \
-DWITH_SYSTEMD=1 \
-DCMAKE_C_FLAGS="-fPIC $CFLAGS -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer -fno-delete-null-pointer-checks" \
-DCMAKE_CXX_FLAGS="-fPIC $CXXFLAGS -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-delete-null-pointer-checks -Wno-error=nonnull-compare -Wno-deprecated-declarations -Wno-misleading-indentation -Wno-maybe-uninitialized" \
@@ -95,7 +94,7 @@
package_libperconaserverclient() {
pkgdesc='Percona Server client libraries'
- depends=('zlib')
+ depends=('zlib' 'openssl')
cd build
for dir in include libmysql libmysqld libservices; do
@@ -112,7 +111,7 @@
package_percona-server-clients() {
pkgdesc='Percona Server client tools'
- depends=('libperconaserverclient' 'zlib' 'jemalloc' 'readline')
+ depends=('libperconaserverclient' 'zlib' 'lz4' 'jemalloc' 'readline')
conflicts=('mysql-clients')
provides=("mysql-clients=$_myver" "mariadb-clients=$_myver")
@@ -132,7 +131,7 @@
package_percona-server() {
pkgdesc='Drop-in replacement for MySQL that provides improved performance, diagnostics, instrumentation and TokuDB storage engine'
backup=('etc/mysql/my.cnf')
- depends=('libaio' 'systemd-tools' 'pam' 'jemalloc' 'numactl')
+ depends=('libaio' 'systemd-tools' 'pam' 'jemalloc' 'numactl' 'lz4' 'zstd' 'openssl')
optdepends=('perl-dbd-mysql')
conflicts=('mysql')
provides=("mysql=$_myver" "mariadb=$_myver")
Deleted: boolcheck.patch
===================================================================
--- boolcheck.patch 2017-08-02 08:41:13 UTC (rev 247411)
+++ boolcheck.patch 2017-08-02 10:05:51 UTC (rev 247412)
@@ -1,13 +0,0 @@
-diff --git a/storage/innobase/row/row0sel.cc b/storage/innobase/row/row0sel.cc
-index 924ccd3..d5ce802 100644
---- a/storage/innobase/row/row0sel.cc
-+++ b/storage/innobase/row/row0sel.cc
-@@ -5221,7 +5221,7 @@ rec_loop:
- reporting due to search views etc. */
- if (prev_rec != NULL
- && prebuilt->m_mysql_handler->end_range != NULL
-- && prebuilt->idx_cond == false && end_loop >= 100) {
-+ && !prebuilt->idx_cond && end_loop >= 100) {
-
- dict_index_t* key_index = prebuilt->index;
- bool clust_templ_for_sec = false;
Added: gcc7-fixes.patch
===================================================================
--- gcc7-fixes.patch (rev 0)
+++ gcc7-fixes.patch 2017-08-02 10:05:51 UTC (rev 247412)
@@ -0,0 +1,26 @@
+diff --git a/storage/innobase/row/row0sel.cc b/storage/innobase/row/row0sel.cc
+index 924ccd3..d5ce802 100644
+--- a/storage/innobase/row/row0sel.cc
++++ b/storage/innobase/row/row0sel.cc
+@@ -5221,7 +5221,7 @@ rec_loop:
+ reporting due to search views etc. */
+ if (prev_rec != NULL
+ && prebuilt->m_mysql_handler->end_range != NULL
+- && prebuilt->idx_cond == false && end_loop >= 100) {
++ && !prebuilt->idx_cond && end_loop >= 100) {
+
+ dict_index_t* key_index = prebuilt->index;
+ bool clust_templ_for_sec = false;
+diff --git a/sql-common/client_authentication.cc b/sql-common/client_authentication.cc
+index eaeb2d4..035ecd2 100644
+--- a/sql-common/client_authentication.cc
++++ b/sql-common/client_authentication.cc
+@@ -84,7 +84,7 @@ RSA *rsa_init(MYSQL *mysql)
+
+ if (mysql->options.extension != NULL &&
+ mysql->options.extension->server_public_key_path != NULL &&
+- mysql->options.extension->server_public_key_path != '\0')
++ mysql->options.extension->server_public_key_path[0] != '\0')
+ {
+ pub_key_file= fopen(mysql->options.extension->server_public_key_path,
+ "r");
Added: rocksdb-systemdlibs.patch
===================================================================
--- rocksdb-systemdlibs.patch (rev 0)
+++ rocksdb-systemdlibs.patch 2017-08-02 10:05:51 UTC (rev 247412)
@@ -0,0 +1,49 @@
+diff --git a/storage/rocksdb/CMakeLists.txt b/storage/rocksdb/CMakeLists.txt
+index ab4f5e9..3b13c70 100644
+--- a/storage/rocksdb/CMakeLists.txt
++++ b/storage/rocksdb/CMakeLists.txt
+@@ -56,35 +56,11 @@ EXECUTE_PROCESS(
+ # split the list into lines
+ STRING(REGEX MATCHALL "[^\n]+" ROCKSDB_LIB_SOURCES ${SCRIPT_OUTPUT})
+
+-# add bundled compression code
+-SET(ROCKSDB_LIB_SOURCES
+- ${ROCKSDB_LIB_SOURCES}
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lz4/lib/lz4.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lz4/lib/lz4hc.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lz4/lib/lz4frame.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/entropy_common.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/error_private.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/fse_decompress.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/pool.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/threading.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/xxhash.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/zstd_common.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/compress/fse_compress.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/compress/huf_compress.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/compress/zstd_compress.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/compress/zstdmt_compress.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/decompress/huf_decompress.c
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/decompress/zstd_decompress.c
+-)
+-
+ INCLUDE_DIRECTORIES(
+ ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb
+ ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/include/rocksdb
+ ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/third-party/gtest-1.7.0/fused-src
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lz4/lib
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib
+- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common
+ )
+
+ ADD_DEFINITIONS(-DROCKSDB_PLATFORM_POSIX -DROCKSDB_LIB_IO_POSIX -DOS_LINUX
+@@ -116,7 +92,7 @@ SET(ROCKSDB_SOURCES
+ ${ROCKSDB_LIB_SOURCES}
+ )
+
+-SET(rocksdb_static_libs ${rocksdb_static_libs} ${ZLIB_LIBRARY} "-lrt")
++SET(rocksdb_static_libs ${rocksdb_static_libs} ${ZLIB_LIBRARY} "-lrt -llz4 -lzstd")
+
+ MYSQL_ADD_PLUGIN(rocksdb ${ROCKSDB_SOURCES} STORAGE_ENGINE DEFAULT MODULE_ONLY
+ LINK_LIBRARIES ${rocksdb_static_libs}
More information about the arch-commits
mailing list