]> git.pld-linux.org Git - packages/kf5-extra-cmake-modules.git/commitdiff
- added no-fatal-warnings.patch to not enable -Wl,--fatal-warnings
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Tue, 16 Aug 2022 09:40:43 +0000 (11:40 +0200)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Tue, 16 Aug 2022 09:40:43 +0000 (11:40 +0200)
- rel 2

kf5-extra-cmake-modules.spec
no-fatal-warnings.patch [new file with mode: 0644]

index 28246cee0b54996740929bf0031212f403cd960c..cbd743b661d28a21212931b4b3d363fece8c12bc 100644 (file)
@@ -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 (file)
index 0000000..0d796e3
--- /dev/null
@@ -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
This page took 0.971118 seconds and 4 git commands to generate.