[MacPorts] #69573: octave hardcodes powerpc64 on G5, regardless of Macports conf

MacPorts noreply at macports.org
Fri Mar 22 23:37:47 UTC 2024


#69573: octave hardcodes powerpc64 on G5, regardless of Macports conf
-------------------------------------------+-------------------------------
 Reporter:  barracuda156                   |      Owner:  MarcusCalhoun-
                                           |  Lopez
     Type:  defect                         |     Status:  assigned
 Priority:  Normal                         |  Milestone:
Component:  ports                          |    Version:  2.9.1
 Keywords:  leopard, snowleopard, powerpc  |       Port:  octave
-------------------------------------------+-------------------------------
 Could someone say why does the port set host via this odd method?
 {{{
         if { ${os.platform} eq "darwin" && ${os.major} >= 9 && [sysctl
 hw.cpu64bit_capable] == 1 } {
             set short_host_name
 powerpc64-apple-${os.platform}${os.major}.x.x
         } else {
             set short_host_name powerpc-
 apple-${os.platform}${os.major}.x.x
         }
 }}}

 This hardcodes, in effect, `powerpc64`, for 10.5–10.6 on G5. However, it
 is pretty likely everything is built for `powerpc` in fact (even on 10.5,
 while 10.6 does not support `ppc64` at all).

 For example, I get this:
 ```
 --->  Patching configure: s|__MACPORTS_canonical_host_type__|powerpc64
 -apple-darwin10.x.x|g
 --->  Patching subst-config-vals.in.sh:
 s|__MACPORTS_canonical_host_type__|powerpc64-apple-darwin10.x.x|g
 ```

 But 10.6 aside, in most cases this will be wrong on 10.5.8 too.

 It seems that instead `configure.build_arch` should be used, and that will
 always give a correct result.

-- 
Ticket URL: <https://trac.macports.org/ticket/69573>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list