Commit Graph

622 Commits

Author SHA1 Message Date
Michal Schorm
6f668c197a Remove usage of OpenSSL Engine
After discussion with change owner, I've prepared the correct solution.

There is a difference between Fedora and CentOS Stream 10 / RHEL 10:
- in CentOS Stream 10 / RHEL 10, the change is self-contained by the
  'openssl-devel' package itself, which now defines OPENSSL_NO_ENGINE
  in the headers so new application builds don't use engine at all
- in Fedora, the headers containing the OPENSSL_NO_ENGINE definition
  are put into a separate sub-package 'openssl-devel-engine', instead
  of being put into the 'openssl-devel'
2024-07-22 13:34:39 +02:00
Michal Schorm
1e143dc511 Rename the SPECfile to match the version of the package 2024-07-19 14:04:58 +02:00
Michal Schorm
a8fe19a4b8 [Fix for Fedora Change] - remove usage of OpenSSL Engine
https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine
https://fedoraproject.org/wiki/Changes/OpensslNoEngine
2024-07-18 18:34:18 +02:00
Michal Schorm
6f1be6b0e2 Rebase to 8.4.0
mysql-c99.patch
- directory "plugin/innodb_memcached" no longer exists

boost-1.76.0-fix_multiprecision_issue_419-ppc64le.patch
- upstreamed

ExcludeArch: %{ix86}
- MySQL 8.4 is not supported on 32-bit architectures

%ifnarch aarch64 s390x
  BuildRequires:    libquadmath-devel
%endif
- sub-package of gcc
- Only available on some architectures

%{_bindir}/mysql_upgrade
- was deprecated in 8.0
- now no longer available

%global runselftest 0
- disable testsuite during development time,
  takes ages to complete on s390x and produces random failures on ppc64le
- I've checked that the result is sane
2024-07-16 10:09:52 +02:00
Michal Schorm
2652580919 Merge remote-tracking branch 'fedora/rawhide' into c10s 2024-07-16 09:26:01 +02:00
Release Configuration Management
1e7a147491 New branch setup 2024-07-08 04:30:27 -04:00
Michal Schorm
e8a0d90f0d Update skipped tests list for ppc64le 2024-06-13 16:48:34 +02:00
Michal Schorm
a292636c7c Update skipped tests list for ppc64le 2024-06-13 10:07:03 +02:00
Michal Schorm
adc4c185e1 Update skipped tests list for ppc64le 2024-06-12 12:40:37 +02:00
Michal Schorm
4f655987d2 Bump release for package rebuild 2024-06-12 07:52:36 +02:00
Michal Schorm
8cec706852 Testsuite verified for 8.0.37
- testsuite enabled

- testcase checking disabled, as it produces huge amount of errors before each test even begin
  these errors seems to be fully non-deterministic (random)
2024-06-12 07:48:21 +02:00
Michal Schorm
86b98a4de5 Enable LTO 2024-06-11 01:55:39 +02:00
Michal Schorm
5f8aa3c33c Added support for various authentication algorithms 2024-06-11 01:55:39 +02:00
Michal Schorm
7831572b3f Enable building FIDO plugin
The FIDO authentication plugin is set to OFF by default, for some reason,
even when the library is correctly found during the build process.
2024-06-10 23:21:59 +02:00
Michal Schorm
011988191e Remove unnecessary BuildRequires
These packages are either not needed, or are brought in anyway by their *-devel sub-packgages.

It is possible to check whether the MySQL miss something by searching through the CMake checks, for "EXECUTABLE-NOTFOUND" keyword.
Some are expected to be missing. e.g. Git.
We don't want the MySQL to try to additional sources from web from git during compilation (not like it can anyway, but without the git, CMake won't even try)

List of currently not found executables, for future reference:
  GIT_EXECUTABLE:FILEPATH=GIT_EXECUTABLE-NOTFOUND
  DOXYGEN_EXECUTABLE:FILEPATH=DOXYGEN_EXECUTABLE-NOTFOUND
  DOXYGEN_DOT_EXECUTABLE:FILEPATH=DOXYGEN_DOT_EXECUTABLE-NOTFOUND
  CTAGS_EXECUTABLE:FILEPATH=CTAGS_EXECUTABLE-NOTFOUND
  PATCHELF_EXECUTABLE:FILEPATH=PATCHELF_EXECUTABLE-NOTFOUND
2024-06-10 13:22:58 +02:00
Michal Schorm
f9c8a7626a [bundled libraries fix] remove unused bundles 2024-06-10 13:22:58 +02:00
Michal Schorm
15b46299cf [bundled libraries fix] The 'rapidjson' library has to be bundled.
When you try to use system version of the library, following error emerges:
| -- Performing Test HAVE_RAPIDJSON_WITH_STD_REGEX
| -- Performing Test HAVE_RAPIDJSON_WITH_STD_REGEX - Failed
| CMake Error at cmake/rapidjson.cmake:114 (MESSAGE):
|   System rapidjson lacks some fixes required for support of regular
|   expressions.  See extra/RAPIDJSON-README for details.
| Call Stack (most recent call first):
|   CMakeLists.txt:1952 (MYSQL_CHECK_RAPIDJSON)
| -- Configuring incomplete, errors occurred!

I specifically chose not to specify version in the bundled(rapidjson),
to avoid confusion that it's the same version as of the system variant of the library from package 'rapidjson'
2024-06-09 23:10:30 +02:00
Michal Schorm
ff51e1d0f5 Bump release for package rebuild 2024-06-09 17:37:20 +02:00
Michal Schorm
5860b59256 Explicitly state 'zlib' and 'rapidjson' bundling status
Both are set to 'bundled' by default !

We really want to avoid bundling zlib.
On top of that, there is currently a problem with the bundled zlib, which results in a linker error during compilation.

We want to un-bundle rapidjson too, but:
| -- Performing Test HAVE_RAPIDJSON_WITH_STD_REGEX
| -- Performing Test HAVE_RAPIDJSON_WITH_STD_REGEX - Failed
| CMake Error at cmake/rapidjson.cmake:114 (MESSAGE):
|   System rapidjson lacks some fixes required for support of regular
|   expressions.  See extra/RAPIDJSON-README for details.
| Call Stack (most recent call first):
|   CMakeLists.txt:1952 (MYSQL_CHECK_RAPIDJSON)
| -- Configuring incomplete, errors occurred!
needs further investigation.
2024-06-09 17:32:26 +02:00
Lars Tangvald
6cd7eae323 Upgrade to MySQL 8.0.37 2024-05-27 13:29:35 +02:00
Michal Schorm
430b276312 Fix my.cnf dependency
Installation path macros are not allowed in file dependencies.
Starting with F40, these break flatpak builds entirely because
dnf5 only recognizes file deps in /etc, /usr/bin, and /usr/sbin,
not /app/etc.  At this point, mariadb-connector-c-config is the
sole provider of my.cnf.

https://docs.fedoraproject.org/en-US/packaging-guidelines/#_file_and_directory_dependencies

--

Based on commit 45b40b2 in rpms/mariadb10.11 authored by Yaakov Selkowitz on Apr 8 2024
45b40b2e9c
2024-04-17 01:57:15 +02:00
Lukas Javorsky
164e60d4fa Add gating.yaml, so it's not missed in the next branching of RHEL 2024-04-15 13:34:54 +00:00
Michal Schorm
c3fa8c48c1 Whitespace fix 2024-03-07 12:44:54 +01:00
Michal Schorm
06fc78c1d7 Remove architectures which are not supported by Fedora from conditionals 2024-03-06 10:35:53 +01:00
Michal Schorm
cc8a02280b Remove old code related 32-bit ARM architectures, which is not supported by Fedora anymore
https://fedoraproject.org/wiki/Changes/RetireARMv7
2024-03-05 14:34:19 +01:00
Honza Horak
af786c40e2 Do not provide community-mysql* symbols if alternative
When building the package as alternative (non default) version
for a distro, we should not have provides that are virtual and
without version. Otherwise, packages that depend on these
virtual provides (like build requires of perl-DBD-MySQL),
could install the non-default version by accident.
2024-02-19 16:32:38 +01:00
Lukas Javorsky
de06e0146b Renaming macro names to be more descriptive 2024-02-07 11:51:00 +00:00
Lukas Javorsky
178aa67c03 Bump the obsolete release number, due to high number of rebuilds 2024-02-07 09:43:43 +00:00
Lukas Javorsky
59a230df60 Apply demodularization 2024-02-06 13:22:59 +00:00
Lukas Javorsky
859da9f619 Remove arch specific provides for noarch subpackages
Also add Release to the Provides version, so it adhere the Packaging
Guidelines
2024-02-06 13:22:36 +00:00
Honza Horak
e7752d4c32 Use signal to flush logs when rotating
Using signals has a benefit over mysqladmin call that we don't need to care about password if root has some.

Related: https://issues.redhat.com/browse/RHEL-5470
2024-02-06 13:22:26 +00:00
Lukas Javorsky
f6259b3f09 Rebase to version 8.0.36 2024-02-06 13:21:09 +00:00
Lukas Javorsky
4bf4df5bdd Rename all patch files and specfile 2024-02-06 09:52:41 +00:00
Lukas Javorsky
47c31c88f2 Renaming 'community-mysql' to 'mysql8.0' 2024-02-06 09:52:41 +00:00
Lukas Javorsky
9f79d3a6a2 Bump the release to 100
Prepare for a production build after large set of changes in 'mariadb', 'community-mysql' and 'mysql' packages
2024-02-06 09:52:41 +00:00
Lukas Javorsky
c8aa87d930 Add comment for better code understanding 2024-02-06 09:52:41 +00:00
Lukas Javorsky
16b5eee119 Change the if without conditions to prefered if ! with
Prefered conditions are described in RPM manual: https://rpm-software-management.github.io/rpm/manual/conditionalbuilds.html
2024-02-06 09:52:41 +00:00
Lukas Javorsky
78063eb661 LTO fails only on ARM32 not all ARM archs 2024-02-06 09:52:41 +00:00
Lukas Javorsky
04529e24b2 Change the bcod_with/out conditions to new bcond 1/0 2024-02-06 09:52:41 +00:00
Michal Schorm
068e37f35d F40 Change "MariaDB & MySQL repackaging" - Implement conflicts with 'mariadb' names and provide 'community-mysql' names
As per:
  https://fedoraproject.org/wiki/Changes/F40_MariaDB_MySQL_repackaging
specifically the parts:
 - Rename package 'community-mysql' to 'mysql' and Stop providing 'mysql' symbols by package 'mariadb'
 - Drop cross-installation functionality
2024-02-06 09:52:31 +00:00
Michal Schorm
6e17c080ef SPECfile enhancement - Make the 'mariadb-errmsg' and 'mariadb-common' sub-packages 'noarch'
The sub-package 'mariadb-common' contains XML files with character sets
The sub-package 'mariadb-errmsg' contains 'errmsg.sys' files with error messages for various laguages
2024-02-06 09:49:05 +00:00
Michal Schorm
9d579e10f2 SPECfile cleanup - move general code block to a more logical place 2024-02-05 18:56:06 +00:00
Michal Schorm
8a077c3962 SPECfile cleanup - use the unversioned docdirs in a clean and straightforward way 2024-02-05 18:56:06 +00:00
Michal Schorm
b1b14a1e11 SPECfile cleanup - patch configuration option has been upstreamed in 2016; #884755 2024-02-05 18:56:06 +00:00
Michal Schorm
be241fe6cb SPECfile cleanup - Remove single-purpose macro, especially when it holds the same value as another macro 2024-02-05 18:56:06 +00:00
Michal Schorm
fdceea6e72 SPECfile cleanup - Transform %require_mysql_selinux general macro to a control macro 2024-02-05 18:56:06 +00:00
Michal Schorm
82993239f3 SPECfile cleanup - Reformat for readability 2024-02-05 18:56:06 +00:00
Michal Schorm
95ebb07c15 SPECfile cleanup - assuming we're on Fedora or RHEL>=8 2024-02-05 18:56:06 +00:00
Pete Walter
904d38aa42 Rebuild for ICU 74 2024-02-05 16:59:56 +01:00
Fedora Release Engineering
bf788a49a1 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-02-05 16:59:56 +01:00