x86_64 10.5/i386 fink 10.6 and the options for MacPorts

Jack Howarth howarth at bromo.med.uc.edu
Sun Sep 13 14:47:50 PDT 2009


On Sun, Sep 13, 2009 at 06:20:23PM +0200, Anders F Björklund wrote:
>
> You probably want to fix the "${os.arch}" as well,
> since that will affect e.g. how packages are named:
>
> set archive.file "${name}-${version}_${revision}${portvariants}.[option 
> os.arch].${archive.type}"
> set unarchive.file "${name}-${version}_${revision}${portvariants}. 
> [option os.arch].${unarchive.type}"
> 				
> "x86_64", as per http://trac.macports.org/changeset/54798
> is a workaround for http://trac.macports.org/ticket/20506
>
> set os_arch $tcl_platform(machine)
> if {$os_arch == "Power Macintosh"} { set os_arch "powerpc" }
> if {$os_arch == "i586" || $os_arch == "i686" || $os_arch == "x86_64"} { 
> set os_arch "i386" }
> default os.arch {$os_arch}
>
> --anders

Anders,
   I am unclear what you mean here. Are you suggesting that I add...

set archive.file "${name}-${version}_${revision}${portvariants}.[option os.arch].${archive.type}"
set unarchive.file "${name}-${version}_${revision}${portvariants}.[option os.arch].${unarchive.type}"

to the Portfile, because that doesn't build...

Error: Unable to open port: can't read "portvariants": no such variable

Or are you speaking about additional changes to portmain.tcl itself?
              Jack


More information about the macports-dev mailing list