git: 10bd356a9ca7 - main - devel/godot: add proper architecture detection
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Mar 2023 00:43:01 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=10bd356a9ca778035ce114665253ffd600cd838b commit 10bd356a9ca778035ce114665253ffd600cd838b Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-03-24 00:16:24 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-03-24 00:16:24 +0000 devel/godot: add proper architecture detection uname -p should be used instead of uname -m. --- devel/godot/files/patch-platform__methods.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/devel/godot/files/patch-platform__methods.py b/devel/godot/files/patch-platform__methods.py new file mode 100644 index 000000000000..64c80e5cfd71 --- /dev/null +++ b/devel/godot/files/patch-platform__methods.py @@ -0,0 +1,21 @@ +--- platform_methods.py.orig 2023-03-23 23:40:42 UTC ++++ platform_methods.py +@@ -92,6 +92,9 @@ architecture_aliases = { + "rv": "rv64", + "riscv": "rv64", + "riscv64": "rv64", ++ "powerpc64le": "ppc64", ++ "powerpc64": "ppc64", ++ "powerpc": "ppc32", + "ppcle": "ppc32", + "ppc": "ppc32", + "ppc64le": "ppc64", +@@ -99,7 +102,7 @@ def detect_arch(): + + + def detect_arch(): +- host_machine = platform.machine().lower() ++ host_machine = platform.processor().lower() + if host_machine in architectures: + return host_machine + elif host_machine in architecture_aliases.keys():