x86_64 10.5/i386 fink 10.6 and the options for MacPorts

Jack Howarth howarth at bromo.med.uc.edu
Sun Sep 13 10:45:26 PDT 2009


On Sun, Sep 13, 2009 at 06:20:23PM +0200, Anders F Björklund wrote:
> Jack Howarth wrote:
>
>>     If MacPorts is willing to junk the idea of building i386 packages
>> as a default on 10.6, the config.guess fix is really the way to go.
>> When patched this way, all programs that use config.guess to determine
>> the triplets for configure will pick the correct value of
>> x86_64-apple-darwin10 and there will be no need to force -m64 onto any
>> compiler flags or to bother to pass --build/--host/--target to
>> configure. From my own experiences on fink, I would strongly urge
>> MacPorts to abandon any attempt to build an i386 MacPorts on 10.6
>> (except where non-EMT64 Core Duo and Core Solo's will do that without
>> any intervention) and to focus on the x86_64 Macport builds for 10.6
>> fully utilizing the proposed config.guess patch to avoid the bother
>> of passing the --build/--target/--host triplets to configure in
>> Portfiles. My two cents anyway as a newcomer to MacPorts.
>
> 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,
   Where exactly are the packages files created by port stored? I don't 
see anything obvious in /opt/local's subdirectories. Also, are the
architecture of the packages present in their filenames or do I need
to invoke a command from port to see that information?
                 Jack


More information about the macports-dev mailing list