From 0a3a3b88797dcd341eb783941ad481a37d382404 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Jun 29 2021 19:29:58 +0000 Subject: use cmake conditional for gcc < 9 instead Pretty sure this works, preliminary testing. Feel free to revert if not --- diff --git a/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch b/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch index f990c76..dcebad5 100644 --- a/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch +++ b/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch @@ -15,7 +15,7 @@ index c28d364..d3da632 100644 KF5::CoreAddons KF5::Service ZLIB::ZLIB -+ stdc++fs ++ $<$,$,9.0>>:stdc++fs> ) if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) diff --git a/libksysguard.spec b/libksysguard.spec index 6aaa8fd..8c488bb 100644 --- a/libksysguard.spec +++ b/libksysguard.spec @@ -16,7 +16,6 @@ URL: https://invent.kde.org/plasma/%{name} Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz # GCC 8 and older need stdc++fs link library set -# GCC 9+ have it set by default. It does not harm to set it again. Patch1: libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch BuildRequires: extra-cmake-modules