From e2cd1639d03f85e2453dde5544c33ddec8346585 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Jun 25 2021 17:14:03 +0000 Subject: Add patch for building on rhel8 --- diff --git a/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch b/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch new file mode 100644 index 0000000..f990c76 --- /dev/null +++ b/libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch @@ -0,0 +1,24 @@ +From 47a9b6c58db012941a1c0e171c6abfdaef31acd1 Mon Sep 17 00:00:00 2001 +From: Troy Dawson +Date: Fri, 25 Jun 2021 06:43:04 -0700 +Subject: [PATCH] fix processcore on gcc8 + +--- + processcore/CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/processcore/CMakeLists.txt b/processcore/CMakeLists.txt +index c28d364..d3da632 100644 +--- a/processcore/CMakeLists.txt ++++ b/processcore/CMakeLists.txt +@@ -36,6 +36,7 @@ target_link_libraries(processcore + KF5::CoreAddons + KF5::Service + ZLIB::ZLIB ++ stdc++fs + ) + + if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" ) +-- +2.27.0 + diff --git a/libksysguard.spec b/libksysguard.spec index fad5d9f..357e997 100644 --- a/libksysguard.spec +++ b/libksysguard.spec @@ -15,6 +15,11 @@ URL: https://invent.kde.org/plasma/%{name} %endif Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz +%if 0%{?rhel} && 0%{?rhel} <= 8 +# GCC 8 and older need stdc++fs link library set +Patch1: libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch +%endif + BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros # kf5 required