Add patch for building on rhel8

epel9
Troy Dawson 4 years ago
parent b0dabb8c0c
commit e2cd1639d0

@ -0,0 +1,24 @@
From 47a9b6c58db012941a1c0e171c6abfdaef31acd1 Mon Sep 17 00:00:00 2001
From: Troy Dawson <tdawson@redhat.com>
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

@ -15,6 +15,11 @@ URL: https://invent.kde.org/plasma/%{name}
%endif %endif
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz 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: extra-cmake-modules
BuildRequires: kf5-rpm-macros BuildRequires: kf5-rpm-macros
# kf5 required # kf5 required

Loading…
Cancel
Save