Dominique Leuenberger 2021-10-12 19:49:56 +00:00 committed by Git OBS Bridge
commit 1a50d93a4f
3 changed files with 31 additions and 1 deletions

21
316eaea20975436.patch Normal file
View File

@ -0,0 +1,21 @@
From 316eaea209754368a57f445ea4dd016ecf8eded6 Mon Sep 17 00:00:00 2001
From: matthiakl <t-m.42@mailpost.spdns.org>
Date: Sat, 14 Aug 2021 19:24:08 +0200
Subject: [PATCH] Added missing direct incude (#5025)
---
src/network/bufferedconnection.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/network/bufferedconnection.h b/src/network/bufferedconnection.h
index fe974b9ea54..7e1ecf87e4d 100644
--- a/src/network/bufferedconnection.h
+++ b/src/network/bufferedconnection.h
@@ -20,6 +20,7 @@
#ifndef WL_NETWORK_BUFFEREDCONNECTION_H
#define WL_NETWORK_BUFFEREDCONNECTION_H
+#include <map>
#include <memory>
#include <mutex>
#include <thread>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 12 09:19:25 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Add upstream patch to fix build on Tumbleweed:
* 316eaea20975436.patch
-------------------------------------------------------------------
Sun Aug 22 10:56:56 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -23,6 +23,8 @@ Summary: Realtime strategy game involving map control
License: GPL-2.0-or-later
URL: https://www.widelands.org
Source0: https://github.com/%{name}/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- add missing 'map' include
Patch0: 316eaea20975436.patch
BuildRequires: SDL2_gfx-devel
BuildRequires: SDL2_image-devel
BuildRequires: SDL2_mixer-devel
@ -83,7 +85,8 @@ Additional debugging data for Widelands. This package is not needed for normal
operation.
%prep
%setup -q
%autosetup -p1
sed -i '/wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=uninitialized")/d' CMakeLists.txt
sed -i 's/\(install(TARGETS ${NAME} DESTINATION \)"."\( COMPONENT ExecutableFiles)\)/\1bin\2/' cmake/WlFunctions.cmake
sed -i 's#../share#share#g' xdg/CMakeLists.txt