Accepting request 1220336 from games
OBS-URL: https://build.opensuse.org/request/show/1220336 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cdogs-sdl?expand=0&rev=25
This commit is contained in:
commit
3d2bbb08c1
16
cdogs-sdl-gcc-14.patch
Normal file
16
cdogs-sdl-gcc-14.patch
Normal 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;
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user