commit: 07677fc22445c8e3c18352c0a7166ff20321fcca Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org> AuthorDate: Fri Aug 12 02:33:37 2022 +0000 Commit: WANG Xuerui <xen0n <AT> gentoo <DOT> org> CommitDate: Tue Aug 23 07:40:31 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07677fc2
dev-libs/liborcus: fix build on gcc-13 Closes: https://bugs.gentoo.org/865213 Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org> .../liborcus/files/liborcus-0.17.2-gcc-13.patch | 29 ++++++++++++++++++++++ dev-libs/liborcus/liborcus-0.17.2.ebuild | 1 + 2 files changed, 30 insertions(+) diff --git a/dev-libs/liborcus/files/liborcus-0.17.2-gcc-13.patch b/dev-libs/liborcus/files/liborcus-0.17.2-gcc-13.patch new file mode 100644 index 000000000000..fa4892053b10 --- /dev/null +++ b/dev-libs/liborcus/files/liborcus-0.17.2-gcc-13.patch @@ -0,0 +1,29 @@ +https://gitlab.com/orcus/orcus/-/commit/fa68d6a76778df26e41108e3400f4a907e351203 +https://gitlab.com/orcus/orcus/-/merge_requests/136 + +From fa68d6a76778df26e41108e3400f4a907e351203 Mon Sep 17 00:00:00 2001 +From: Kohei Yoshida <[email protected]> +Date: Tue, 19 Jul 2022 21:11:16 -0400 +Subject: [PATCH] Explicitly include <cstdint> header with GCC 13 (#162) + +c.f. https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes +--- a/include/orcus/base64.hpp ++++ b/include/orcus/base64.hpp +@@ -9,6 +9,7 @@ + #define __ORCUS_BASE64_HPP__ + + #include "env.hpp" ++#include <cstdint> + #include <vector> + #include <string> + +--- a/include/orcus/types.hpp ++++ b/include/orcus/types.hpp +@@ -8,6 +8,7 @@ + #ifndef INCLUDED_ORCUS_TYPES_HPP + #define INCLUDED_ORCUS_TYPES_HPP + ++#include <cstdint> + #include <cstdlib> + #include <vector> + #include <string> diff --git a/dev-libs/liborcus/liborcus-0.17.2.ebuild b/dev-libs/liborcus/liborcus-0.17.2.ebuild index cc350aa44e50..4d6c290cda94 100644 --- a/dev-libs/liborcus/liborcus-0.17.2.ebuild +++ b/dev-libs/liborcus/liborcus-0.17.2.ebuild @@ -39,6 +39,7 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${P}-clang.patch + "${FILESDIR}"/${P}-gcc-13.patch ) pkg_setup() {
