public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ags] f44: rebase to 3.6.3 series
@ 2026-11-29  8:57 Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-11-29  8:57 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ags
            Branch : f44
            Commit : 72a9eee05c31e120e384964b099717b4b7bc7882
            Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
            Date   : 2026-11-28T22:53:49+01:00
            Stats  : +39/-89 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/ags/c/72a9eee05c31e120e384964b099717b4b7bc7882?branch=f44

            Log:
            rebase to 3.6.3 series

- drop obsolete patch
- declare bundled stb_image
- update tools list (drop agsunpak and crm2ash, add agf2dta and spritepak)

---
diff --git a/ags-build-tests-with-cxx17.patch b/ags-build-tests-with-cxx17.patch
index daea83b..af372f6 100644
--- a/ags-build-tests-with-cxx17.patch
+++ b/ags-build-tests-with-cxx17.patch
@@ -1,7 +1,7 @@
-diff -up ags-3.6.2.13/Common/CMakeLists.txt.cxx17 ags-3.6.2.13/Common/CMakeLists.txt
---- ags-3.6.2.13/Common/CMakeLists.txt.cxx17	2025-09-04 10:13:12.000000000 +0200
-+++ ags-3.6.2.13/Common/CMakeLists.txt	2025-09-05 00:52:47.300264039 +0200
-@@ -241,7 +241,7 @@ if(AGS_TESTS)
+diff -up ags-3.6.3.17/Common/CMakeLists.txt.cxx17 ags-3.6.3.17/Common/CMakeLists.txt
+--- ags-3.6.3.17/Common/CMakeLists.txt.cxx17	2026-11-17 01:01:42.000000000 +0100
++++ ags-3.6.3.17/Common/CMakeLists.txt	2026-11-28 22:42:14.262858930 +0100
+@@ -269,7 +269,7 @@ if(AGS_TESTS)
          test/version_test.cpp
      )
      set_target_properties(common_test PROPERTIES
@@ -10,10 +10,10 @@ diff -up ags-3.6.2.13/Common/CMakeLists.txt.cxx17 ags-3.6.2.13/Common/CMakeLists
          CXX_EXTENSIONS NO
          C_STANDARD 11
          C_EXTENSIONS NO
-diff -up ags-3.6.2.13/Compiler/CMakeLists.txt.cxx17 ags-3.6.2.13/Compiler/CMakeLists.txt
---- ags-3.6.2.13/Compiler/CMakeLists.txt.cxx17	2025-09-04 10:13:12.000000000 +0200
-+++ ags-3.6.2.13/Compiler/CMakeLists.txt	2025-09-05 00:54:51.632435890 +0200
-@@ -92,7 +92,7 @@ if(AGS_TESTS)
+diff -up ags-3.6.3.17/Compiler/CMakeLists.txt.cxx17 ags-3.6.3.17/Compiler/CMakeLists.txt
+--- ags-3.6.3.17/Compiler/CMakeLists.txt.cxx17	2026-11-17 01:01:42.000000000 +0100
++++ ags-3.6.3.17/Compiler/CMakeLists.txt	2026-11-28 22:42:14.263088368 +0100
+@@ -128,7 +128,7 @@ if(AGS_TESTS)
              test/cc_test_helper.h
      )
      set_target_properties(compiler_test PROPERTIES
@@ -22,10 +22,10 @@ diff -up ags-3.6.2.13/Compiler/CMakeLists.txt.cxx17 ags-3.6.2.13/Compiler/CMakeL
              CXX_EXTENSIONS NO
              C_STANDARD 11
              C_EXTENSIONS NO
-diff -up ags-3.6.2.13/Engine/CMakeLists.txt.cxx17 ags-3.6.2.13/Engine/CMakeLists.txt
---- ags-3.6.2.13/Engine/CMakeLists.txt.cxx17	2025-09-04 10:13:12.000000000 +0200
-+++ ags-3.6.2.13/Engine/CMakeLists.txt	2025-09-05 00:55:12.224488252 +0200
-@@ -649,7 +649,7 @@ if(AGS_TESTS)
+diff -up ags-3.6.3.17/Engine/CMakeLists.txt.cxx17 ags-3.6.3.17/Engine/CMakeLists.txt
+--- ags-3.6.3.17/Engine/CMakeLists.txt.cxx17	2026-11-17 01:01:42.000000000 +0100
++++ ags-3.6.3.17/Engine/CMakeLists.txt	2026-11-28 22:42:14.263250994 +0100
+@@ -652,7 +652,7 @@ if(AGS_TESTS)
          test/systemimports_test.cpp
      )
      set_target_properties(engine_test PROPERTIES
@@ -34,3 +34,15 @@ diff -up ags-3.6.2.13/Engine/CMakeLists.txt.cxx17 ags-3.6.2.13/Engine/CMakeLists
          CXX_EXTENSIONS NO
          C_STANDARD 11
          C_EXTENSIONS NO
+diff -up ags-3.6.3.17/Tools/CMakeLists.txt.cxx17 ags-3.6.3.17/Tools/CMakeLists.txt
+--- ags-3.6.3.17/Tools/CMakeLists.txt.cxx17	2026-11-17 01:01:42.000000000 +0100
++++ ags-3.6.3.17/Tools/CMakeLists.txt	2026-11-28 22:43:13.400660676 +0100
+@@ -281,7 +281,7 @@ if(AGS_TESTS)
+       test/scriptgen_test.cpp
+    )
+    set_target_properties(tools_test PROPERTIES
+-      CXX_STANDARD 11
++      CXX_STANDARD 17
+       CXX_EXTENSIONS NO
+       C_STANDARD 11
+       C_EXTENSIONS NO

diff --git a/ags-format-error.patch b/ags-format-error.patch
deleted file mode 100644
index dd8b4b2..0000000
--- a/ags-format-error.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -up ags-3.6.2.22/Compiler/preproc/preprocessor.cpp.cc_error ags-3.6.2.22/Compiler/preproc/preprocessor.cpp
---- ags-3.6.2.22/Compiler/preproc/preprocessor.cpp.cc_error	2026-10-21 22:10:28.000000000 +0200
-+++ ags-3.6.2.22/Compiler/preproc/preprocessor.cpp	2026-10-26 22:17:10.861509597 +0100
-@@ -152,7 +152,7 @@ namespace Preprocessor {
-         // 'currentline' and 'ccCurScriptName' are current
-         currentline = _lineNumber;
-         ccCurScriptName = _scriptName.GetCStr();
--        cc_error(msg.GetCStr());
-+        cc_error("%s", msg.GetCStr());
-     }
- 
-     void Preprocessor::ProcessConditionalDirective(String &directive, String &line)
-diff -up ags-3.6.2.22/Compiler/script/cs_parser.cpp.cc_error ags-3.6.2.22/Compiler/script/cs_parser.cpp
---- ags-3.6.2.22/Compiler/script/cs_parser.cpp.cc_error	2026-10-21 22:10:28.000000000 +0200
-+++ ags-3.6.2.22/Compiler/script/cs_parser.cpp	2026-10-26 22:16:31.344533508 +0100
-@@ -635,7 +635,7 @@ int accept_literal_or_constant_value(int
-     }
-   }
-   else {
--    cc_error((char*)errorMsg);
-+    cc_error("%s", errorMsg);
-     return -1;
-   }
-   return 0;

diff --git a/ags-freetype-CVE-2026-95512.patch b/ags-freetype-CVE-2026-95512.patch
deleted file mode 100644
index 1f7ecdb..0000000
--- a/ags-freetype-CVE-2026-95512.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 6df90bfa5cc6e0b4f768c18f890dcc049477d594 Mon Sep 17 00:00:00 2001
-From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
-Date: Mon, 26 Oct 2026 18:40:29 +0100
-Subject: [PATCH] freetype 2.1.3: Limit subroutine dictionary overlaps
-
-Cherry-Picked-From: f3ca71c9900fe860849b3163a6e2c1e765b291d9
-
-Fixes: CVE-2026-95512
----
- Common/libsrc/freetype-2.1.3/src/cid/cidload.c | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/Common/libsrc/freetype-2.1.3/src/cid/cidload.c b/Common/libsrc/freetype-2.1.3/src/cid/cidload.c
-index 19cfab50f..ed21bc508 100644
---- a/Common/libsrc/freetype-2.1.3/src/cid/cidload.c
-+++ b/Common/libsrc/freetype-2.1.3/src/cid/cidload.c
-@@ -395,6 +395,7 @@
-     CID_Subrs     subr;
-     FT_UInt       max_offsets = 0;
-     FT_ULong*     offsets = 0;
-+    FT_ULong      cum_len = 0;
- 
- 
-     if ( FT_NEW_ARRAY( face->subrs, cid->num_dicts ) )
-@@ -436,6 +437,14 @@
-       /* now, compute the size of subrs charstrings, */
-       /* allocate, and read them                     */
-       data_len = offsets[num_subrs] - offsets[0];
-+      cum_len += data_len;
-+
-+      if ( cum_len / 4 > stream->size )
-+      {
-+        FT_ERROR(( "cid_read_subrs: excessive overlaps\n" ));
-+        error = CID_Err_Invalid_File_Format;
-+        goto Fail;
-+      }
- 
-       if ( FT_NEW_ARRAY( subr->code, num_subrs + 1 ) ||
-                FT_ALLOC( subr->code[0], data_len )   )
--- 
-2.56.0
-

diff --git a/ags.spec b/ags.spec
index e3fbddb..c631997 100644
--- a/ags.spec
+++ b/ags.spec
@@ -6,16 +6,14 @@
 
 Name: ags
 Summary: Engine for creating and running videogames of adventure (quest) genre
-Version: 3.6.2.22
+Version: 3.6.3.17
 URL:     http://www.adventuregamestudio.co.uk/site/ags/
 Release: 1%{?dist}
 Source0: https://github.com/adventuregamestudio/ags/archive/%{fver}/ags-%{fver}.tar.gz
 Patch0: ags-use-system-libraries.patch
+# Fedora's newer gtest requires C++17
+# https://github.com/adventuregamestudio/ags/issues/2762
 Patch1: ags-build-tests-with-cxx17.patch
-# backport patch for CVE-2026-95512 to bundled freetype
-Patch2: ags-freetype-CVE-2026-95512.patch
-# fix compilation error from https://github.com/adventuregamestudio/ags/commit/713b8bb673fdf4383d0b7fa4f15e021df8e0affb
-Patch3: ags-format-error.patch
 # Most code is under Artistic-2.0, except:
 # Common/libsrc/aastr-0.1.1: LicenseRef-Fedora-UltraPermissive
 # Common/libsrc/alfont-2.0.9: FTL
@@ -63,6 +61,8 @@ Provides: bundled(apeg) = 1.2.1
 # https://web.archive.org/web/20040104090747/http://www.alphalink.com.au/~tjaden/libcda/index.html (zlib)
 # dead upstream
 Provides: bundled(libcda) = 0.5
+# bundled stb_image is modified
+Provides: bundled(stb_image) = 2.30
 
 %description
 Adventure Game Studio (AGS) - is the IDE and the engine meant for creating and
@@ -83,8 +83,6 @@ This package contains the AGS engine game development tools.
 %setup -q
 %patch 0 -p1 -b .orig
 %patch 1 -p1 -b .cxx17
-%patch 2 -p1 -b .CVE-2026-95512
-%patch 3 -p1 -b .cc_error
 # delete unused bundled stuff
 pushd Common/libinclude
 rm -r ogg
@@ -104,7 +102,7 @@ rm -r vorbis
 popd
 pushd libsrc
 rm -r glm
-rm -r miniz
+rm -r miniz/miniz.{c,h}
 %if %{with openal}
 rm -r mojoAL
 %endif
@@ -145,14 +143,20 @@ mv Changes.txt.utf-8 Changes.txt
 %files tools
 %{_bindir}/agscc
 %{_bindir}/agf2dlgasc
+%{_bindir}/agf2dta
 %{_bindir}/agfexport
 %{_bindir}/agspak
-%{_bindir}/agsunpak
-%{_bindir}/crm2ash
 %{_bindir}/crmpak
+%{_bindir}/spritepak
 %{_bindir}/trac
 
 %changelog
+* Sat Nov 28 2026 Dominik Mierzejewski <dominik@greysector.net> - 3.6.3.17-1
+- rebase to 3.6.3 series
+- drop obsolete patch
+- declare bundled stb_image
+- update tools list (drop agsunpak and crm2ash, add agf2dta and spritepak)
+
 * Mon Oct 26 2026 Dominik Mierzejewski <dominik@greysector.net> - 3.6.2.22-1
 - update to 3.6.2.22 (resolves rhbz#2558938)
 - backport patch for CVE-2026-95512 to bundled freetype (resolves rhbz#2544963)

diff --git a/sources b/sources
index 30d255a..d50651d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (ags-v3.6.2.22.tar.gz) = d306368a97bbe0cae5171e27bd983992f7a6c61d323cfc3acd23073861eb8beed482af06b2bdf904bdc523e11350652c1a561f943f9f1b27596cb8367c3d482b
+SHA512 (ags-v3.6.3.17.tar.gz) = 438543f7bba44c45164b4c238d8ca6e7ee9f6ec15718ef3a3191ca4bfce0939875333a6c2b2939abfa03551eaefbaa44e7b1540ae057f7cc43fdaccc6d2e53e7

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-29  8:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29  8:57 [rpms/ags] f44: rebase to 3.6.3 series Dominik 'Rathann' Mierzejewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox