commit:     35637f14f842bb801bd7bca8c5c9683c79c62362
Author:     Brett A C Sheffield <bacs <AT> librecast <DOT> net>
AuthorDate: Wed Mar  4 20:34:27 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar  8 04:16:29 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35637f14

sys-devel/mold: ensure we don't use vendored deps

Remove unused vendored dependencies to ensure we don't use them and to
avoid spurious warnings being generated and picked up by tinderbox etc.

Closes: https://bugs.gentoo.org/964723
Signed-off-by: Brett A C Sheffield <bacs <AT> librecast.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/219
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/mold/mold-2.40.4-r2.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys-devel/mold/mold-2.40.4-r2.ebuild 
b/sys-devel/mold/mold-2.40.4-r2.ebuild
index cdf819a613bc..b62fb065db83 100644
--- a/sys-devel/mold/mold-2.40.4-r2.ebuild
+++ b/sys-devel/mold/mold-2.40.4-r2.ebuild
@@ -52,6 +52,12 @@ pkg_pretend() {
 }
 
 src_prepare() {
+       # remove unused vendored deps to be sure we don't use them
+       # do this before running cmake_src_prepare to avoid warnings
+       # being picked up by tinderbox etc. (#964723)
+       # we keep rust-demangle for now as this isn't packaged in gentoo
+       rm -rf third-party/{blake3,mimalloc,tbb,xxhash,zlib,zstd} || die
+
        cmake_src_prepare
 
        # use dev-libs/xxhash instead of vendored lib

Reply via email to