From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 780CE1382C5 for ; Mon, 8 Feb 2021 11:19:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EFA69E0875; Mon, 8 Feb 2021 11:19:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B64CAE081B for ; Mon, 8 Feb 2021 11:19:18 +0000 (UTC) Message-ID: Subject: [gentoo-dev] dev-python/cryptography to use rust, effectively killing alpha, hppa, ia64, m68k, s390 From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Mon, 08 Feb 2021 12:19:13 +0100 Organization: Gentoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 4bf2e31a-e8e9-4a2c-9f6b-ab65f0929fb2 X-Archives-Hash: 17e24acecf8c42edbdbfff38935e86fa Hi, FYI the developers of dev-python/cryptography decided that Rust is going to be mandatory for 1.5+ versions. It's unlikely that they're going to provide LTS support or security fixes for the old versions. Since cryptography is a very important package in the Python ecosystem, and it is an indirect dependency of Portage, this means that we will probably have to entirely drop support for architectures that are not supported by Rust. According to upstream platform support information [1], this probably means (eventually) entirely removing the following architectures: - alpha (stable) - hppa (stable) - ia64 (stable) - m68k (exp) - s390 (except for s390x, exp) Furthermore, the Gentoo Rust packages are missing support for the following platforms, apparently supported upstream: - mips (exp) - ppc (32) (stable) - sparc (stable) - s390x (exp) - riscv (stable) Apparently it's non-trivial to bootstrap Rust on these platforms, so it's unclear when Gentoo is going to start providing Rust on them. I've raised a protest on the cryptography bug tracker [2] but apparently upstream considers Rust's 'memory safety' more important than ability to actually use the package. Honestly, I don't think it likely that Rust will gain support for these platforms. This involves a lot of work, starting with writing a new LLVM backend and getting it accepted (getting new code into LLVM is very hard unless you're doing that on behalf one of the big companies). You can imagine how much effort that involves compared to rewriting the new code from Cryptography into C. If we can't convince upstream, I'm afraid we'll either have to drop these architectures entirely or fork Cryptography. [1] https://doc.rust-lang.org/nightly/rustc/platform-support.html [2] https://github.com/pyca/cryptography/issues/5771 -- Best regards, Michał Górny