[MacPorts] #55773: textmate2 @2.0-rc.4 fails to build when sparsehash @2.0.3 was built with libstdc++

MacPorts noreply at macports.org
Thu Feb 1 20:06:34 UTC 2018

#55773: textmate2 @2.0-rc.4 fails to build when sparsehash @2.0.3 was built with
 Reporter:  ryandesign  |      Owner:
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  sparsehash textmate2
 textmate2 requires and enforces the use of libc++, but it also requires
 sparsehash, and it fails to build if sparsehash was built with libstdc++,
 as it would be on a default OS X 10.8 installation (i.e. one not using

 The problem is that sparsehash installs a header that varies based on
 whether the compiler used to compile sparsehash had full C++11 support or
 not. This causes problems if you later try to include that header in
 another project (like textmate2) that's using a compiler with different
 capabilities. I've [https://github.com/sparsehash/sparsehash/issues/145
 reported the bug to the developers of sparsehash].

 I'm considering using an `ed` script to fix up the header after the build,
 but although it is straightforward for machines running Mac OS X 10.6 and
 later on Intel, Mac OS X 10.5 PowerPC differs. I haven't checked 10.5
 Intel nor any 10.4 machine yet. Since we only care about OS X 10.8 and up
 for textmate2, I could punt on this issue and only fix the sparsehash
 header for 10.6 and later.

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

More information about the macports-tickets mailing list