Go to file
Michal Schorm ac4e188a26 [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.

Resolves: RHEL-93751
2025-11-27 13:19:58 +01:00
.fmf Setup internal gating for c10s 2024-07-31 15:58:16 +02:00
plans Setup internal gating for c10s 2024-07-31 15:58:16 +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-08-19 12:19:43 +02:00
clustercheck.sh Add subpackage mariadb-server-galera 2016-03-22 15:30:08 +01:00
gating.yaml Setup internal gating for c10s 2024-07-31 15:58:16 +02: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-11-27 13:19:58 +01: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 2025-02-07 01:29:50 +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 2025-02-07 01:29:27 +01:00
mariadb-ownsetup.patch Fix of mariadb-ownsetup patch. 2020-09-03 13:41:45 +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 rename mysql scripts to mariadb 2021-05-11 12:01:29 +00: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
mariadb.tmpfiles.d.in rename mysql scripts to mariadb 2021-05-11 12:01:29 +00: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-08-19 12:21:41 +02:00
rh-skipped-tests-arm.list Rebase to 10.11.11 2025-02-07 01:30:06 +01:00
rh-skipped-tests-base.list Rebase to 10.11.11 2025-02-07 01:30:06 +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.11 2025-02-07 01:30:06 +01:00
rocksdb-6.8-gcc13.patch Fix build with GCC 13 2023-01-24 14:15:29 -05:00
rpminspect.yaml rpminspect - introduce a global ignore list 2022-06-11 10:17:03 +02:00
sources Rebase to 10.11.13 2025-06-27 15:01:19 +02:00
wsrep_sst_rsync_tunnel Add wsrep_sst_rsync_tunnel script 2024-08-19 12:21:41 +02:00

mariadb10.11

The mariadb10.11 package