summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>2021-05-26 00:00:00 +0000
committerMike Gilbert <floppym@gentoo.org>2021-05-31 19:01:39 -0400
commit929e2ffe3708f6c6d2f409fa50b6a222874d4319 (patch)
tree673e502b2a1c0781da3b91e128d24093b8b5af2b /dev-libs/protobuf/protobuf-3.15.7.ebuild
parentdev-java/protobuf-java: Use Java 1.8 ABI. (diff)
downloadgentoo-929e2ffe3708f6c6d2f409fa50b6a222874d4319.tar.gz
gentoo-929e2ffe3708f6c6d2f409fa50b6a222874d4319.tar.bz2
gentoo-929e2ffe3708f6c6d2f409fa50b6a222874d4319.zip
dev-libs/protobuf: Disable tests failing on 32-bit architectures.
Closes: https://bugs.gentoo.org/788436 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-libs/protobuf/protobuf-3.15.7.ebuild')
-rw-r--r--dev-libs/protobuf/protobuf-3.15.7.ebuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/dev-libs/protobuf/protobuf-3.15.7.ebuild b/dev-libs/protobuf/protobuf-3.15.7.ebuild
index 9cadeaf4923..d1feac0db81 100644
--- a/dev-libs/protobuf/protobuf-3.15.7.ebuild
+++ b/dev-libs/protobuf/protobuf-3.15.7.ebuild
@@ -49,6 +49,15 @@ src_prepare() {
# https://github.com/protocolbuffers/protobuf/issues/8082
sed -e "/^TEST_F(IoTest, LargeOutput) {$/,/^}$/d" -i src/google/protobuf/io/zero_copy_stream_unittest.cc || die
+ # https://github.com/protocolbuffers/protobuf/issues/8459
+ sed \
+ -e "/^TEST(ArenaTest, BlockSizeSmallerThanAllocation) {$/a\\ if (sizeof(void*) == 4) {\n GTEST_SKIP();\n }" \
+ -e "/^TEST(ArenaTest, SpaceAllocated_and_Used) {$/a\\ if (sizeof(void*) == 4) {\n GTEST_SKIP();\n }" \
+ -i src/google/protobuf/arena_unittest.cc || die
+
+ # https://github.com/protocolbuffers/protobuf/issues/8460
+ sed -e "/^TEST(AnyTest, TestPackFromSerializationExceedsSizeLimit) {$/a\\ if (sizeof(void*) == 4) {\n GTEST_SKIP();\n }" -i src/google/protobuf/any_test.cc || die
+
eautoreconf
}