From 46849cd23eb45400fa6ceda3d7cbfaa8fcbf317c Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 13 Aug 2024 22:47:03 +0800 Subject: [PATCH] macports.tcl: fix build_arch choice for ppc --- src/macports1.0/macports.tcl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl index 3906d5040b..6327ebc771 100644 --- a/src/macports1.0/macports.tcl +++ b/src/macports1.0/macports.tcl @@ -1562,7 +1562,9 @@ match macports.conf.default." # Default arch to build for if {![info exists build_arch]} { if {$os_platform eq "darwin"} { - if {$os_major >= 20} { + if {$os_arch eq "powerpc"} { + set build_arch ppc + } elseif {$os_major >= 20} { if {$os_arch eq "arm" || (![catch {sysctl sysctl.proc_translated} translated] && $translated)} { set build_arch arm64 } else { @@ -1575,11 +1577,7 @@ match macports.conf.default." set build_arch i386 } } else { - if {$os_arch eq "powerpc"} { - set build_arch ppc - } else { - set build_arch i386 - } + set build_arch i386 } } else { switch -glob $tcl_platform(machine) {