[packages/widelands] - fix building with gcc 11, rel 2
baggins
baggins at pld-linux.org
Sat Jan 22 22:46:52 CET 2022
commit 1a4f94fed87fcc5e2103fa122eb9488654509079
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Jan 22 22:46:31 2022 +0100
- fix building with gcc 11, rel 2
gcc11.patch | 10 ++++++++++
widelands.spec | 4 +++-
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/widelands.spec b/widelands.spec
index 4f85d81..148fe22 100644
--- a/widelands.spec
+++ b/widelands.spec
@@ -7,7 +7,7 @@ Summary: A real-time build-up strategy game
Summary(pl.UTF-8): Gra strategiczna czasu rzeczywistego z budowaniem
Name: widelands
Version: 1.0
-Release: 1
+Release: 2
License: GPL v2+
Group: X11/Applications/Games
#Source0Download: https://wl.widelands.org/wiki/Download/#release
@@ -15,6 +15,7 @@ Source0: https://launchpad.net/%{name}/1.x/%{version}/+download/%{name}-%{versio
# Source0-md5: ac576b20273205a09bc1e6dc19550499
Patch0: %{name}-pld.patch
Patch1: %{name}-install.patch
+Patch2: gcc11.patch
URL: https://wl.widelands.org/
BuildRequires: Mesa-libGL-devel
BuildRequires: SDL2-devel >= 2
@@ -77,6 +78,7 @@ budowaniem, zainspirowanej Settlers II.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
install -d build
diff --git a/gcc11.patch b/gcc11.patch
new file mode 100644
index 0000000..503cb4a
--- /dev/null
+++ b/gcc11.patch
@@ -0,0 +1,10 @@
+--- widelands-1.0/src/network/bufferedconnection.h~ 2021-06-14 11:22:20.000000000 +0200
++++ widelands-1.0/src/network/bufferedconnection.h 2022-01-22 22:32:52.167781192 +0100
+@@ -20,6 +20,7 @@
+ #ifndef WL_NETWORK_BUFFEREDCONNECTION_H
+ #define WL_NETWORK_BUFFEREDCONNECTION_H
+
++#include <map>
+ #include <memory>
+ #include <mutex>
+ #include <thread>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/widelands.git/commitdiff/1a4f94fed87fcc5e2103fa122eb9488654509079
More information about the pld-cvs-commit
mailing list