From 718eb037c0292c2ec33169d2a9ffa0597a62d102 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Fri, 8 Aug 2025 16:06:02 +0200 Subject: [PATCH] [bugfix] Fix the application of the build flags The '%{set_build_flags}' is unnecessary. These flags are automatically called on the beginning of '%build' phase, and are also part fo the '%cmake' macro. The second call of CMake has to be run in "-N" mode, which treats the CMake cache as read-only. Related: RHEL-140363 --- galera.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/galera.spec b/galera.spec index 67c8af2..ff4abbe 100644 --- a/galera.spec +++ b/galera.spec @@ -43,8 +43,6 @@ u garb - 'Galera Arbitrator Daemon' /dev/null - EOF %build -%{set_build_flags} - %cmake \ -DCMAKE_BUILD_TYPE="%{?with_debug:Debug}%{!?with_debug:RelWithDebInfo}" \ @@ -61,7 +59,7 @@ EOF -DINSTALL_LIBDIR="%{_lib}/galera" \ -DINSTALL_MANPAGE="share/man/man8" -cmake -B %_vpath_builddir -LAH +cmake -B %_vpath_builddir -N -LAH %cmake_build