commit: 1116a3506008948831a89beee42095efc0a0bd61 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Thu Jul 21 00:11:26 2022 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Thu Jul 21 00:14:18 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1116a350
dev-util/maturin: disable rustls on arches where ring is broken Upstream already disables for some but this doesn't carry over to tests. Bug: https://bugs.gentoo.org/859577 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> dev-util/maturin/maturin-0.13.0.ebuild | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dev-util/maturin/maturin-0.13.0.ebuild b/dev-util/maturin/maturin-0.13.0.ebuild index b02807a0ef99..64d1038971fb 100644 --- a/dev-util/maturin/maturin-0.13.0.ebuild +++ b/dev-util/maturin/maturin-0.13.0.ebuild @@ -381,6 +381,19 @@ src_prepare() { use !debug || sed -i "s/^cargo_args = \[/&'--profile','dev',/" setup.py || die filter-lto # undefined references with ring crate + + # ensure rustls is disabled on arches where ring crate is problematic, + # keep in sync with src_configure below (bug #859577) + if use ppc64 || use s390; then + sed -i '/^if platform.machine/s/^if/if True or/' setup.py || die + fi +} + +src_configure() { + if use ppc64 || use s390; then + local myfeatures=( upload log human-panic ) # sync with setup.py + cargo_src_configure --no-default-features + fi } python_compile_all() {
