reduce-algebra portfile

Ryan Schmidt ryandesign at macports.org
Tue Dec 13 18:56:42 PST 2011


On Dec 13, 2011, at 20:48, Mark Brethen wrote:

> I suspect that the errors stem from the undefined variable 'MACHINE'. The MACHINE variable ist set according to names derived from config-guess. And in make-psl.sh I find a series of if statements, including:
> ----------
> if test $guess = "x86_64-apple-darwin10.4.0"
> then
>        export MACHINE=macintel64
> fi
> 
> if test $guess = "i386-apple-darwin10.4.0"
> then
>        export MACHINE=macintel
> fi
> ---------
> 
> But config is reporting "OS darwin/11.2.0 (Mac OS X 10.7) arch i386". 
> 
> BTW, config.guess is a script that attempts to guess a canonical system name similar to config.sub.  If it succeeds, it prints the system name on stdout, and exits with 0.  Otherwise, it exits with 1.

If those are the only darwin lines in the file, then yes, that will only work on Intel Macs running OS X 10.6.4 and no other version. So that's not a very good way for them to be doing that.

Maybe you can just bypass their checks entirely and pass the MACHINE variable yourself from the Portfile, and select it based on ${build_arch}.



More information about the macports-dev mailing list