From f5b754230bba681f9eabcbdb4e58282bfda4cc34 Mon Sep 17 00:00:00 2001 From: Dominik 'Rathann' Mierzejewski Date: Wed, 5 Aug 2020 17:24:13 +0200 Subject: [PATCH] fix compilation on big-endian (missing include) --- ags-big.patch | 13 +++++++++++++ ags.spec | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 ags-big.patch diff --git a/ags-big.patch b/ags-big.patch new file mode 100644 index 0000000..864c34d --- /dev/null +++ b/ags-big.patch @@ -0,0 +1,13 @@ +diff -up ags-v.3.5.0.25/Common/util/compress.cpp.big ags-v.3.5.0.25/Common/util/compress.cpp +--- ags-v.3.5.0.25/Common/util/compress.cpp.big 2020-07-12 00:18:03.000000000 +0000 ++++ ags-v.3.5.0.25/Common/util/compress.cpp 2020-08-05 14:33:42.303360129 +0000 +@@ -25,6 +25,9 @@ + #include "util/lzw.h" + #include "util/misc.h" + #include "util/stream.h" ++#if AGS_PLATFORM_ENDIAN_BIG ++#include "util/bbop.h" ++#endif + + using namespace AGS::Common; + diff --git a/ags.spec b/ags.spec index a09adda..1f02761 100644 --- a/ags.spec +++ b/ags.spec @@ -16,6 +16,8 @@ Patch2: %{name}-use-system-freetype.patch Patch3: %{name}-gcc10.patch # use dynamic linking for dumb Patch4: %{name}-dynamic-dumb.patch +# fix compilation on big-endian (missing include) +Patch5: %{name}-big.patch License: Artistic 2.0 and BSD and Giftware and LGPLv2+ and Public Domain and zlib BuildRequires: alfont-devel BuildRequires: allegro-devel @@ -61,6 +63,7 @@ since continued to be developed by contributors. %patch2 -p1 -b .noft %patch3 -p1 -b .gcc10 %patch4 -p1 -b .dynamic +%patch5 -p1 -b .big # delete unused bundled stuff pushd Common/libinclude rm -r internal @@ -101,6 +104,7 @@ make V=1 -C Engine PREFIX=%{buildroot}%{_prefix} install - fix compilation with GCC10 (missing cstdio includes) - unbundle freetype - fix linking against system libdumb +- fix compilation on big-endian (missing include) * Fri Jul 31 2020 Fedora Release Engineering - 3.4.4.2-4 - Second attempt - Rebuilt for