Opened 6 months ago

Last modified 6 months ago

#69573 closed defect

octave hardcodes powerpc64 on G5, regardless of Macports conf — at Version 1

Reported by: barracuda156 Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: leopard, snowleopard, powerpc Cc: catap (Kirill A. Korinsky), Schamschula (Marius Schamschula)
Port: octave

Description (last modified by barracuda156)

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.

Change History (1)

comment:1 Changed 6 months ago by barracuda156

Description: modified (diff)
Note: See TracTickets for help on using tickets.