Potential problem with small subset of Cocoa ports on Xcode 10

Chris Jones jonesc at hep.phy.cam.ac.uk
Fri Sep 28 21:20:06 UTC 2018



> On 28 Sep 2018, at 8:58 pm, Perry E. Metzger <pmetzger at macports.org> wrote:
> 
> On Fri, 28 Sep 2018 08:22:01 -0500 Marius Schamschula
> <lists at schamschula.com> wrote:
>> Perry,
>> 
>> I’ve just run into this problem with TeXShop4. The build phase
>> succeeds, but destroot fails.
>> 
>> How does one revert to the “old” build system under Xcode 10?
> 
> Here's the kludge for a Portfile:
> 
> if {[vercmp ${xcodeversion} 10.0] >= 0} {
>    destroot.pre_args   -UseNewBuildSystem=NO
> }
> 
> Arguably, one should do "= 0" rather than ">=" since the bug may be
> fixed in Xcode 10.whatever.

That would depend on whether you are correct or not in saying its a bug in Xcode. If it isn’t making it an equality will just mean the ports start failing again when Xcode is updated.

If its not too many ports that need this, i would do the above then leave it to the port maintainers to keep an eye on checking when it can be removed. 

Chris
> 
> -- 
> Perry E. Metzger        pmetzger at macports.org



More information about the macports-dev mailing list