commit:     6eac8f2838eee9953bfc4ab0ece59cf396d6e026
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 26 12:52:04 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sun Jun 26 12:54:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eac8f28

sys-devel/mold: fix tests

Fix LD_PRELOAD path in mold-wrapper tests, and delete more tests that
require QEMU.

Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 sys-devel/mold/mold-9999.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys-devel/mold/mold-9999.ebuild b/sys-devel/mold/mold-9999.ebuild
index d5c163c1ba90..1fe9a5a08e35 100644
--- a/sys-devel/mold/mold-9999.ebuild
+++ b/sys-devel/mold/mold-9999.ebuild
@@ -53,10 +53,11 @@ src_prepare() {
 
        # Heavy tests, need qemu
        rm test/elf/gdb-index-{compress-output,dwarf{2,3,4,5}}.sh || die
+       rm test/elf/lto-{archive,dso,gcc,llvm,version-script}.sh || die
 
        # Sandbox sadness
        rm test/elf/run.sh || die
-       sed -i 's|$mold-wrapper.so|"& ${LD_PRELOAD}"|' \
+       sed -i 's|`pwd`/mold-wrapper.so|"& ${LD_PRELOAD}"|' \
                test/elf/mold-wrapper{,2}.sh || die
 
        # static-pie tests require glibc built with static-pie support

Reply via email to