1 |
commit: 61e8aec7a404a47df8da672719a5924fc45bcf4d |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 2 20:34:41 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 20:34:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61e8aec7 |
7 |
|
8 |
dev-libs/protobuf: sync live ebuild |
9 |
|
10 |
Bug: https://bugs.gentoo.org/868105 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-libs/protobuf/protobuf-9999.ebuild | 31 ++++++++++++++++++++++++++++--- |
14 |
1 file changed, 28 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/dev-libs/protobuf/protobuf-9999.ebuild b/dev-libs/protobuf/protobuf-9999.ebuild |
17 |
index ced1c5bfaba7..0e620717ec44 100644 |
18 |
--- a/dev-libs/protobuf/protobuf-9999.ebuild |
19 |
+++ b/dev-libs/protobuf/protobuf-9999.ebuild |
20 |
@@ -1,7 +1,7 @@ |
21 |
# Copyright 2008-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI="7" |
25 |
+EAPI=8 |
26 |
|
27 |
inherit autotools elisp-common flag-o-matic multilib-minimal toolchain-funcs |
28 |
|
29 |
@@ -18,11 +18,11 @@ if [[ "${PV}" == "9999" ]]; then |
30 |
SRC_URI="" |
31 |
else |
32 |
SRC_URI="https://github.com/protocolbuffers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" |
34 |
fi |
35 |
|
36 |
LICENSE="BSD" |
37 |
SLOT="0/31" |
38 |
-KEYWORDS="" |
39 |
IUSE="emacs examples static-libs test zlib" |
40 |
RESTRICT="!test? ( test )" |
41 |
|
42 |
@@ -35,18 +35,43 @@ RDEPEND="emacs? ( app-editors/emacs:* ) |
43 |
PATCHES=( |
44 |
"${FILESDIR}/${PN}-3.19.0-disable_no-warning-test.patch" |
45 |
"${FILESDIR}/${PN}-3.19.0-system_libraries.patch" |
46 |
- "${FILESDIR}/${PN}-3.16.0-protoc_input_output_files.patch" |
47 |
+ "${FILESDIR}/${PN}-3.20.1-protoc_input_output_files.patch" |
48 |
) |
49 |
|
50 |
DOCS=(CHANGES.txt CONTRIBUTORS.txt README.md) |
51 |
|
52 |
src_prepare() { |
53 |
default |
54 |
+ |
55 |
+ # https://github.com/protocolbuffers/protobuf/issues/7413 |
56 |
+ sed -e "/^AC_PROG_CXX_FOR_BUILD$/d" -i configure.ac || die |
57 |
+ |
58 |
+ # https://github.com/protocolbuffers/protobuf/issues/8082 |
59 |
+ sed -e "/^TEST_F(IoTest, LargeOutput) {$/,/^}$/d" -i src/google/protobuf/io/zero_copy_stream_unittest.cc || die |
60 |
+ |
61 |
+ # https://github.com/protocolbuffers/protobuf/issues/8459 |
62 |
+ sed \ |
63 |
+ -e "/^TEST(ArenaTest, BlockSizeSmallerThanAllocation) {$/a\\ if (sizeof(void*) == 4) {\n GTEST_SKIP();\n }" \ |
64 |
+ -e "/^TEST(ArenaTest, SpaceAllocated_and_Used) {$/a\\ if (sizeof(void*) == 4) {\n GTEST_SKIP();\n }" \ |
65 |
+ -i src/google/protobuf/arena_unittest.cc || die |
66 |
+ |
67 |
+ # https://github.com/protocolbuffers/protobuf/issues/8460 |
68 |
+ sed -e "/^TEST(AnyTest, TestPackFromSerializationExceedsSizeLimit) {$/a\\ if (sizeof(void*) == 4) {\n GTEST_SKIP();\n }" -i src/google/protobuf/any_test.cc || die |
69 |
+ |
70 |
+ # https://github.com/protocolbuffers/protobuf/issues/9433 |
71 |
+ sed -e "/^[[:space:]]*static_assert(alignof(U) <= 8, \"\");$/d" -i src/google/protobuf/descriptor.cc || die |
72 |
+ |
73 |
eautoreconf |
74 |
} |
75 |
|
76 |
src_configure() { |
77 |
append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI |
78 |
+ |
79 |
+ if tc-ld-is-gold; then |
80 |
+ # https://sourceware.org/bugzilla/show_bug.cgi?id=24527 |
81 |
+ tc-ld-disable-gold |
82 |
+ fi |
83 |
+ |
84 |
multilib-minimal_src_configure |
85 |
} |