Opened 8 months ago

Last modified 8 months ago

#69573 closed defect

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

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

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 (0)

Note: See TracTickets for help on using tickets.