dev-python/rencode: fix build on non amd64/x86 platforms

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 <mm1ke@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/43015
Closes: https://github.com/gentoo/gentoo/pull/43015
Signed-off-by: Michael Mair-Keimberger <mm1ke@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger
2025-07-15 19:16:39 +02:00
parent 2ec679b08b
commit 4e45b62ce4

View File

@@ -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