Commit Graph

758 Commits

Author SHA1 Message Date
Michal Schorm
e96ef648dd Explicitly disable building of the Columnstore SE
until it is packed properly

Undefined behaviour leads to the SE being built by default on systems that have the necessary devel package installed
Resolves: #1960161
2021-05-14 16:20:09 +02:00
Michal Schorm
f192442cc3 Remove TokuDB Storage Engine subpackage
The TokuDB SE from Percona upstream has been deprecated in MariaDB 10.5 and completely removed in MariaDB 10.6
In Fedora, we don't build it since MariaDB 10.5
2021-05-12 05:41:16 +02:00
Michal Schorm
47762ab9fc Use the modified sources; bump release 2021-05-12 05:33:16 +02:00
Michal Schorm
b3ff1d5772 Ignore missing files during "rm -r" 2021-05-12 05:33:16 +02:00
Michal Schorm
7f8a0e15a6 Introduce the script for generating sources tarball without a code under a license which was not yet approved for Fedora or RHEL
Change the name of the sources archive, so the maintainer will encounter an error when uploading new sources which haven't undergo modification by this script
2021-05-12 05:33:16 +02:00
Michal Schorm
b14945398c Fix RPMLint warning: incoherent-version-in-changelog 10.5.10-1 ['3:10.5.10-1.fc35', '3:10.5.10-1'] 2021-05-11 21:40:39 +02:00
Michal Schorm
2e03a737bb Update RPMLint whitelist; fix RPMLint findings 2021-05-11 21:36:11 +02:00
Daniel Black
a87e9e5d9a Document systemd service changes
Prefer the systemctl edit mysql.service syntax
and leave the more complex alternatives to the
existing documents referenced.

Also show how to use the multiinstance a bit more.
2021-05-11 12:07:23 +00:00
Daniel Black
95f558b833 drop KillMode=process
MariaDB-10.4 onwards included a pam_helper subprocess to help
with the pam authentication module.

If the user is running with Galera there are SST modules that could
be executing.

By dropping KillMode=process this reverts back to control-group to
cover all of these subprocesses. This is what upstream does.

https://jira.mariadb.org/browse/MDEV-25233 suggests moving to
KillMode=mixed, which is probably ok too, but has been tested less.
2021-05-11 12:07:23 +00:00
Daniel Black
fcdfad8ad8 update package descriptions
Use mariadbd rather than mysqld in package descriptions.

Changed community branch of MySQL to "fork from", since branch
implies far too many updates from or back to the original
which isn't true.

Updated server-galera package description as it didn't
reference Galera at all.
2021-05-11 12:04:41 +00:00
Daniel Black
c205fe1604 mariadb-scripts-common: update sections from mariadbd --help --verbose 2021-05-11 12:01:29 +00:00
Daniel Black
df76620f9e rename mysql scripts to mariadb
Use mariadb names in the scripts too.
2021-05-11 12:01:29 +00:00
Daniel Black
00056934fb Drop README.mysql-license, there are no exceptions
MariaDB has LGPL-2.1 for the licensing of Connector/C

This is the submodule in libmariadb on the server repository
from which the client libraries are built.

ref: https://github.com/mariadb-corporation/mariadb-connector-c

From upstream:
  e4da179b03
2021-05-11 12:01:29 +00:00
Daniel Black
8a01c71407 README.mariadb-docs to refer to MariaDB documentation
MariaDB has its own documentation and refering to MySQL
documentation may mislead users.
2021-05-11 12:01:29 +00:00
Michal Schorm
b84b8cfc8c Rebase to 10.5.10 2021-05-11 05:10:04 +02:00
Michal Schorm
939918b1e0 Fix package Conflicts on other OS than Fedora
The "community-mysql" packgae is named just "mysql" on RHEL & CentOS
2021-05-02 15:17:53 +02:00
Jonathan Wakely
a5d57f3520 Rebuilt for removed libstdc++ symbol (#1937698) 2021-03-30 19:37:59 +01:00
Michal Schorm
098e789957 Remove all upstream Systemd service files from the datadir
---

Until now, we remove "mysql*" named upstream service files from the datadir, but leave the others.
IMO we should either ship them all or remove them all.

I see no benefit in keeping upstream service files, since they use different logic, capabilities, and starts scripts as root; unlike our downstream Systemd service files.
2021-03-19 15:33:47 +00:00
Michal Schorm
e9fc8adf5d Bump release for rebuild 2021-03-19 15:57:56 +01:00
Michal Schorm
51cd6d3ae2 Move PAM authentication plugin to a standalone sub-package, suggested by the server sub-package to minimize potential security risks to only to the users which will install this plugin. https://jira.mariadb.org/browse/MDEV-25126 2021-03-19 15:57:56 +01:00
Michal Schorm
c356ff4717 Bump release for rebuild 2021-03-18 04:20:34 +01:00
Michal Schorm
51dee9887b Fix file permissions for the PAMv2 authentication plugin
Access to this SUID-to-root binary MUST be restricted.
https://jira.mariadb.org/browse/MDEV-25126
2021-03-18 04:14:39 +01:00
Michal Schorm
c90aa83afe Remove the patch for the mysql_install_db script
The patched piece of code was actually never executed, because of the following condition:
  "$in_rpm" -eq 0
However we call the script with the "--rpm" option from the Systemd service file:
  https://src.fedoraproject.org/rpms/mariadb/blob/rawhide/f/mysql-prepare-db-dir.sh#_100
2021-03-18 04:00:52 +01:00
Michal Schorm
910309466e Fix comment, use macro
This obsoletes:
  https://src.fedoraproject.org/rpms/mariadb/pull-request/23
2021-03-18 03:18:43 +01:00
Michal Schorm
d61a5d2f31 Move bits around, have all service files stuff together
Shouldn't bring any changes to functionality
2021-03-18 03:10:06 +01:00
Zbigniew Jędrzejewski-Szmek
14c9375f3f Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:13:31 +01:00
Michal Schorm
15e98d0c18 Remove old unapplied patch for Spider SE on armv7hl
The patch was originally a copy of an upstream commit fixing this issue
Now the commit is a part of the server codebase

https://jira.mariadb.org/browse/MDEV-18737
ddce859076

I stopped applying the patch with 10.5.0 release
2021-02-27 01:22:05 +01:00
Michal Schorm
33b0b7903b Rebase to 10.5.9 2021-02-24 14:43:35 +01:00
Lukas Javorsky
7d46a8244f Replace the tokudb Obsoletes to the right place
Resolves: #1928757
2021-02-16 16:57:15 +01:00
Michal Schorm
f20aec3d3d Enhance the logrotate script as proposed in:
https://mariadb.com/kb/en/rotating-logs-on-unix-and-linux/

Resolves: #1683981
2021-02-12 08:47:54 +01:00
Michal Schorm
e5b5fcdcf7 MariaDB switched to using "DBD::MariaDB" Perl database driver instead of the "DBD::mysql" in MariaDB 10.5.0 version
Upstream issue:
  https://jira.mariadb.org/browse/MDEV-19755

Upstream commit:
  5cc2096f93 (diff-8576e5effae0770fc984e35e6749c43a8946489a1b478ce54facb3b9086622bf)

Scripts that rely on a specific driver won't work with differently named driver
Following scripts are affected:
  mysql_convert_table_format.sh
  mysql_setpermission.sh
  mysqlhotcopy.sh
  mytop.sh
as well as several tests for various components

So changing the required package to match the needs of the scripts

Testing:
Following command:
  mysql_setpermission --user=root --host=127.0.0.1 --port=3306
Would fail with:
  install_driver(MariaDB) failed: Can't locate DBD/MariaDB.pm in @INC (you may need to install the DBD::MariaDB module)
2021-02-12 07:11:11 +01:00
Michal Schorm
6279ba9cd7 Add missing dependency for the mariadb-test subpackage 2021-02-11 05:54:59 +01:00
Michal Schorm
5087a8f282 Add support for S3 storage engine 2021-02-10 14:14:46 +01:00
Michal Schorm
153eaac4b2 Revert "For compatibility with upstream RPMs, create symlinks to "mysql*" named systemd services"
This reverts commit 7c52598552.

Wee need to discuss this further.
2021-02-02 16:07:12 +01:00
Michal Schorm
a475c7ef2f Fix port range calculation formula for the testsuite
It was discovered, that the each number results to 20 ports range selected, instead of 10 ports range, so the maximum number must be divided by 2.
2021-02-02 15:34:16 +01:00
Michal Schorm
f45638f43a Remove README.mysql-cnf
The example configuration files, located in "/usr/share/mariadb/", named "*.cnf"
were dropped in MariaDB 10.3 and we haven't shipped them since
2021-02-01 01:33:17 +01:00
Michal Schorm
d282b9922b Allow to run the test-suite in parallel when more versions are built 2021-02-01 00:40:49 +01:00
Michal Schorm
7c52598552 For compatibility with upstream RPMs, create symlinks to "mysql*" named systemd services 2021-02-01 00:38:04 +01:00
Honza Horak
e586e88803 For compatibility with upstream RPMs, create mysqld symlink in sbin 2021-01-29 09:36:04 +01:00
Honza Horak
3b1a6d2020 Remove a dangling symlink after tests end
Related: #1903659

RPMDiff issue says:
File opt/rh/rh-mariadb105/root/usr/share/mysql-test/var is a dangling symlink (to /dev/shm/var_64_BuRk) on x86_64
2021-01-28 16:52:21 +01:00
Fedora Release Engineering
862568e0f8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 19:15:47 +00:00
Lukas Javorsky
67fe36f42d Resolve tokudb-engine deprecated problem
BZ#1906559
2021-01-12 13:32:18 +01:00
Tom Stellard
69cb3d49af Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-06 21:27:25 +00:00
Michal Schorm
95e69a74bc Merge branch '10.5'
Introducing MariaDB 10.5 into Rawhide as per:
https://fedoraproject.org/wiki/Changes/MariaDB_10.5
2020-12-07 08:58:12 +01:00
Michal Schorm
e88cf6fb71 Specfile cleanup
- fix conditions for building minimal server
- fix expected logfile permissions, so `rpm -V` would be satisfied
2020-12-07 08:48:44 +01:00
Michal Schorm
6cec766bc6 Add description of the 'clustercheck.sh' script 2020-12-07 08:48:31 +01:00
Michal Schorm
066989316d Specfile cleanup
- fix conditions for building minimal server
- fix expected logfile permissions, so `rpm -V` would be satisfied
2020-11-12 03:43:13 +01:00
Michal Schorm
8c1b8ae695 Rebase to 10.5.8 2020-11-12 01:51:15 +01:00
Michal Schorm
bda74cd11c Rebase to 10.4.17 2020-11-11 22:48:52 +01:00
Michal Schorm
51b8f2af1b Rebase to 10.5.7 2020-11-06 03:42:13 +01:00