[packages/kf5-extra-cmake-modules] - added no-fatal-warnings.patch to not enable -Wl,--fatal-warnings - rel 2

witekfl witekfl at pld-linux.org
Tue Aug 16 11:41:53 CEST 2022


commit db15f84f7a8efee11c00a91504ca22d1f1fd2249
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Tue Aug 16 11:40:43 2022 +0200

    - added no-fatal-warnings.patch to not enable -Wl,--fatal-warnings
    - rel 2

 kf5-extra-cmake-modules.spec |  4 +++-
 no-fatal-warnings.patch      | 14 ++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/kf5-extra-cmake-modules.spec b/kf5-extra-cmake-modules.spec
index 28246ce..cbd743b 100644
--- a/kf5-extra-cmake-modules.spec
+++ b/kf5-extra-cmake-modules.spec
@@ -9,13 +9,14 @@ Summary:	Extra Cmake Modules for KF5
 Summary(pl.UTF-8):	Dodatkowe moduły Cmake'a dla KF5
 Name:		kf5-%{orgname}
 Version:	5.97.0
-Release:	1
+Release:	2
 License:	BSD
 Group:		Development/Building
 Source0:	https://download.kde.org/stable/frameworks/%{kdeframever}/%{orgname}-%{version}.tar.xz
 # Source0-md5:	9004ad7e58f5d3ef4a68ac9d3d432c51
 Patch0:		%{orgname}-tests.patch
 Patch1:		kdefetchtranslations-test.patch
+Patch2:		no-fatal-warnings.patch
 URL:		https://kde.org/
 BuildRequires:	cmake >= 3.16
 BuildRequires:	qt5-assistant >= 5.9.0
@@ -77,6 +78,7 @@ Dokumentacja API dla %{orgname}.
 %setup -q -n %{orgname}-%{version}
 %patch0 -p1
 %patch1 -p0
+%patch2 -p1
 
 # causes make install failure after running tests
 %{__sed} -i -e '/ECMToolchainAndroidTest/d' tests/CMakeLists.txt
diff --git a/no-fatal-warnings.patch b/no-fatal-warnings.patch
new file mode 100644
index 0000000..0d796e3
--- /dev/null
+++ b/no-fatal-warnings.patch
@@ -0,0 +1,14 @@
+diff -up extra-cmake-modules-5.97.0/kde-modules/KDECompilerSettings.cmake.dd extra-cmake-modules-5.97.0/kde-modules/KDECompilerSettings.cmake
+--- extra-cmake-modules-5.97.0/kde-modules/KDECompilerSettings.cmake.dd	2022-07-15 16:05:38.000000000 +0200
++++ extra-cmake-modules-5.97.0/kde-modules/KDECompilerSettings.cmake	2022-08-16 11:33:34.681624244 +0200
+@@ -537,8 +537,8 @@ if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU
+         (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT APPLE) OR
+         (CMAKE_CXX_COMPILER_ID STREQUAL "Intel" AND NOT WIN32))
+     # Linker warnings should be treated as errors
+-    set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_SHARED_LINKER_FLAGS}")
+-    set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_MODULE_LINKER_FLAGS}")
++    ##set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_SHARED_LINKER_FLAGS}")
++    ##set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings ${CMAKE_MODULE_LINKER_FLAGS}")
+ 
+     # Do not allow undefined symbols, even in non-symbolic shared libraries
+     # On OpenBSD we must disable this to allow the stuff to properly compile without explicit libc specification
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kf5-extra-cmake-modules.git/commitdiff/db15f84f7a8efee11c00a91504ca22d1f1fd2249



More information about the pld-cvs-commit mailing list