From 74180a727a009e7640f987b2dff470d1012315dc Mon Sep 17 00:00:00 2001 From: Marc Deop Date: Mon, 17 Jan 2022 19:43:00 +0100 Subject: [PATCH] fix add patch to build with gcc 12 --- ...5097bd99999553f777a8ecfdc53e8ec705c9.patch | 25 +++++++++++++++++++ libksysguard.spec | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 de755097bd99999553f777a8ecfdc53e8ec705c9.patch diff --git a/de755097bd99999553f777a8ecfdc53e8ec705c9.patch b/de755097bd99999553f777a8ecfdc53e8ec705c9.patch new file mode 100644 index 0000000..eb32be0 --- /dev/null +++ b/de755097bd99999553f777a8ecfdc53e8ec705c9.patch @@ -0,0 +1,25 @@ +From de755097bd99999553f777a8ecfdc53e8ec705c9 Mon Sep 17 00:00:00 2001 +From: Fabian Vogt +Date: Mon, 17 Jan 2022 16:12:41 +0100 +Subject: [PATCH] Fix build with GCC 12, missing include + +std::memcpy needs #include +--- + processcore/plugins/network/helper/ConnectionMapping.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/processcore/plugins/network/helper/ConnectionMapping.cpp b/processcore/plugins/network/helper/ConnectionMapping.cpp +index 3825b99..4bd5b64 100644 +--- a/processcore/plugins/network/helper/ConnectionMapping.cpp ++++ b/processcore/plugins/network/helper/ConnectionMapping.cpp +@@ -7,6 +7,7 @@ + + #include "ConnectionMapping.h" + ++#include + #include + #include + #include +-- +GitLab + diff --git a/libksysguard.spec b/libksysguard.spec index 37ca6f4..dc17f96 100644 --- a/libksysguard.spec +++ b/libksysguard.spec @@ -17,6 +17,8 @@ Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}. # GCC 8 and older need stdc++fs link library set Patch1: libksysguard-5.22.2.1_fix-processcore-on-gcc8.patch +# GCC 12 fix (missing include) +Patch100: de755097bd99999553f777a8ecfdc53e8ec705c9.patch BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros