[packages/performous] - disable Werror to prevent benign warning breaking build on non x86_64 archs
baggins
baggins at pld-linux.org
Fri Oct 20 23:54:01 CEST 2023
commit 76e9df7db0f8bb4bcbe7e8935d9bb8719d418432
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Oct 20 23:53:13 2023 +0200
- disable Werror to prevent benign warning breaking build on non x86_64 archs
no-Werror.patch | 15 +++++++++++++++
performous.spec | 4 ++++
2 files changed, 19 insertions(+)
---
diff --git a/performous.spec b/performous.spec
index 8e19d78..a7424ad 100644
--- a/performous.spec
+++ b/performous.spec
@@ -12,6 +12,7 @@ Source1: compact_enc_det.tar.xz
# Source1-md5: c4af58e784fe054b787254acf5c1af12
Patch0: ced-no-forced-cxx11.patch
Patch1: find-ced.patch
+Patch2: no-Werror.patch
URL: http://performous.org/
BuildRequires: ImageMagick-c++-devel
BuildRequires: SDL2-devel >= 2
@@ -24,8 +25,10 @@ BuildRequires: fontconfig-devel
BuildRequires: gettext-tools
BuildRequires: glew-devel
BuildRequires: glibmm-devel
+BuildRequires: gmock-devel
BuildRequires: help2man
BuildRequires: libepoxy-devel >= 1.2
+BuildRequires: libfmt-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: librsvg-devel
@@ -61,6 +64,7 @@ wykrywane.
%setup -q -a1
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
cd compact_enc_det
diff --git a/no-Werror.patch b/no-Werror.patch
new file mode 100644
index 0000000..9724f18
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,15 @@
+--- performous-1.3.0/game/CMakeLists.txt~ 2023-08-21 21:48:26.000000000 +0200
++++ performous-1.3.0/game/CMakeLists.txt 2023-10-20 23:51:23.466946951 +0200
+@@ -311,12 +311,6 @@
+ 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)
+ include_directories("${CMAKE_CURRENT_BINARY_DIR}")
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/performous.git/commitdiff/76e9df7db0f8bb4bcbe7e8935d9bb8719d418432
More information about the pld-cvs-commit
mailing list