commit: 7bfb2e25be5e79c0d3a5b8e278c404ae1ad820d0 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Sep 24 19:29:52 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Sep 24 19:35:07 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bfb2e25
dev-libs/protobuf: filter LTO in 31.1 A bunch of people have hit this now that 31.1 has been stabilised so let's filter LTO here for now. What is not clear is why it only happens in some cases, e.g. I can't hit it on my workstation, but I can in a stable chroot. My guess is it uses some installed headers if available (and may require tests not be enabled as well). Bug: https://bugs.gentoo.org/963340 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/protobuf/protobuf-31.1.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev-libs/protobuf/protobuf-31.1.ebuild b/dev-libs/protobuf/protobuf-31.1.ebuild index 28aa05d20720..65df8ba8efc6 100644 --- a/dev-libs/protobuf/protobuf-31.1.ebuild +++ b/dev-libs/protobuf/protobuf-31.1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake-multilib dot-a elisp-common multilib +inherit cmake-multilib dot-a elisp-common flag-o-matic multilib # NOTE from https://github.com/protocolbuffers/protobuf/blob/main/cmake/dependencies.cmake ABSEIL_MIN_VER="20250127.0" @@ -77,6 +77,10 @@ src_prepare() { } multilib_src_configure() { + # bug #963340 (seems to only happen when upgrading from older pb, + # possibly w/o tests too). + filter-lto + # Currently, the only static library is libupb (and there is no # USE=static-libs), so optimize away the fat-lto build time penalty. use libupb && lto-guarantee-fat
