mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user