diff --git a/configs/components/pxp-agent.rb b/configs/components/pxp-agent.rb index abc5c32..2218edd 100644 --- a/configs/components/pxp-agent.rb +++ b/configs/components/pxp-agent.rb @@ -71,6 +71,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;