2 Commits

3 changed files with 39 additions and 0 deletions

30
freeglut-gcc15.patch Normal file
View File

@@ -0,0 +1,30 @@
github.com/freeglut/freeglut/issues/186
github.com/freeglut/freeglut/pull/187
From 800772e993a3ceffa01ccf3fca449d3279cde338 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Sun, 17 Nov 2024 01:14:26 +0000
Subject: [PATCH] egl: fix fgPlatformDestroyContext prototype for C23
C23 removes unprototyped functions, so this conflicted with the definition
in fg_init_x11.c.
Bug: https://github.com/freeglut/freeglut/issues/186
---
src/egl/fg_init_egl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/egl/fg_init_egl.h b/src/egl/fg_init_egl.h
index 592c5221d..8753dc0bc 100644
--- a/src/egl/fg_init_egl.h
+++ b/src/egl/fg_init_egl.h
@@ -28,6 +28,6 @@
extern void fghPlatformInitializeEGL();
extern void fghPlatformCloseDisplayEGL();
-extern void fgPlatformDestroyContext();
+extern void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext );
#endif

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 2 17:38:46 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
- add freeglut-gcc15.patch from upstream to fix gcc-15 compile time
error
-------------------------------------------------------------------
Thu Mar 24 07:18:19 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -26,6 +26,8 @@ URL: http://freeglut.sourceforge.net/
Source: https://downloads.sourceforge.net/project/freeglut/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1: https://downloads.sourceforge.net/openglut/openglut-0.6.3-doc.tar.gz
Source2: baselibs.conf
# PATCH-FIX-UPSTREAM
Patch1: freeglut-gcc15.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
@@ -107,6 +109,7 @@ joystick functions on a wide range of platforms.
%prep
%setup -q -a1
%autopatch -p1
%build
%cmake \