From fed5a2d9f024a4f73e79cd43db9b7997b981df1d Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Mon, 20 Jul 2026 01:06:36 +0200 Subject: [PATCH] games-arcade/performous: do not pass -Werror Closes: https://bugs.gentoo.org/979178 Signed-off-by: Nicolas PARLANT Part-of: https://codeberg.org/gentoo/gentoo/pulls/1469 Merges: https://codeberg.org/gentoo/gentoo/pulls/1469 Signed-off-by: Sam James --- .../files/performous-1.3.1-no_werror.patch | 32 +++++++++++++++++++ .../performous-1.3.1_p20251224.ebuild | 1 + 2 files changed, 33 insertions(+) create mode 100644 games-arcade/performous/files/performous-1.3.1-no_werror.patch diff --git a/games-arcade/performous/files/performous-1.3.1-no_werror.patch b/games-arcade/performous/files/performous-1.3.1-no_werror.patch new file mode 100644 index 0000000000000..0fded3869e31e --- /dev/null +++ b/games-arcade/performous/files/performous-1.3.1-no_werror.patch @@ -0,0 +1,32 @@ +remove -Werror +see https://bugs.gentoo.org/979178 +--- a/game/CMakeLists.txt ++++ b/game/CMakeLists.txt +@@ -302,12 +302,6 @@ if(WIN32) + set_target_properties(performous PROPERTIES OUTPUT_NAME "Performous") + endif() + +-if(WIN32 AND MSVC) +-# target_compile_options(performous PUBLIC /WX) +-else() +- target_compile_options(performous PUBLIC -Werror) +-endif() +- + # Generate config.hh + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.hh" "${CMAKE_CURRENT_BINARY_DIR}/config.hh" @ONLY) + target_include_directories(performous PRIVATE "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}") +--- a/testing/CMakeLists.txt ++++ b/testing/CMakeLists.txt +@@ -74,12 +74,6 @@ if(GTest_FOUND) + + target_include_directories(performous_test PRIVATE ".." "../game" "${Performous_BINARY_DIR}/game") + +- if(WIN32 AND MSVC) +-# target_compile_options(performous_test PUBLIC /WX) +- else() +- target_compile_options(performous_test PUBLIC -Werror) +- endif() +- + find_package(SDL2 REQUIRED) + if (TARGET SDL2::SDL2) + target_link_libraries(performous_test PRIVATE SDL2::SDL2) diff --git a/games-arcade/performous/performous-1.3.1_p20251224.ebuild b/games-arcade/performous/performous-1.3.1_p20251224.ebuild index a06a37dd04012..13ac14e859a01 100644 --- a/games-arcade/performous/performous-1.3.1_p20251224.ebuild +++ b/games-arcade/performous/performous-1.3.1_p20251224.ebuild @@ -76,6 +76,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.3.1-uncompressed_docs.patch # use cblas implementation instead of restricting to openblas "${FILESDIR}"/${PN}-1.3.1-cblas.patch + "${FILESDIR}"/${PN}-1.3.1-no_werror.patch # PR pending https://github.com/performous/performous/pull/1105.patch "${FILESDIR}"/${PN}-1.3.1-boost_1.89.patch )