commit 3ca314723e996b615f1d854c381c3689932e64fe
Author: Andrea Musuruane <musuruan(a)gmail.com>
Date: Tue Feb 25 14:56:03 2025 +0100
Fix FTBFS with GCC 15
cannonball-0.34-gcc15.patch | 20 ++++++++++++++++++++
cannonball.spec | 8 +++++++-
2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/cannonball-0.34-gcc15.patch b/cannonball-0.34-gcc15.patch
new file mode 100644
index 0000000..4d096fb
--- /dev/null
+++ b/cannonball-0.34-gcc15.patch
@@ -0,0 +1,20 @@
+From e66fdcd55ec0f5ef61c81b8ac25034734bbdef52 Mon Sep 17 00:00:00 2001
+From: DJ YT <blah(a)blah.com>
+Date: Fri, 30 Apr 2021 15:49:32 +0100
+Subject: [PATCH] Add cmath include for Clang compile
+
+---
+ src/main/sdl2/renderbase.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/main/sdl2/renderbase.cpp b/src/main/sdl2/renderbase.cpp
+index 57c26a30..78326267 100644
+--- a/src/main/sdl2/renderbase.cpp
++++ b/src/main/sdl2/renderbase.cpp
+@@ -1,5 +1,6 @@
+ #include "renderbase.hpp"
+ #include <iostream>
++#include <cmath>
+
+ RenderBase::RenderBase()
+ {
diff --git a/cannonball.spec b/cannonball.spec
index fac3e02..ab0e423 100644
--- a/cannonball.spec
+++ b/cannonball.spec
@@ -1,6 +1,6 @@
Name: cannonball
Version: 0.34
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: An Enhanced OutRun Engine
License: MAME
@@ -15,6 +15,9 @@ Source4: %{name}.appdata.xml
# Better handling of 'back' state
#
https://github.com/djyt/cannonball/commit/135a0f3a56eedf13c5fea1d93711141...
Patch0: %{name}-0.34-better_back_state.patch
+# Add cmath include
+#
https://github.com/djyt/cannonball/commit/e66fdcd55ec0f5ef61c81b8ac250347...
+Patch1: %{name}-0.34-gcc15.patch
BuildRequires: SDL2-devel
BuildRequires: cmake
@@ -107,6 +110,9 @@ appstream-util validate-relax --nonet \
%changelog
+* Tue Feb 25 2025 Andrea Musuruane <musuruan(a)gmail.com> - 0.34-10
+- Fix FTBFS with GCC 15
+
* Wed Jan 29 2025 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> - 0.34-9
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild