commit:     0cb85923dadaa502397f9df19c57d83421675934
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun Mar 31 18:00:33 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 31 23:33:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cb85923

sys-boot/vboot-utils: mark as LTO-unsafe

Cannot be tested, because tests fail LTO.

Not reporting since this is ancient chromiumOS code from years and years
ago, and frankly it seems like shouting into a void.

Closes: https://bugs.gentoo.org/880175
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild 
b/sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild
index 67f272d57fa0..e409d0298875 100644
--- a/sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild
+++ b/sys-boot/vboot-utils/vboot-utils-80_p20200108.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 # Can't use gitiles directly until b/19710536 is fixed.
 # This is the name of the latest release branch.
@@ -69,6 +69,7 @@ src_prepare() {
 }
 
 _emake() {
+
        local arch=$(tc-arch)
        emake \
                V=1 \
@@ -85,6 +86,10 @@ _emake() {
 }
 
 src_compile() {
+       # -Werror=lto-type-mismatch in tests
+       # https://bugs.gentoo.org/880175
+       filter-lto
+
        tc-export CC AR CXX PKG_CONFIG
        _emake FUZZ_TEST_BINS= TEST_BINS= all
 }

Reply via email to