From nobody Wed Oct 27 23:58:08 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0B8C0183766C; Wed, 27 Oct 2021 23:58:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hflxr6s2Kz3tV6; Wed, 27 Oct 2021 23:58:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CCBC91964F; Wed, 27 Oct 2021 23:58:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19RNw81U062635; Wed, 27 Oct 2021 23:58:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19RNw8qr062634; Wed, 27 Oct 2021 23:58:08 GMT (envelope-from git) Date: Wed, 27 Oct 2021 23:58:08 GMT Message-Id: <202110272358.19RNw8qr062634@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 962d7764a4fc - main - devel/py-maturin: fix runtime on powerpc64* List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 962d7764a4fc1a26d8b5a638264cedd52ef84529 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=962d7764a4fc1a26d8b5a638264cedd52ef84529 commit 962d7764a4fc1a26d8b5a638264cedd52ef84529 Author: Piotr Kubaj AuthorDate: 2021-10-27 23:52:39 +0000 Commit: Piotr Kubaj CommitDate: 2021-10-27 23:52:39 +0000 devel/py-maturin: fix runtime on powerpc64* --- devel/py-maturin/files/patch-src_target.rs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/devel/py-maturin/files/patch-src_target.rs b/devel/py-maturin/files/patch-src_target.rs new file mode 100644 index 000000000000..9941f29c9394 --- /dev/null +++ b/devel/py-maturin/files/patch-src_target.rs @@ -0,0 +1,29 @@ +--- src/target.rs.orig 2021-10-27 17:18:18 UTC ++++ src/target.rs +@@ -72,7 +72,7 @@ fn get_supported_architectures(os: &Os) -> Vec { + ], + Os::Windows => vec![Arch::X86, Arch::X86_64, Arch::Aarch64], + Os::Macos => vec![Arch::Aarch64, Arch::X86_64], +- Os::FreeBsd => vec![Arch::X86_64, Arch::Aarch64], ++ Os::FreeBsd => vec![Arch::X86_64, Arch::Aarch64, Arch::Powerpc64, Arch::Powerpc64Le], + Os::OpenBsd => vec![Arch::X86, Arch::X86_64, Arch::Aarch64], + } + } +@@ -143,6 +143,8 @@ impl Target { + match (&self.os, &self.arch) { + (Os::FreeBsd, Arch::X86_64) + | (Os::FreeBsd, Arch::Aarch64) ++ | (Os::FreeBsd, Arch::Powerpc64) ++ | (Os::FreeBsd, Arch::Powerpc64Le) + | (Os::OpenBsd, Arch::X86) + | (Os::OpenBsd, Arch::X86_64) + | (Os::OpenBsd, Arch::Aarch64) => { +@@ -155,6 +157,8 @@ impl Target { + Arch::X86_64 => "amd64", + Arch::X86 => "i386", + Arch::Aarch64 => "arm64", ++ Arch::Powerpc64 => "powerpc64", ++ Arch::Powerpc64Le => "powerpc64le", + _ => panic!( + "unsupported architecutre should not have reached get_platform_tag()" + ),