glfw does not have a version option in PortIndex

Joshua Root jmr at macports.org
Thu Jun 7 16:16:01 UTC 2018


On 2018-6-8 02:04 , Joshua Root wrote:
> On 2018-6-8 00:23 , Rainer Müller wrote:
>> Can anybody figure out what might be causing this?
>>
>> Note we run 'portindex -p darwin_16_i386' on the buildbot job that
>> produces the PortIndex file referenced above. Although I cannot
>> reproduce the problem either way on my system...
> 
> That's not quite true, we actually run with -p macosx_16_i386. And
> certainly you can reproduce the problem by setting os.platform to
> anything other than "darwin"...
> 
> % port info glfw os.platform=macosx
> Error: process_cmd failed: can't read "portinfo(version)": no such
> element in array
> 
> portindex is supposed to set os.platform=darwin and
> os.subplatform=macosx in this case, but I guess that's broken?

Bug introduced by
<https://github.com/macports/macports-base/commit/16d48a9c5269b81b928924e4581fd4114dadf831>

No idea why the line appending os.platform to port_options was moved at
all, but now it's too early because os_platform hasn't been changed yet.

- Josh


More information about the macports-dev mailing list