commit:     7e548173a7b8ae7d75ad48f0ba6db52545fc91e8
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun Mar  3 22:49:56 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar  3 23:18:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e548173

dev-build/meson: add additional test quirks

A couple tests fail with LTO enabled in make.conf. This is because they
do things like try to link C <-> rust and cannot handle incompatible
bytecode formats.

It's really irrelevant to the tests, since these are end-to-end project
tests for a build system and there's no actual value in testing meson
w.r.t. -flto. Meson already has some tests covering meson's own support
of LTO, and that's all that really matters.

Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-build/meson/meson-1.4.0_rc2.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-build/meson/meson-1.4.0_rc2.ebuild 
b/dev-build/meson/meson-1.4.0_rc2.ebuild
index aaa0403ac9dc..f089b6a869b1 100644
--- a/dev-build/meson/meson-1.4.0_rc2.ebuild
+++ b/dev-build/meson/meson-1.4.0_rc2.ebuild
@@ -28,7 +28,7 @@ else
        fi
 fi
 
-inherit bash-completion-r1 distutils-r1 toolchain-funcs
+inherit bash-completion-r1 flag-o-matic distutils-r1 toolchain-funcs
 
 DESCRIPTION="Open source build system"
 HOMEPAGE="https://mesonbuild.com/";
@@ -86,6 +86,11 @@ src_test() {
 
 python_test() {
        (
+               # meson has its own tests for LTO support. We don't need to 
verify that
+               # all tests work when they happen to use it. And in particular, 
this
+               # breaks rust.
+               filter-lto
+
                # remove unwanted python_wrapper_setup contents
                # We actually do want to non-error if python2 is installed and 
tested.
                remove="${T}/${EPYTHON}/bin:"

Reply via email to