From 75c4eaca10479779ec6ef97d4f583d49e808ccfe Mon Sep 17 00:00:00 2001 From: Christopher Fore Date: Thu, 15 Aug 2024 09:59:39 -0400 Subject: dev-cpp/yaml-cpp: Fix compilation on GCC 15 - Include patch from upstream PR (refer to patch file) - Tests pass Closes: https://bugs.gentoo.org/937412 Signed-off-by: Christopher Fore Closes: https://github.com/gentoo/gentoo/pull/38163 Signed-off-by: Sam James --- .../files/yaml-cpp-0.8.0-include-cstdint.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch (limited to 'dev-cpp/yaml-cpp/files') diff --git a/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch new file mode 100644 index 000000000000..d017b43fa440 --- /dev/null +++ b/dev-cpp/yaml-cpp/files/yaml-cpp-0.8.0-include-cstdint.patch @@ -0,0 +1,33 @@ +https://github.com/jbeder/yaml-cpp/pull/1310 + +From: Christopher Fore +Date: Wed, 14 Aug 2024 21:02:32 -0400 +Subject: [PATCH] emitterutils: Explicitly include + +GCC 15 will no longer include it by default, resulting in build +failures in projects that do not explicitly include it. + +Error: +src/emitterutils.cpp:221:11: error: 'uint16_t' was not declared in this scope + 221 | std::pair EncodeUTF16SurrogatePair(int codePoint) { + | ^~~~~~~~ +src/emitterutils.cpp:13:1: note: 'uint16_t' is defined in header ''; +this is probably fixable by adding '#include ' + 12 | #include "yaml-cpp/null.h" + +++ |+#include + 13 | #include "yaml-cpp/ostream_wrapper.h" + +Tests pass. + +Closes: #1307 +See-also: https://gcc.gnu.org/pipermail/gcc-cvs/2024-August/407124.html +See-also: https://bugs.gentoo.org/937412 +Signed-off-by: Christopher Fore +--- a/src/emitterutils.cpp ++++ b/src/emitterutils.cpp +@@ -1,4 +1,5 @@ + #include ++#include + #include + #include + -- cgit v1.2.3