commit:     39e137a9c96716ca452085cc09a005704d340329
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sun Dec  8 17:34:51 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan  5 20:34:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39e137a9

dev-libs/protobuf: 29.2 28.3-r1 28.0 manually set test sequence

Work around LTO induced bugs.

The test dir disappears because the temporary object goes out of scope when it
shouldn't, but is also not reinstated...

Closes: https://bugs.gentoo.org/942985
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/protobuf/protobuf-28.0.ebuild    | 10 +++++++++-
 dev-libs/protobuf/protobuf-28.3-r1.ebuild |  8 ++++++++
 dev-libs/protobuf/protobuf-29.2.ebuild    |  8 ++++++++
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/dev-libs/protobuf/protobuf-28.0.ebuild 
b/dev-libs/protobuf/protobuf-28.0.ebuild
index 7e7dfd9eae0a..08a9d6fd464f 100644
--- a/dev-libs/protobuf/protobuf-28.0.ebuild
+++ b/dev-libs/protobuf/protobuf-28.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2008-2024 Gentoo Authors
+# Copyright 2008-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -127,6 +127,14 @@ src_test() {
 
        multilib_foreach_abi setup_test_env
 
+       # Do headstands for LTO # 942985
+       local -x GTEST_FILTER
+       GTEST_FILTER="-FileDescriptorSetSource/EncodeDecodeTest*"
+
+       cmake-multilib_src_test
+
+       GTEST_FILTER="${GTEST_FILTER//-/}"
+
        cmake-multilib_src_test
 }
 

diff --git a/dev-libs/protobuf/protobuf-28.3-r1.ebuild 
b/dev-libs/protobuf/protobuf-28.3-r1.ebuild
index 3c5e73019120..ed7af8070753 100644
--- a/dev-libs/protobuf/protobuf-28.3-r1.ebuild
+++ b/dev-libs/protobuf/protobuf-28.3-r1.ebuild
@@ -131,6 +131,14 @@ src_test() {
 
        multilib_foreach_abi setup_test_env
 
+       # Do headstands for LTO # 942985
+       local -x GTEST_FILTER
+       GTEST_FILTER="-FileDescriptorSetSource/EncodeDecodeTest*"
+
+       cmake-multilib_src_test
+
+       GTEST_FILTER="${GTEST_FILTER//-/}"
+
        cmake-multilib_src_test
 }
 

diff --git a/dev-libs/protobuf/protobuf-29.2.ebuild 
b/dev-libs/protobuf/protobuf-29.2.ebuild
index 693b964a1462..3080cc281d8b 100644
--- a/dev-libs/protobuf/protobuf-29.2.ebuild
+++ b/dev-libs/protobuf/protobuf-29.2.ebuild
@@ -130,6 +130,14 @@ src_test() {
 
        multilib_foreach_abi setup_test_env
 
+       # Do headstands for LTO # 942985
+       local -x GTEST_FILTER
+       GTEST_FILTER="-FileDescriptorSetSource/EncodeDecodeTest*"
+
+       cmake-multilib_src_test
+
+       GTEST_FILTER="${GTEST_FILTER//-/}"
+
        cmake-multilib_src_test
 }
 

Reply via email to