Universal issues

Joshua Root jmr at macports.org
Tue Jun 10 21:38:15 PDT 2008


Ryan Schmidt wrote:
> On Jun 10, 2008, at 23:00, Joshua Root wrote:
> 
>> Ryan Schmidt wrote:
>>
>>> I proposed last month that we need a way (e.g. in "port installed")
>>> to see for which architectures a given universal binary was built:
>>>
>>> http://lists.macosforge.org/pipermail/macports-dev/2008-May/005314.html
>>>
>>> When a port is installed, we need to record somewhere what
>>> architectures were requested. Ideally this should happen regardless
>>> of whether the universal variant was used or not. If it wasn't used,
>>> then the requested architecture is just "i386" or "ppc".
>>
>> Another good idea. Technically the non-universal arch should be obtained
>> from "--target=" in the output of gcc -v, for future-proofing.
> 
> Except that "gcc -v" on my machine says "--target=i686-apple-darwin8" 
> but we want the arch recorded as "i386" not "i686" (right?).

We could do what portmain.tcl already does for os.arch:

set os_arch $tcl_platform(machine)
if {$os_arch == "Power Macintosh"} { set os_arch "powerpc" }
if {$os_arch == "i586" || $os_arch == "i686"} { set os_arch "i386" }

- Josh


More information about the macports-dev mailing list