From 4a9f110cac1ab507b992786c54e50c3330c1d1f3 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Thu, 11 Jan 2024 00:34:41 -0600 Subject: [PATCH] (maint) temporary pxp patch gcc 13 support --- configs/components/pxp-agent.rb | 1 + patches/pxp-agent/gcc-13.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 patches/pxp-agent/gcc-13.patch diff --git a/configs/components/pxp-agent.rb b/configs/components/pxp-agent.rb index dcd0c96..e5bce5a 100644 --- a/configs/components/pxp-agent.rb +++ b/configs/components/pxp-agent.rb @@ -78,6 +78,7 @@ else # These platforms use the default OS toolchain, rather than pl-build-tools cmake = 'cmake' + pkg.apply_patch 'patches/pxp-agent/gcc-13.patch' toolchain = '' special_flags += " -DCMAKE_CXX_FLAGS='#{settings[:cflags]} -Wno-deprecated -Wimplicit-fallthrough=0' " special_flags += ' -DENABLE_CXX_WERROR=OFF ' unless platform.name =~ /sles-15/ diff --git a/patches/pxp-agent/gcc-13.patch b/patches/pxp-agent/gcc-13.patch new file mode 100644 index 0000000..4b561e6 --- /dev/null +++ b/patches/pxp-agent/gcc-13.patch @@ -0,0 +1,12 @@ +diff --git a/lib/inc/pxp-agent/pxp_connector.hpp b/lib/inc/pxp-agent/pxp_connector.hpp +index de36ce9..c77ca17 100644 +--- a/lib/inc/pxp-agent/pxp_connector.hpp ++++ b/lib/inc/pxp-agent/pxp_connector.hpp +@@ -3,6 +3,7 @@ + #include + #include + #include ++#include + + namespace PCPClient { + struct ParsedChunks;