Dominique Leuenberger 2024-11-03 06:18:02 +00:00 committed by Git OBS Bridge
commit 3d2bbb08c1
3 changed files with 23 additions and 0 deletions

16
cdogs-sdl-gcc-14.patch Normal file
View File

@ -0,0 +1,16 @@
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix FTBFS with GCC 14
Bug-Debian: https://bugs.debian.org/1074873
Forwarded: https://github.com/cxong/cwolfmap/pull/3
--- a/src/cdogs/cwolfmap/zip/zip.c
+++ b/src/cdogs/cwolfmap/zip/zip.c
@@ -1673,7 +1673,7 @@
*bufsize = n;
}
- *buf = calloc(sizeof(unsigned char), n);
+ *buf = calloc(n, sizeof(unsigned char));
memcpy(*buf, zip->archive.m_pState->m_pMem, n);
return (ssize_t)n;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 2 14:21:27 UTC 2024 - Carsten Ziepke <kieltux@gmail.com>
- Add cdogs-sdl-gcc-14.patch, fixes building with gcc14
-------------------------------------------------------------------
Sun May 19 15:26:47 UTC 2024 - Carsten Ziepke <kieltux@gmail.com>

View File

@ -27,6 +27,8 @@ Source: https://github.com/cxong/cdogs-sdl/archive/%{version}/%{name}-%{
Source1: cdogs-sdl.rpmlintrc
Patch0: fix-build.patch
Patch1: fix-env-script-interpreter.patch
# PATCH-FIX-UPSTREAM - cdogs-sdl-gcc-14.patch - https://sources.debian.org/patches/cdogs-sdl/2.1.0%2Bdfsg-2/gcc-14.patch/
Patch2: cdogs-sdl-gcc-14.patch
BuildRequires: cmake >= 3.12
BuildRequires: enet-devel
BuildRequires: fdupes