Accepting request 828938 from home:kstreitova:branches:server:database

- Update to 10.4.14 [bsc#1175596]
  * release notes and changelog:
    https://mariadb.com/kb/en/library/mariadb-10414-release-notes
    https://mariadb.com/kb/en/library/mariadb-10414-changelog
  * fixes for the following security vulnerabilities: none
  * the update fixes [bsc#1174559] and [bsc#1173516] (MariaDB crashes
    at db_sync from Keystone)
- refresh mariadb-10.2.4-fortify-and-O.patch
- fix patch sequence
- run spec-cleaner
- build galera for openSUSE only
- update suse_skipped_tests.list
- tune the testsuite to avoid randomly failing tests

OBS-URL: https://build.opensuse.org/request/show/828938
OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=258
This commit is contained in:
Kristyna Streitova 2020-08-24 21:33:18 +00:00 committed by Git OBS Bridge
parent 4d3e511b12
commit a7015b1d07
8 changed files with 76 additions and 55 deletions

View File

@ -9,9 +9,9 @@ Index: CMakeLists.txt
=================================================================== ===================================================================
--- CMakeLists.txt.orig --- CMakeLists.txt.orig
+++ CMakeLists.txt +++ CMakeLists.txt
@@ -238,7 +238,6 @@ IF(SECURITY_HARDENED AND NOT WITH_ASAN A @@ -242,7 +242,6 @@ IF(SECURITY_HARDENED AND NOT WITH_ASAN A
MY_CHECK_AND_SET_COMPILER_FLAG("-pie -fPIC") MY_CHECK_AND_SET_COMPILER_FLAG("-pie -fPIC")
MY_CHECK_AND_SET_COMPILER_FLAG("-Wl,-z,relro,-z,now") MY_CHECK_AND_SET_LINKER_FLAG("-Wl,-z,relro,-z,now")
MY_CHECK_AND_SET_COMPILER_FLAG("-fstack-protector --param=ssp-buffer-size=4") MY_CHECK_AND_SET_COMPILER_FLAG("-fstack-protector --param=ssp-buffer-size=4")
- MY_CHECK_AND_SET_COMPILER_FLAG("-D_FORTIFY_SOURCE=2" RELEASE RELWITHDEBINFO) - MY_CHECK_AND_SET_COMPILER_FLAG("-D_FORTIFY_SOURCE=2" RELEASE RELWITHDEBINFO)
ENDIF() ENDIF()
@ -33,7 +33,7 @@ Index: storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake
) )
endif () endif ()
@@ -102,23 +100,23 @@ set_cflags_if_supported( @@ -93,23 +91,23 @@ endif ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions")
## set extra debugging flags and preprocessor definitions ## set extra debugging flags and preprocessor definitions
@ -65,7 +65,7 @@ Index: storage/tokudb/PerconaFT/cmake_modules/TokuSetupCompiler.cmake
else () else ()
if (APPLE) if (APPLE)
set(FLTO_OPTS "-fwhole-program") set(FLTO_OPTS "-fwhole-program")
@@ -126,10 +124,10 @@ else () @@ -117,10 +115,10 @@ else ()
set(FLTO_OPTS "-fuse-linker-plugin") set(FLTO_OPTS "-fuse-linker-plugin")
endif() endif()
# we overwrite this because the default passes -DNDEBUG and we don't want that # we overwrite this because the default passes -DNDEBUG and we don't want that

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:45bbbb12d1de8febd9edf630e940c23cf14efd60570c743b268069516a5d91df
size 80608459

View File

@ -1,6 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCXrlggQAKCRDLywgqG7lD
25PwAJwIvy0vHelea4DgezeXxfVoYR5vdQCg8HwZZpKXEfC0s4FEjxLSw3cjdsI=
=Dl39
-----END PGP SIGNATURE-----

3
mariadb-10.4.14.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f92fcd59e0122461482f28c67c5ea01c7cf6979494a571db68074396864c86fc
size 80789865

View File

@ -0,0 +1,6 @@
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCXy2clQAKCRDLywgqG7lD
2+m7AJ9R9x3CftzhU4Pnco28oFMhYpV9IgCg5QWuTZ5EzhSu20eIpo7LO2lxJkU=
=WF1y
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Wed Aug 12 16:43:40 UTC 2020 - Kristyna Streitova <kstreitova@suse.com>
- Update to 10.4.14 [bsc#1175596]
* release notes and changelog:
https://mariadb.com/kb/en/library/mariadb-10414-release-notes
https://mariadb.com/kb/en/library/mariadb-10414-changelog
* fixes for the following security vulnerabilities: none
* the update fixes [bsc#1174559] and [bsc#1173516] (MariaDB crashes
at db_sync from Keystone)
- refresh mariadb-10.2.4-fortify-and-O.patch
- fix patch sequence
- run spec-cleaner
- build galera for openSUSE only
- update suse_skipped_tests.list
- tune the testsuite to avoid randomly failing tests
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 3 07:49:32 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org> Mon Aug 3 07:49:32 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -42,6 +42,11 @@
%define with_mroonga 0 %define with_mroonga 0
%define with_rocksdb 0 %define with_rocksdb 0
%endif %endif
%if 0%{?is_opensuse}
%define with_galera 1
%else
%define with_galera 0
%endif
# Define python interpreter version # Define python interpreter version
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
%define python_path %{_bindir}/python3 %define python_path %{_bindir}/python3
@ -51,7 +56,7 @@
# Build with cracklib plugin when cracklib-dict-full >= 2.9.0 is available # Build with cracklib plugin when cracklib-dict-full >= 2.9.0 is available
%define with_cracklib_plugin 0 %define with_cracklib_plugin 0
Name: mariadb Name: mariadb
Version: 10.4.13 Version: 10.4.14
Release: 0 Release: 0
Summary: Server part of MariaDB Summary: Server part of MariaDB
License: SUSE-GPL-2.0-with-FLOSS-exception License: SUSE-GPL-2.0-with-FLOSS-exception
@ -73,13 +78,13 @@ Source19: macros.mariadb-test
Source50: suse_skipped_tests.list Source50: suse_skipped_tests.list
Source51: mariadb-rpmlintrc Source51: mariadb-rpmlintrc
Patch1: mariadb-10.2.4-logrotate.patch Patch1: mariadb-10.2.4-logrotate.patch
Patch3: mariadb-10.1.1-mysqld_multi-features.patch Patch2: mariadb-10.1.1-mysqld_multi-features.patch
Patch7: mariadb-10.0.15-logrotate-su.patch Patch3: mariadb-10.0.15-logrotate-su.patch
Patch8: mariadb-10.2.4-fortify-and-O.patch Patch4: mariadb-10.2.4-fortify-and-O.patch
Patch9: mariadb-10.2.19-link-and-enable-c++11-atomics.patch Patch5: mariadb-10.2.19-link-and-enable-c++11-atomics.patch
Patch10: mariadb-10.4.12-harden_setuid.patch Patch6: mariadb-10.4.12-harden_setuid.patch
Patch11: mariadb-10.4.12-fix-install-db.patch Patch7: mariadb-10.4.12-fix-install-db.patch
Patch12: mariadb-10.5-fix-prevent-optimizing-out-buf-argument-in-ch.patch Patch8: mariadb-10.5-fix-prevent-optimizing-out-buf-argument-in-ch.patch
# needed for bison SQL parser and wsrep API # needed for bison SQL parser and wsrep API
BuildRequires: bison BuildRequires: bison
BuildRequires: cmake BuildRequires: cmake
@ -112,6 +117,8 @@ BuildRequires: procps
# Some tests and myrocks_hotbackup script need python3 # Some tests and myrocks_hotbackup script need python3
BuildRequires: python3 BuildRequires: python3
BuildRequires: sqlite BuildRequires: sqlite
BuildRequires: sysuser-shadow
BuildRequires: sysuser-tools
BuildRequires: tcpd-devel BuildRequires: tcpd-devel
# Tests requires time and ps and some perl modules # Tests requires time and ps and some perl modules
# Keep in sync with Requires of mysql-testsuite # Keep in sync with Requires of mysql-testsuite
@ -133,11 +140,6 @@ BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes) BuildRequires: perl(Time::HiRes)
# Do not ever switch away from BuildRequires: pkgconfig(libsystemd); BuildRequires systemd/systemd-devel causes build cycles # Do not ever switch away from BuildRequires: pkgconfig(libsystemd); BuildRequires systemd/systemd-devel causes build cycles
BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libsystemd)
BuildRequires: sysuser-shadow
BuildRequires: sysuser-tools
# Require mysql user
Requires(pre): user(mysql)
Requires: user(mysql)
#!BuildIgnore: user(mysql) #!BuildIgnore: user(mysql)
# Required by rcmysql # Required by rcmysql
Requires: %{name}-client Requires: %{name}-client
@ -148,7 +150,10 @@ Requires: /bin/hostname
Requires: perl-base Requires: perl-base
# myrocks_hotbackup needs MySQLdb - if we want to use it under python3, we need python3-mysqlclient # myrocks_hotbackup needs MySQLdb - if we want to use it under python3, we need python3-mysqlclient
Requires: python3-mysqlclient Requires: python3-mysqlclient
Requires: user(mysql)
Requires(post): permissions Requires(post): permissions
# Require mysql user
Requires(pre): user(mysql)
Recommends: logrotate Recommends: logrotate
Conflicts: mariadb-server Conflicts: mariadb-server
Conflicts: mysql Conflicts: mysql
@ -243,6 +248,7 @@ Obsoletes: mysql-client < %{version}
%description client %description client
This package contains the standard clients for MariaDB. This package contains the standard clients for MariaDB.
%if 0%{with_galera} > 0
%package galera %package galera
Summary: The configuration files and scripts for galera replication Summary: The configuration files and scripts for galera replication
Group: Productivity/Databases/Tools Group: Productivity/Databases/Tools
@ -264,6 +270,7 @@ Conflicts: mariadb-tools <= 10.1.25
%description galera %description galera
This package contains configuration files and scripts that are This package contains configuration files and scripts that are
needed for running MariaDB Galera Cluster. needed for running MariaDB Galera Cluster.
%endif
%package errormessages %package errormessages
Summary: The error messages files required by server, client and libmariadbd Summary: The error messages files required by server, client and libmariadbd
@ -360,13 +367,13 @@ PAM module.
# Remove JAR files from the tarball (used for testing from the source) # Remove JAR files from the tarball (used for testing from the source)
find . -name "*.jar" -type f -exec rm --verbose -f {} \; find . -name "*.jar" -type f -exec rm --verbose -f {} \;
%patch1 %patch1
%patch2
%patch3 %patch3
%patch7 %patch4
%patch8 %patch5 -p1
%patch9 -p1 %patch6 -p1
%patch10 -p1 %patch7 -p1
%patch11 -p1 %patch8 -p1
%patch12 -p1
cp %{_sourcedir}/suse-test-run . cp %{_sourcedir}/suse-test-run .
@ -449,8 +456,10 @@ export CXXFLAGS="$CFLAGS -felide-constructors"
-DWITH_HANDLERSOCKET_STORAGE_ENGINE=1 \ -DWITH_HANDLERSOCKET_STORAGE_ENGINE=1 \
-DWITH_INNODB_MEMCACHED=ON \ -DWITH_INNODB_MEMCACHED=ON \
-DWITH_EMBEDDED_SERVER=true \ -DWITH_EMBEDDED_SERVER=true \
%if 0%{with_galera} > 0
-DWITH_WSREP=ON \ -DWITH_WSREP=ON \
-DWITH_INNODB_DISALLOW_WRITES=1 \ -DWITH_INNODB_DISALLOW_WRITES=1 \
%endif
-DWITH_LIBARCHIVE=ON \ -DWITH_LIBARCHIVE=ON \
-DWITH_MARIABACKUP=ON \ -DWITH_MARIABACKUP=ON \
-DCOMPILATION_COMMENT="MariaDB package" \ -DCOMPILATION_COMMENT="MariaDB package" \
@ -470,7 +479,7 @@ export CXXFLAGS="$CFLAGS -felide-constructors"
-DCMAKE_SKIP_RPATH=OFF \ -DCMAKE_SKIP_RPATH=OFF \
-DCMAKE_SKIP_INSTALL_RPATH=ON \ -DCMAKE_SKIP_INSTALL_RPATH=ON \
-Wno-dev "$@" .. -Wno-dev "$@" ..
make %{?_smp_mflags} %make_build
nm --numeric-sort sql/mysqld > sql/mysqld.sym nm --numeric-sort sql/mysqld > sql/mysqld.sym
cd .. cd ..
%sysusers_generate_pre %{SOURCE12} mysql %sysusers_generate_pre %{SOURCE12} mysql
@ -582,8 +591,10 @@ if [ -f scripts/mysqlaccess.conf ] ; then
echo '%config(noreplace) %attr(0640, root, mysql) %{_sysconfdir}/mysqlaccess.conf' >> mariadb-client.files echo '%config(noreplace) %attr(0640, root, mysql) %{_sysconfdir}/mysqlaccess.conf' >> mariadb-client.files
fi fi
%if 0%{with_galera} > 0
# mariadb-galera.files # mariadb-galera.files
filelist galera_new_cluster galera_recovery wsrep_sst_common wsrep_sst_mariabackup wsrep_sst_mysqldump wsrep_sst_rsync wsrep_sst_rsync_wan >mariadb-galera.files filelist galera_new_cluster galera_recovery wsrep_sst_common wsrep_sst_mariabackup wsrep_sst_mysqldump wsrep_sst_rsync wsrep_sst_rsync_wan >mariadb-galera.files
%endif
# mariadb-bench.files # mariadb-bench.files
filelist mysqlslap mariadb-slap >mariadb-bench.files filelist mysqlslap mariadb-slap >mariadb-bench.files
@ -668,9 +679,11 @@ ln -s mysqlcheck '%{buildroot}'%{_bindir}/mysqloptimize
rm -rf '%{buildroot}'%{_sysconfdir}/my.cnf.d rm -rf '%{buildroot}'%{_sysconfdir}/my.cnf.d
install -d -m 755 '%{buildroot}'%{_sysconfdir}/my.cnf.d install -d -m 755 '%{buildroot}'%{_sysconfdir}/my.cnf.d
%if 0%{with_galera} > 0
# Install galera config file and script # Install galera config file and script
install -p -m 644 build/support-files/wsrep.cnf %{buildroot}%{_sysconfdir}/my.cnf.d/50-galera.cnf install -p -m 644 build/support-files/wsrep.cnf %{buildroot}%{_sysconfdir}/my.cnf.d/50-galera.cnf
install -p -m 755 build/scripts/galera_new_cluster %{buildroot}%{_bindir}/galera_new_cluster install -p -m 755 build/scripts/galera_new_cluster %{buildroot}%{_bindir}/galera_new_cluster
%endif
# Documentation that was copied to wrong folder # Documentation that was copied to wrong folder
rm -f '%{buildroot}'%{_datadir}/doc/* 2> /dev/null || true rm -f '%{buildroot}'%{_datadir}/doc/* 2> /dev/null || true
@ -700,16 +713,16 @@ cd build
%if 0%{run_testsuite} > 0 %if 0%{run_testsuite} > 0
cd mysql-test cd mysql-test
./mysql-test-run.pl \ ./mysql-test-run.pl \
--parallel=%{?jobs:%{jobs}} \ --parallel=%{?jobs:%{jobs}} \
--force \ --force \
--retry=0 \ --retry=3 \
--ssl \ --ssl \
--suite-timeout=720 \ --suite-timeout=900 \
--testcase-timeout=30 \ --testcase-timeout=30 \
--mysqld=--binlog-format=mixed \ --mysqld=--binlog-format=mixed \
--force-restart \ --force-restart \
--shutdown-timeout=60 \ --shutdown-timeout=60 \
--max-test-fail=0 \ --max-test-fail=0 \
%if 0%{ignore_testsuite_result} > 0 %if 0%{ignore_testsuite_result} > 0
|| : || :
%else %else
@ -719,7 +732,6 @@ cd mysql-test
# client does not require server and needs the user too # client does not require server and needs the user too
%pre client -f mysql.pre %pre client -f mysql.pre
%pre %pre
%service_add_pre mariadb.service %service_add_pre mariadb.service
@ -880,11 +892,13 @@ exit 0
%{_libdir}/mysql/plugin/dialog_examples.so %{_libdir}/mysql/plugin/dialog_examples.so
%{_sysusersdir}/mysql-user.conf %{_sysusersdir}/mysql-user.conf
%if 0%{with_galera} > 0
%files galera -f mariadb-galera.files %files galera -f mariadb-galera.files
%doc Docs/README.wsrep %doc Docs/README.wsrep
%config(noreplace) %{_sysconfdir}/my.cnf.d/50-galera.cnf %config(noreplace) %{_sysconfdir}/my.cnf.d/50-galera.cnf
%{_datadir}/mysql/systemd/use_galera_new_cluster.conf %{_datadir}/mysql/systemd/use_galera_new_cluster.conf
%{_datadir}/mysql/wsrep_notify %{_datadir}/mysql/wsrep_notify
%endif
%files errormessages -f mariadb-errormessages.files %files errormessages -f mariadb-errormessages.files
%{_datadir}/%{name}/*/errmsg.sys %{_datadir}/%{name}/*/errmsg.sys

View File

@ -45,15 +45,5 @@ main.gis_notembedded : since 10.4.10 - all
funcs_1.is_columns_mysql : since 10.4.10 - all funcs_1.is_columns_mysql : since 10.4.10 - all
sys_vars.tcp_nodelay : since 10.4.10 - all sys_vars.tcp_nodelay : since 10.4.10 - all
oqgraph.social : since 10.4.12 - i586 (MDEV-22280) oqgraph.social : since 10.4.12 - i586 (MDEV-22280)
sys_vars.have_rtree_keys_basic : since 10.4.13 - x86_64
main.func_int : since 10.4.13 - i586
perfschema.dml_tlws_by_table : since 10.4.13 - x86_64
sys_vars.aria_used_for_temp_tables_basic : since 10.4.13 - ppc64
main.subselect_no_opts : since 10.4.13 - aarch64
igcol.main_mysqldump : since 10.4.13 - aarch64
main.timezone_grant : since 10.4.13 - ppc64
perfschema.ddl_setup_consumers : since 10.4.13 - i586
main.subselect_sj_nonmerged : since 10.4.13 - i586
sys_vars.innodb_encryption_rotation_iops_basic : since 10.4.13 - i586
main.symlink-myisam-11902 : since 10.4.13 - i586 main.symlink-myisam-11902 : since 10.4.13 - i586
sys_vars.innodb_fast_shutdown_basic : since 10.4.13 - i586 main.ssl_system_ca : since 10.4.14 - all