From 498c3911ed55a965e325b0c2f901e758e5f8f851 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 24 Aug 2022 21:52:29 +0300 Subject: [PATCH] wesnoth: Update to stable 1.16.5 Signed-off-by: Marko Lindqvist --- .../0003-Do-not-adjust-compiler-flags.patch | 23 +++++++------------ .../{wesnoth_1.16.2.bb => wesnoth_1.16.5.bb} | 2 +- 2 files changed, 9 insertions(+), 16 deletions(-) rename recipes-games/wesnoth/{wesnoth_1.16.2.bb => wesnoth_1.16.5.bb} (98%) diff --git a/recipes-games/wesnoth/files/0003-Do-not-adjust-compiler-flags.patch b/recipes-games/wesnoth/files/0003-Do-not-adjust-compiler-flags.patch index 08de3e4..205018f 100644 --- a/recipes-games/wesnoth/files/0003-Do-not-adjust-compiler-flags.patch +++ b/recipes-games/wesnoth/files/0003-Do-not-adjust-compiler-flags.patch @@ -19,22 +19,18 @@ Fixes build errors as: Upstream-Status: Inappropriate Inappropriate [oe specific] Signed-off-by: Andreas Müller ---- - CMakeLists.txt | 16 ++-------------- - 1 file changed, 2 insertions(+), 14 deletions(-) -diff --git a/CMakeLists.txt b/CMakeLists.txt -index aaf6923..04efa09 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -218,20 +218,8 @@ if(NOT WIN32) +diff -Nurd wesnoth-1.16.5/CMakeLists.txt wesnoth-1.16.5/CMakeLists.txt +--- wesnoth-1.16.5/CMakeLists.txt 2022-08-24 19:31:59.541867878 +0300 ++++ wesnoth-1.16.5/CMakeLists.txt 2022-08-24 19:33:34.818527791 +0300 +@@ -218,20 +218,8 @@ set(COMPILER_FLAGS "${COMPILER_FLAGS} -fno-omit-frame-pointer -fno-optimize-sibling-calls") endif() -### Set the final compiler flags. - -- set(COMPILER_FLAGS "${COMPILER_FLAGS} ${CXX_FLAGS_USER}") - +- set(COMPILER_FLAGS "${COMPILER_FLAGS} ${CXX_FLAGS_USER}") + - if(NOT "${CMAKE_CXX_FLAGS}" STREQUAL "${COMPILER_FLAGS}") - MESSAGE(STATUS "CMake compiler flags set to »${COMPILER_FLAGS}«") - set(CMAKE_CXX_FLAGS @@ -49,15 +45,12 @@ index aaf6923..04efa09 100644 # # # Determine optimization level -@@ -416,7 +404,7 @@ if(NOT WIN32) +@@ -416,7 +404,7 @@ # End setting profiler build options # # else() - set(CMAKE_CXX_FLAGS "/W3 /WX /wd4503 /wd4351 /wd4250 /wd4244 /wd4267 /we4239 /wd4275 /EHsc /utf-8" CACHE STRING "Global flags used by the CXX compiler during all builds." FORCE) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /WX /wd4503 /wd4351 /wd4250 /wd4244 /wd4267 /we4239 /wd4275 /EHsc /utf-8" CACHE STRING "Global flags used by the CXX compiler during all builds." FORCE) + set(CMAKE_C_FLAGS "/WX" CACHE STRING "Global flags used by the C compiler during all builds." FORCE) add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WIN7 -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -DNOMINMAX) - set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG_LUA") --- -2.34.1 - diff --git a/recipes-games/wesnoth/wesnoth_1.16.2.bb b/recipes-games/wesnoth/wesnoth_1.16.5.bb similarity index 98% rename from recipes-games/wesnoth/wesnoth_1.16.2.bb rename to recipes-games/wesnoth/wesnoth_1.16.5.bb index 3035f56..3dcd442 100644 --- a/recipes-games/wesnoth/wesnoth_1.16.2.bb +++ b/recipes-games/wesnoth/wesnoth_1.16.5.bb @@ -15,7 +15,7 @@ SRC_URI = " \ file://0003-Do-not-adjust-compiler-flags.patch \ " -SRC_URI[sha256sum] = "729fd0903a28af502240d08c0a27b9ff50e534677644b639d8fd33823a7a9799" +SRC_URI[sha256sum] = "b0c6dffaa8a4a5a6534488dc6646520df73af2c8c40d4a18448bbd59978cff0a" ARM_INSTRUCTION_SET = "arm"