[MacPorts] #56605: wrong detection of g++ compiler in portconfigure.tcl

MacPorts noreply at macports.org
Mon Jun 4 14:39:33 UTC 2018


#56605: wrong detection of g++ compiler in portconfigure.tcl
----------------------+--------------------
 Reporter:  devernay  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:
----------------------+--------------------
 At two places in portconfigure.tcl, MacPorts uses `string match *g++-mp-*`
 to determine if GCC is being used as a C++ compiler, but this expression
 also matches `*clang++-mp-*` !

 The consequence is that the global setting of `cxx_stdlib` in
 macports.conf is ignored when using a clang++ compiler.

 This totally breaks when ompiling macports with libc++ on older systems.

 I fixed it by adding a slash, like this, though I don't know if it's a
 good fix: `string match */g++-mp-*`

 MacPorts 2.5.2 should be released to fix this.

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


More information about the macports-tickets mailing list