fix build with GCC14
This commit is contained in:
parent
8f5cdf0f4b
commit
54599fe33c
2 changed files with 16 additions and 0 deletions
12
ags-gcc14.patch
Normal file
12
ags-gcc14.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff -up ags-3.6.0.56/libsrc/allegro/src/file.c.gcc14 ags-3.6.0.56/libsrc/allegro/src/file.c
|
||||
--- ags-3.6.0.56/libsrc/allegro/src/file.c.gcc14 2024-01-08 22:35:50.000000000 +0100
|
||||
+++ ags-3.6.0.56/libsrc/allegro/src/file.c 2024-01-19 18:55:20.780279527 +0100
|
||||
@@ -504,7 +504,7 @@ char *get_filename(AL_CONST char *path)
|
||||
ptr = path;
|
||||
ret = ptr;
|
||||
for (;;) {
|
||||
- c = ugetxc(&ptr);
|
||||
+ c = ugetxc((char **)&ptr);
|
||||
if (!c) break;
|
||||
if ((c == '/') || (c == OTHER_PATH_SEPARATOR) || (c == DEVICE_SEPARATOR))
|
||||
ret = (char*)ptr;
|
||||
4
ags.spec
4
ags.spec
|
|
@ -15,6 +15,8 @@ Version: 3.6.0.56
|
|||
URL: http://www.adventuregamestudio.co.uk/site/ags/
|
||||
Release: 1%{?dist}
|
||||
Source0: https://github.com/adventuregamestudio/ags/archive/%{fver}/ags-%{fver}.tar.gz
|
||||
# fix build with GCC14
|
||||
Patch0: %{name}-gcc14.patch
|
||||
# unbundle freetype
|
||||
Patch2: %{name}-use-system-freetype.patch
|
||||
# use openal-soft
|
||||
|
|
@ -67,6 +69,7 @@ since continued to be developed by contributors.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .gcc14
|
||||
%if %{with freetype}
|
||||
%patch2 -p1 -b .noft
|
||||
%endif
|
||||
|
|
@ -117,6 +120,7 @@ make V=1 -C Engine PREFIX=%{buildroot}%{_prefix} install
|
|||
%changelog
|
||||
* Fri Jan 19 2024 Dominik Mierzejewski <dominik@greysector.net> - 3.6.0.56-1
|
||||
- update to 3.6.0.56
|
||||
- fix build with GCC14
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0.51-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue