From 6ab2bbc13f416e7ee2cd1c070e6c01ce88d389df Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Thu, 27 Feb 2025 12:36:24 +0100 Subject: [PATCH] update to 3.6.1.31 - fix build with C23 (resolves rhbz#2336273) --- ags-c23.patch | 12 ++++++++++++ ags.spec | 11 +++++++++-- sources | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 ags-c23.patch diff --git a/ags-c23.patch b/ags-c23.patch new file mode 100644 index 0000000..875b349 --- /dev/null +++ b/ags-c23.patch @@ -0,0 +1,12 @@ +diff -up ags-3.6.1.30/libsrc/allegro/src/file.c.c23 ags-3.6.1.30/libsrc/allegro/src/file.c +--- ags-3.6.1.30/libsrc/allegro/src/file.c.c23 2024-11-16 23:40:17.000000000 +0100 ++++ ags-3.6.1.30/libsrc/allegro/src/file.c 2025-01-13 01:02:43.238320733 +0100 +@@ -658,7 +658,7 @@ PACKFILE *pack_fopen_vtable(AL_CONST PAC + ASSERT(vtable->pf_feof); + ASSERT(vtable->pf_ferror); + +- if ((f = create_packfile(FALSE)) == NULL) ++ if ((f = create_packfile()) == NULL) + return NULL; + + f->vtable = vtable; diff --git a/ags.spec b/ags.spec index 001a6d6..9efb55a 100644 --- a/ags.spec +++ b/ags.spec @@ -12,10 +12,12 @@ Name: ags Summary: Engine for creating and running videogames of adventure (quest) genre -Version: 3.6.1.30 +Version: 3.6.1.31 URL: http://www.adventuregamestudio.co.uk/site/ags/ -Release: 2%{?dist} +Release: 1%{?dist} Source0: https://github.com/adventuregamestudio/ags/archive/%{fver}/ags-%{fver}.tar.gz +# fix build with C23 +Patch0: %{name}-c23.patch # unbundle freetype Patch2: %{name}-use-system-freetype.patch # use openal-soft @@ -68,6 +70,7 @@ since continued to be developed by contributors. %prep %setup -q +%patch -P0 -p1 -b .c23 %if %{with freetype} %patch -P2 -p1 -b .noft %endif @@ -117,6 +120,10 @@ make V=1 -C Engine PREFIX=%{buildroot}%{_prefix} install %{_bindir}/ags %changelog +* Thu Feb 27 2025 Dominik Mierzejewski - 3.6.1.31-1 +- update to 3.6.1.31 +- fix build with C23 (resolves rhbz#2336273) + * Thu Jan 16 2025 Fedora Release Engineering - 3.6.1.30-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/sources b/sources index 6e28134..f0ad311 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ags-v3.6.1.30.tar.gz) = c4e971f4b7d9286f4a1a7a12dfa6e0f7fbc9d5a5960e80fd147b15aa04615767ed359987cf9a0114078500f119571d8902b486268c10779d3abfcb27a1e0024e +SHA512 (ags-v3.6.1.31.tar.gz) = e57f3c70d69cd98ebc51dc6e2649e1e00cbae0e313208262cfa12beb6e72312f1423cd21f01bbef38bcc9507012df30da494a07118ff0bda57cf2ef2cc7d8d64