commit: e735907abbff44872d16a5320a6041fd47c18f4e Author: LinuxUserGD <hugegameartgd <AT> gmail <DOT> com> AuthorDate: Sun Apr 14 16:58:26 2024 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Thu Apr 18 21:42:21 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e735907a
dev-util/ruff: disable unprefixed malloc on unsupported platforms Closes: https://bugs.gentoo.org/927338 Closes: https://bugs.gentoo.org/928621 Signed-off-by: LinuxUserGD <hugegameartgd <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36256 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> dev-util/ruff/ruff-0.3.7.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dev-util/ruff/ruff-0.3.7.ebuild b/dev-util/ruff/ruff-0.3.7.ebuild index d41abd5727bb..533fabb61427 100644 --- a/dev-util/ruff/ruff-0.3.7.ebuild +++ b/dev-util/ruff/ruff-0.3.7.ebuild @@ -399,7 +399,7 @@ BDEPEND=" >=virtual/rust-1.71 " RDEPEND=" - dev-libs/jemalloc:= + !elibc_musl? ( !elibc_Darwin? ( !elibc_bionic? ( dev-libs/jemalloc:= ) ) ) " DEPEND=" ${RDEPEND} @@ -422,8 +422,11 @@ src_configure() { } src_compile() { - local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 - local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so + # Gentoo bug #927338 + if use !elibc_musl && use !elibc_Darwin && use !elibc_bionic; then + local -x CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS=1 + local -x JEMALLOC_OVERRIDE="${ESYSROOT}/usr/$(get_libdir)"/libjemalloc.so + fi cargo_src_compile --bin ruff --bin ruff_shrinking local releasedir
