[packages/protobuf] - disable death test broken on 32 bit archs
baggins
baggins at pld-linux.org
Sun Sep 21 13:59:02 CEST 2025
commit 65fadf2cbc7baa1549ce924443506a8eb95b63a6
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Sep 21 15:58:15 2025 +0200
- disable death test broken on 32 bit archs
no-death-test.patch | 11 +++++++++++
protobuf.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/protobuf.spec b/protobuf.spec
index d42c7a8..02adf7e 100644
--- a/protobuf.spec
+++ b/protobuf.spec
@@ -23,6 +23,7 @@ Source1: ftdetect-proto.vim
Patch0: python-no-broken-tests.patch
Patch1: no-utf8_range-pkgconfig.patch
Patch2: protobuf-x32.patch
+Patch3: no-death-test.patch
URL: https://github.com/google/protobuf/
BuildRequires: abseil-cpp-devel >= 20250814.0
%{?with_tests:BuildRequires: gmock-devel >= 1.9.0}
@@ -204,6 +205,7 @@ buforów protokołowych (Protocol Buffers).
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \
examples/add_person.py \
diff --git a/no-death-test.patch b/no-death-test.patch
new file mode 100644
index 0000000..d27a331
--- /dev/null
+++ b/no-death-test.patch
@@ -0,0 +1,11 @@
+--- /home/users/baggins/rpm/BUILD/protobuf-4.25.8-build/protobuf-4.25.8/src/google/protobuf/generated_enum_util_test.cc~ 2025-05-27 20:57:25.000000000 +0200
++++ /home/users/baggins/rpm/BUILD/protobuf-4.25.8-build/protobuf-4.25.8/src/google/protobuf/generated_enum_util_test.cc 2025-09-21 15:53:05.709993645 +0200
+@@ -39,7 +39,7 @@
+ namespace {
+
+ TEST(GenerateEnumDataTest, DebugChecks) {
+-#if GTEST_HAS_DEATH_TEST
++#if 0 //GTEST_HAS_DEATH_TEST
+ // Not unique
+ EXPECT_DEBUG_DEATH(GenerateEnumData({1, 1}), "sorted_and_unique");
+ // Not sorted
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/protobuf.git/commitdiff/65fadf2cbc7baa1549ce924443506a8eb95b63a6
More information about the pld-cvs-commit
mailing list