Commit Graph

27 Commits

Author SHA1 Message Date
Michal Schorm
bd30527b5b Rebase to 11.4.5 2025-07-23 10:11:16 +02:00
Michal Schorm
810dbf2ed2 PARTIAL REVERT of "[packaging fix for containers] Drop usage of tmpfiles.d"
This PARTIALLY REVERTS commit 9f34c64543.

--

My assumption in the original commit was incorrect.

It's true we're creating the `/run/mariadb` directory at the RPM level.
However, the `/run` directory is tmpfs, which means it's non-persistent and gets cleaned after reboot.
The tmpfile.d configuration was making sure that after reboot, the `/run/mariadb` directory is recreated.
But after it has been dropped, at the time of reboot, the `/run/mariadb` dir is removed and not recreated, thus causing this issue.

--

Resolves: rhbz#2364619
2025-05-07 13:20:55 +02:00
Michal Schorm
9f34c64543 [packaging fix for containers] Drop usage of tmpfiles.d
The 'tmpfiles.d' functionality requires 'systemd'.
That is inappropriate for container use-cases, where
we can save 15-20 MB by removal for the systemd stack.

In the case of MariaDB, we
1) were NOT using the upstream tpmfiles.d config
2) we were used downstream tmpfiles.d config
2.a) which only contained creation of the PID file dir (/var/run/mariadb)

This can be easily replaced by RPM creating and owning the path.

By closer inspection I found that we do it already, so the current tmpfiles.d config
just do entirely redundant job. I assume this was an overlook when the tmpfiles.d config
was introduced.

This commit:
1) removes the donwstream tmpfiles.d config file
2) sets "INSTALL_SYSTEMD_TMPFILESDIR" CMake option to an empty string
   to disable generating the upstream config file
3) Drops the "Requires" to 'systemd' to "Recommends"
   so the systemd can be ommited in containers, but is still installed by default
4) Drops the '%{?systemd_requires}' macro, which makes sure the systemd is present
   for it's %post, %preun and %postun scriptlets.

   This can only happen when someone calls the installation or removal on a system that does not
   have systemd, which is highly, highly unlikely nowadays.

   And in the cases where it is expected - e.g. containers - the %systemd-{post,preun,postun} marcos
   contains a condition that makes sure it's content is only run when the systemd is present,
   so the effective functionality remains unchanged.
2025-05-05 12:13:17 +02:00
Daniel Black
df76620f9e rename mysql scripts to mariadb
Use mariadb names in the scripts too.
2021-05-11 12:01:29 +00:00
Lukas Javorsky
21e76c8255 Rebase to 10.5.5
Add manual for aria_s3_copy
2020-10-22 14:02:19 +02:00
Michal Schorm
8d4561c7a1 Rebase to 10.5.2 - Beta
TokuDB SE has been deprecated https://jira.mariadb.org/browse/MDEV-19780
Remove the RocksDB manpage when RocksDB is not built
Add failing tests
2020-10-22 14:02:19 +02:00
Michal Schorm
ecb40d449c Rebase to 10.3.8
Removal of the galera patch, it has been upstreamed
Build TokuDB with jemalloc; jemalloc 5 support introduced by upstream; #1583853
Allow very few tests to fail the testsuite; this won't block builds on unstable tests
2018-07-10 19:49:34 +02:00
Michal Schorm
fd1545682a SPECfile refresh, RHEL6, SySV init and old fedora stuff removed 2018-02-26 16:14:33 +01:00
Honza Horak
f130bf6899 Install mysql-wait-ready on RHEL-6 for the SysV init 2017-08-28 21:08:52 +02:00
Honza Horak
ebda147116 Fix paths in galera_recovery and galera_new_cluster
Resolves: #1403416
2017-08-28 20:35:59 +02:00
Honza Horak
e89fd4e189 Rebase to 10.1.25 2017-08-21 00:34:47 +02:00
Michal Schorm
236df84a14 fix of a patch 2017-07-13 16:48:22 +02:00
Michal Schorm
04a85451ac Remove mysql-wait-* scripts. They aren't needed when using systemd "Type=notify" 2017-07-13 16:30:08 +02:00
Michal Schorm
789b0094ed Rebase to 10.1.24
Build dependecies Bison and Libarchive added, others corrected
Disabling Mroonga engine for i686 architecture, as it is not supported by MariaDB
Removed patches: (fixed by upstream)
   Patch5:  %{pkgnamepatch}-file-contents.patch
   Patch14: %{pkgnamepatch}-example-config-files.patch
   Patch31: %{pkgnamepatch}-string-overflow.patch
   Patch32: %{pkgnamepatch}-basedir.patch
   Patch41: %{pkgnamepatch}-galera-new-cluster-help.patch

Skipped tests list updated
Bigger READMEs update (made by upstream)

Resolves: rhbz#1414387
  CVE-2017-3313
Resolves partly: rhbz#1443408
  CVE-2017-3308 CVE-2017-3309 CVE-2017-3453 CVE-2017-3456 CVE-2017-3464
2017-06-03 02:17:41 +02:00
Jakub Dorňák
803bbfca97 Add subpackage mariadb-server-galera
Resolves: 1310622
2016-03-22 15:30:08 +01:00
Honza Horak
43cc79ee49 Use systemd unit file more compatible with upstream 2016-02-08 06:56:32 +01:00
Jakub Dorňák
0619ce4c5b Update to 10.1.11 2016-02-03 15:26:02 +01:00
Jakub Dorňák
6290cad8ad Update to 10.1.8 2015-10-29 18:31:23 +01:00
Honza Horak
eb4231cae1 Wait for daemon ends
Resolves: #1072958

Conflicts:
	mariadb-scl-env-check.patch
	mariadb.spec
2015-03-06 21:18:26 +01:00
Jakub Dorňák
73dc70620a Rebase to version 10.0.16
Resolves: #1187895
2015-02-03 11:02:12 +01:00
Honza Horak
8a5dc2e718 Rework usage of macros and remove some compatibility artefacts 2014-12-06 09:00:06 +01:00
Jakub Dorňák
7f3fe0a2f7 Update to 10.0.15 2014-12-01 02:43:34 +01:00
Honza Horak
487b6d1b34 Check upgrade script added to warn about need for mysql_upgrade 2014-09-29 14:34:41 +02:00
Honza Horak
f6b02e3277 Hardcoded paths removed to work fine in chroot 2014-07-25 09:15:58 +02:00
Honza Horak
85af24c338 Spec rewrite to be more similar to oterh MySQL implementations 2014-07-24 13:59:25 +02:00
Honza Horak
ee2d0857de Include SysV init script if built on older system 2014-07-23 15:41:15 +02:00
Honza Horak
8d19c178ae Added patch mariadb-scripts.patch 2014-07-21 17:02:00 +02:00