1 |
commit: 227b524fe01fd6329b8dd8ee7bbd9bef97d106a7 |
2 |
Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 11 16:11:27 2022 +0000 |
4 |
Commit: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 23 07:28:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=227b524f |
7 |
|
8 |
dev-cpp/abseil-cpp: 20211102.0-r2: fix build on gcc-13 |
9 |
|
10 |
Fixes: https://bugs.gentoo.org/865211 |
11 |
Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org> |
12 |
|
13 |
dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild | 1 + |
14 |
.../files/abseil-cpp-20211102.0-r2-gcc-13.patch | 24 ++++++++++++++++++++++ |
15 |
2 files changed, 25 insertions(+) |
16 |
|
17 |
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild |
18 |
index 240032cfb51a..18e085a451a8 100644 |
19 |
--- a/dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild |
20 |
+++ b/dev-cpp/abseil-cpp/abseil-cpp-20211102.0-r2.ebuild |
21 |
@@ -39,6 +39,7 @@ PATCHES=( |
22 |
"${FILESDIR}/${PN}-20211102.0-fix-cuda-nvcc-build.patch" |
23 |
"${FILESDIR}/${PN}-20211102.0-r2-cuda11.6-compile-fix.patch" |
24 |
"${FILESDIR}/${PN}-20211102.0-r2-loong.patch" |
25 |
+ "${FILESDIR}/${PN}-20211102.0-r2-gcc-13.patch" |
26 |
) |
27 |
|
28 |
src_prepare() { |
29 |
|
30 |
diff --git a/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch b/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch |
31 |
new file mode 100644 |
32 |
index 000000000000..2a847be09e9a |
33 |
--- /dev/null |
34 |
+++ b/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch |
35 |
@@ -0,0 +1,24 @@ |
36 |
+https://github.com/abseil/abseil-cpp/commit/36a4b073f1e7e02ed7d1ac140767e36f82f09b7c |
37 |
+ |
38 |
+From 36a4b073f1e7e02ed7d1ac140767e36f82f09b7c Mon Sep 17 00:00:00 2001 |
39 |
+From: Sergei Trofimovich <slyich@×××××.com> |
40 |
+Date: Fri, 27 May 2022 22:27:58 +0100 |
41 |
+Subject: [PATCH] absl/strings/internal/str_format/extension.h: add missing |
42 |
+ <stdint.h> include |
43 |
+ |
44 |
+Without the change absl-cpp build fails on this week's gcc-13 snapshot as: |
45 |
+ |
46 |
+ /build/abseil-cpp/absl/strings/internal/str_format/extension.h:34:33: error: found ':' in nested-name-specifier, expected '::' |
47 |
+ 34 | enum class FormatConversionChar : uint8_t; |
48 |
+ | ^ |
49 |
+ | :: |
50 |
+--- a/absl/strings/internal/str_format/extension.h |
51 |
++++ b/absl/strings/internal/str_format/extension.h |
52 |
+@@ -17,6 +17,7 @@ |
53 |
+ #define ABSL_STRINGS_INTERNAL_STR_FORMAT_EXTENSION_H_ |
54 |
+ |
55 |
+ #include <limits.h> |
56 |
++#include <stdint.h> |
57 |
+ |
58 |
+ #include <cstddef> |
59 |
+ #include <cstring> |