[MacPorts] #55771: textmate2 @2.0-rc.4: Build fails with SDK < 10.11

MacPorts noreply at macports.org
Thu Feb 1 19:55:36 UTC 2018

#55771: textmate2 @2.0-rc.4: Build fails with SDK < 10.11
 Reporter:  ryandesign                       |      Owner:  neverpanic
     Type:  defect                           |     Status:  new
 Priority:  Normal                           |  Milestone:
Component:  ports                            |    Version:
 Keywords:  mountainlion mavericks yosemite  |       Port:  textmate2
 textmate2 @2.0-rc.4 uses a new Objective-C feature called lightweight
 generics which was introduced in the 10.11 SDK, so it fails to build when
 using an earlier SDK.

 Xcode 7 on OS X 10.10 contains the 10.11 SDK, so it should be possible to
 fix this on 10.10 by telling it to use the 10.11 SDK. But I can't figure
 out how to do so. The portfile code is simple enough:

 # Needs support for lightweight generics.
 if {[vercmp ${configure.sdk_version} 10.11] < 0} {
     configure.sdk_version   10.11
     if {${configure.sdkroot} eq ""} {
         pre-fetch {
             ui_error "${name} @${version} requires the OS X 10.11 SDK or
             return -code error "incompatible SDK version"

 But the configure script is nonstandard and doesn't appear to honor the
 CFLAGS/CXXFLAGS/LDFLAGS MacPorts sets. configure does explicitly pass CC
 and CXX to bin/gen_build. We may have to patch configure and/or
 bin/gen_build to also pass CFLAGS/CXXFLAGS/LDFLAGS. I emailed textmate
 support about it and he didn't know and recommended I ask on the textmate
 mailing list, so I'll do that next.

 I'm considering ways of getting the 10.11 SDK onto earlier systems (10.8
 and 10.9) whose latest Xcode versions don't have it. We've previously
 manually installed the 10.7 SDK on the 10.6 buildbot workers so that
 libsdl2 can build, but I'm not sure if we want to use the disk space to
 install all newer SDKs on all buildbot workers. textmate2 is also not
 distributable, so a solution that works on user machines too would be

Ticket URL: <https://trac.macports.org/ticket/55771>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list