Quantcast

[MacPorts] #54203: gdal @2.2.0: broken on non-C++11 setups

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[MacPorts] #54203: gdal @2.2.0: broken on non-C++11 setups

MacPorts
#54203: gdal @2.2.0: broken on non-C++11 setups
--------------------+--------------------
 Reporter:  mojca   |      Owner:  Veence
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  gdal
--------------------+--------------------
 gdal 2.2.0 is broken on non-C++11 setups, but the compilation should
 theoretically still work with C++03.

 The most important part would be to pass `--without-cpp11` to
 `configure.args` when not using C++11. The way to check that is probably
 by testing for stdlib and declare C++11 support non-existent when it's not
 `libc++`, even if that's not exactly correct.

 Once you do that, one of the major issues becomes the dance around
 `isnan()` and `isinf()`. The master branch / trunk works much better in
 this respect due to addition of
 {{{
 #!C++
 #elif defined(__cplusplus) && defined(HAVE_STD_IS_NAN) && HAVE_STD_IS_NAN
 }}}
 in `port/cpl_port.h` and on 10.7 it leads to successful compilation. 10.6
 would probably need a newer compiler, I didn't test yet.

--
Ticket URL: <https://trac.macports.org/ticket/54203>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #54203: gdal @2.2.0: broken on non-C++11 setups

MacPorts
#54203: gdal @2.2.0: broken on non-C++11 setups
---------------------+--------------------
  Reporter:  mojca   |      Owner:  Veence
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  gdal    |
---------------------+--------------------

Comment (by mojca):

 I'm sorry, I didn't know I would manage to fix it so quickly, else I
 wouldn't open an issue here. Here's a PR:
     https://github.com/macports/macports-ports/pull/480

--
Ticket URL: <https://trac.macports.org/ticket/54203#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...