os.major etc. on Linux
Ryan Schmidt
ryandesign at macports.org
Fri May 13 02:23:24 PDT 2016
On May 13, 2016, at 4:18 AM, René J.V. Bertin wrote:
> On Friday May 13 2016 03:54:26 Ryan Schmidt wrote:
>
>>> If build_arch is not set then os.arch is used as a fallback. No doubt we don't detect an appropriate default for build_arch on Linux.
>>
>> Yes I see in get_canonical_archs in src/port1.0/portutil.tcl where it uses os.arch if build_arch is empty.
>> And I see in src/macports1.0/macports.tcl where it sets defaults for build_arch only on Darwin.
>
> Right, that does ring a bell indeed, and I think that's indeed why I ended up keeping os_arch to x86_64 on 64-bit Linux.
I think we've established that os_arch should only be i386 or powerpc. The problem is that there is no code in MacPorts to set an appropriate default for build_arch on platforms other than Darwin. Until such code is added, you can set the correct build_arch in macports.conf.
More information about the macports-dev
mailing list