public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cdogs-sdl] rawhide: Fix FTBFS with CMake 4.x
@ 2026-07-14 19:02 Michal Schorm
  0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-07-14 19:02 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/cdogs-sdl
            Branch : rawhide
            Commit : c72456348eda5164bd89e00ebe5502de2b8718aa
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-07-14T15:23:15+02:00
            Stats  : +5/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/cdogs-sdl/c/c72456348eda5164bd89e00ebe5502de2b8718aa?branch=rawhide

            Log:
            Fix FTBFS with CMake 4.x

CMake 4.x removed compatibility with 'cmake_minimum_required' versions
older than 3.5. The upstream 'CMakeLists.txt' specifies an older minimum
version, causing the build to fail.

Add '-DCMAKE_POLICY_VERSION_MINIMUM=3.5' to the '%cmake' invocation to
restore compatibility without patching upstream sources.

Resolves: rhbz#2380491

Co-Authored-By: Claude AI <noreply@anthropic.com>

---
diff --git a/cdogs-sdl.spec b/cdogs-sdl.spec
index 25c921e..0f21dd7 100644
--- a/cdogs-sdl.spec
+++ b/cdogs-sdl.spec
@@ -2,7 +2,7 @@
 
 Name:           cdogs-sdl
 Version:        0.7.3
-Release:        17%{?dist}
+Release:        18%{?dist}
 Summary:        C-Dogs is an arcade shoot-em-up
 # The game-engine is GPLv2+
 # The game art is CC
@@ -40,7 +40,7 @@ find graphics sounds -name "*.sh" -delete
 
 
 %build
-%cmake -DCDOGS_DATA_DIR=/usr/share/cdogs-sdl/ -DUSE_SHARED_ENET=1
+%cmake -DCDOGS_DATA_DIR=/usr/share/cdogs-sdl/ -DUSE_SHARED_ENET=1 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
 %cmake_build
 
 
@@ -66,6 +66,9 @@ appstream-util validate-relax --nonet \
 
 
 %changelog
+* Tue Jul 14 2026 Michal Schorm <mschorm@redhat.com> - 0.7.3-18
+- Fix FTBFS with CMake 4.x by adding '-DCMAKE_POLICY_VERSION_MINIMUM=3.5' (rhbz#2380491)
+
 * Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-14 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-14 19:02 [rpms/cdogs-sdl] rawhide: Fix FTBFS with CMake 4.x Michal Schorm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox