From 4e45b62ce4d995366b063dc1d475fbee3f986527 Mon Sep 17 00:00:00 2001 From: Michael Mair-Keimberger Date: Tue, 15 Jul 2025 19:16:39 +0200 Subject: [PATCH] dev-python/rencode: fix build on non amd64/x86 platforms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On platforms without sse/sse2/fma support, rencode fails to build with following errors: aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-msse’ aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-msse2’ aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mfma’ aarch64-unknown-linux-gnu-gcc: error: unrecognized command-line option ‘-mfpmath=sse’ Bug: https://github.com/aresch/rencode/issues/38 Signed-off-by: Michael Mair-Keimberger Part-of: https://github.com/gentoo/gentoo/pull/43015 Closes: https://github.com/gentoo/gentoo/pull/43015 Signed-off-by: Michael Mair-Keimberger --- .../{rencode-1.0.8.ebuild => rencode-1.0.8-r1.ebuild} | 7 +++++++ 1 file changed, 7 insertions(+) rename dev-python/rencode/{rencode-1.0.8.ebuild => rencode-1.0.8-r1.ebuild} (86%) diff --git a/dev-python/rencode/rencode-1.0.8.ebuild b/dev-python/rencode/rencode-1.0.8-r1.ebuild similarity index 86% rename from dev-python/rencode/rencode-1.0.8.ebuild rename to dev-python/rencode/rencode-1.0.8-r1.ebuild index 6e7d3b21f5253..cc03a610e8865 100644 --- a/dev-python/rencode/rencode-1.0.8.ebuild +++ b/dev-python/rencode/rencode-1.0.8-r1.ebuild @@ -30,6 +30,13 @@ BDEPEND=" distutils_enable_tests pytest +src_prepare() { + # remove forced -O3 + sed -e '/extra_compile_args=/d' -i build.py || die + + distutils-r1_src_prepare +} + python_test() { rm -rf rencode || die epytest