Gentoo Archives: gentoo-commits

From: WANG Xuerui <xen0n@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liborcus/files/, dev-libs/liborcus/
Date: Tue, 23 Aug 2022 07:41:37
Message-Id: 1661240431.07677fc22445c8e3c18352c0a7166ff20321fcca.xen0n@gentoo
1 commit: 07677fc22445c8e3c18352c0a7166ff20321fcca
2 Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 12 02:33:37 2022 +0000
4 Commit: WANG Xuerui <xen0n <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 07:40:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07677fc2
7
8 dev-libs/liborcus: fix build on gcc-13
9
10 Closes: https://bugs.gentoo.org/865213
11 Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org>
12
13 .../liborcus/files/liborcus-0.17.2-gcc-13.patch | 29 ++++++++++++++++++++++
14 dev-libs/liborcus/liborcus-0.17.2.ebuild | 1 +
15 2 files changed, 30 insertions(+)
16
17 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
18 new file mode 100644
19 index 000000000000..fa4892053b10
20 --- /dev/null
21 +++ b/dev-libs/liborcus/files/liborcus-0.17.2-gcc-13.patch
22 @@ -0,0 +1,29 @@
23 +https://gitlab.com/orcus/orcus/-/commit/fa68d6a76778df26e41108e3400f4a907e351203
24 +https://gitlab.com/orcus/orcus/-/merge_requests/136
25 +
26 +From fa68d6a76778df26e41108e3400f4a907e351203 Mon Sep 17 00:00:00 2001
27 +From: Kohei Yoshida <kohei.yoshida@×××××.com>
28 +Date: Tue, 19 Jul 2022 21:11:16 -0400
29 +Subject: [PATCH] Explicitly include <cstdint> header with GCC 13 (#162)
30 +
31 +c.f. https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
32 +--- a/include/orcus/base64.hpp
33 ++++ b/include/orcus/base64.hpp
34 +@@ -9,6 +9,7 @@
35 + #define __ORCUS_BASE64_HPP__
36 +
37 + #include "env.hpp"
38 ++#include <cstdint>
39 + #include <vector>
40 + #include <string>
41 +
42 +--- a/include/orcus/types.hpp
43 ++++ b/include/orcus/types.hpp
44 +@@ -8,6 +8,7 @@
45 + #ifndef INCLUDED_ORCUS_TYPES_HPP
46 + #define INCLUDED_ORCUS_TYPES_HPP
47 +
48 ++#include <cstdint>
49 + #include <cstdlib>
50 + #include <vector>
51 + #include <string>
52
53 diff --git a/dev-libs/liborcus/liborcus-0.17.2.ebuild b/dev-libs/liborcus/liborcus-0.17.2.ebuild
54 index cc350aa44e50..4d6c290cda94 100644
55 --- a/dev-libs/liborcus/liborcus-0.17.2.ebuild
56 +++ b/dev-libs/liborcus/liborcus-0.17.2.ebuild
57 @@ -39,6 +39,7 @@ DEPEND="${RDEPEND}
58
59 PATCHES=(
60 "${FILESDIR}"/${P}-clang.patch
61 + "${FILESDIR}"/${P}-gcc-13.patch
62 )
63
64 pkg_setup() {