Potential problem with small subset of Cocoa ports on Xcode 10
Perry E. Metzger
pmetzger at macports.org
Sat Sep 29 13:08:57 UTC 2018
On Sat, 29 Sep 2018 06:30:39 +0100 Chris Jones
<jonesc at hep.phy.cam.ac.uk> wrote:
> > On 28 Sep 2018, at 10:55 pm, Perry E. Metzger
> > <pmetzger at macports.org> wrote:
> >
> > On Sat, 29 Sep 2018 07:40:22 +1000 Joshua Root <jmr at macports.org>
> > wrote:
> >>>> 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.
> >>
> >> The header search strategy change is not a bug. The failure when
> >> building and destrooting separately is definitely a bug, and can
> >> be reproduced even with a new project using the Cocoa App
> >> template.
> >
> > BTW, that's why I set this up only to do the UseNewBuildSystem=NO
> > during destroot and not during build. Fixing the search stuff for
> > build seems sane.
>
> Hmm... is it really ok to switch the build settings between build
> and destroot ? I would have guessed it better to be consistent for
> all phases.
It seems to work just fine, and it means that when we can remove the
kludge from the destroot phase, which is the only place the bug hits
us, we'll know the rest is also working.
--
Perry E. Metzger pmetzger at macports.org
More information about the macports-dev
mailing list