Go to file
Michal Schorm b74fb13bdb [packaging bugfix] Fix the application of the compilation flags
I discovered that the second call of "cmake -LAH" further changes the cache.
That was definitelly unintended. Applying "-N" to operate in "cache read-only" mode.

That however broke the build, since the compilation flags are set up during the "cmake" call.
Up until now, the code flow was:
  1) %cmake ...
  2) <adjusting compilation flags>
  3) cmake -LAH
And since the "cmake -LAH" without the "-N" argument changed the cache, it actually applied all the
adjustements in the second step. When switched to "-N" mode, the flags failed to be applied, and the build broke.

What we actually need to do is to:
  1) initialize the compilation flags with the distribution default values
  2) adjust the compilation flags
  3) %cmake ...
  3) cmake -N -LAH

This way the compilation flags are correctly applied during the first CMake call,
and the CMake cache remains unchanged during the second CMake call.

--

The '%cmake' macro contains the '%{set_build_flags}' macro at it's beginning
  https://src.fedoraproject.org/rpms/cmake/blob/b3bf0e/f/macros.cmake.in#_20
and the '%{set_build_flags}' macro is constructed with the:
  CFLAGS="${CFLAGS:-...}
syntax, which translates to "Use the content of the $CFLAGS variable. If empty, use the following default value: '...' ".

So we first need to call the '%{set_build_flags}' macro separately, so we apply the default values. Then we append to them.
And then the '%cmake' macro calls the '%{set_build_flags}' macro that finds the existing values, and uses them, instead of the default ones.
2025-05-06 21:36:42 +02:00
tests Add the first test for the Fedora CI 2018-03-01 15:41:44 +01:00
.gitignore Rebase to 10.11.7 2024-06-07 08:08:21 +02:00
clustercheck.sh Add subpackage mariadb-server-galera 2016-03-22 15:30:08 +01:00
gating.yaml Add gating.yaml, so it's not missed in the next branching of RHEL 2024-04-15 13:51:16 +00:00
LICENSE.clustercheck Add subpackage mariadb-server-galera 2016-03-22 15:30:08 +01:00
mariadb10.11.spec [packaging bugfix] Fix the application of the compilation flags 2025-05-06 21:36:42 +02:00
mariadb-check-socket.sh rename mysql scripts to mariadb 2021-05-11 12:01:29 +00:00
mariadb-check-upgrade.sh rename mysql scripts to mariadb 2021-05-11 12:01:29 +00:00
mariadb-libfmt.patch Rebase to 10.11.10 2024-11-17 00:18:31 +01:00
mariadb-logrotate.patch [2/2] Rebase to 10.11.6 - start using upstream logrotate file 2024-01-30 12:58:32 +01:00
mariadb-mtr.patch Fix MTR port calculation 2024-09-23 14:53:43 +02:00
mariadb-ownsetup.patch Fix of mariadb-ownsetup patch. 2020-09-03 13:41:45 +02:00
mariadb-pcre.patch Bundle pcre2 version 10.44 2025-04-04 15:22:18 +02:00
mariadb-prepare-db-dir.sh rename mysql scripts to mariadb 2021-05-11 12:01:29 +00:00
mariadb-scripts-common.sh mariadb-scripts-common: update sections from mariadbd --help --verbose 2021-05-11 12:01:29 +00:00
mariadb-scripts.patch [packaging fix for containers] Drop usage of tmpfiles.d 2025-05-05 12:13:17 +02:00
mariadb-server-galera.te Add selinux policy 2016-05-12 20:29:28 +02:00
mariadb-ssl-cypher.patch JdbcMariaDB.jar test removed 2016-11-28 01:09:55 +01:00
mariadb.rpmlintrc Update RPMLint whitelist; fix RPMLint findings 2021-05-11 21:36:11 +02:00
my.cnf.in Move server settings to config file under my.cnf.d dir 2015-01-25 00:00:50 +01:00
mysql_config_multilib.sh Expand paths in helper scripts using cmake 2014-07-21 14:57:46 +02:00
mysql.service.in Document systemd service changes 2021-05-11 12:07:23 +00:00
mysql@.service.in Document systemd service changes 2021-05-11 12:07:23 +00:00
README.mariadb-docs README.mariadb-docs to refer to MariaDB documentation 2021-05-11 12:01:29 +00:00
README.md Added the README 2024-01-31 16:03:08 +00:00
README.wsrep_sst_rsync_tunnel Add wsrep_sst_rsync_tunnel script 2024-06-10 23:09:12 +02:00
rh-skipped-tests-arm.list Update skipped test list 2025-04-04 17:30:28 +02:00
rh-skipped-tests-base.list Rebase to 10.11.11 2025-02-05 15:27:05 +01:00
rh-skipped-tests-ppc.list Update skipped-tests-list for 10.11.6 release 2024-01-30 12:58:32 +01:00
rh-skipped-tests-s390.list Rebase to 10.11.9 2024-08-22 23:17:34 +02:00
rpminspect.yaml rpminspect - introduce a global ignore list 2022-06-11 10:17:03 +02:00
sources Bundle pcre2 version 10.44 2025-04-04 15:22:18 +02:00
wsrep_sst_rsync_tunnel Add wsrep_sst_rsync_tunnel script 2024-06-10 23:09:12 +02:00

mariadb10.11

The mariadb10.11 package