Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/geography/gdal-lib gdal: Simplify patch dealing with v...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cfaf8de28429
branches:  trunk
changeset: 428444:cfaf8de28429
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Tue Apr 28 00:24:48 2020 +0000

description:
gdal: Simplify patch dealing with visibility defines

Rather than adding a definition of _NETBSD_SOURCE, avoiding defining
_XOPEN_SOURCE in the first place.  What used to be extra is now
normal, and these defines hide rather than expose symbols.

diffstat:

 geography/gdal-lib/distinfo                         |   4 +-
 geography/gdal-lib/patches/patch-port_cpl__conv.cpp |  24 +++++++++++++-------
 2 files changed, 17 insertions(+), 11 deletions(-)

diffs (51 lines):

diff -r 0c875d1e538d -r cfaf8de28429 geography/gdal-lib/distinfo
--- a/geography/gdal-lib/distinfo       Mon Apr 27 23:53:38 2020 +0000
+++ b/geography/gdal-lib/distinfo       Tue Apr 28 00:24:48 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.41 2020/04/27 23:53:38 gdt Exp $
+$NetBSD: distinfo,v 1.42 2020/04/28 00:24:48 gdt Exp $
 
 SHA1 (gdal-2.4.4.tar.gz) = 23f7420bd8cdfabf7ea9259d46d463ca7914ab4a
 RMD160 (gdal-2.4.4.tar.gz) = 1290d382cd601b632e61bc28001bff1dd3d72730
@@ -7,4 +7,4 @@
 SHA1 (patch-apps_gdalserver.cpp) = 4a2b8bac29582c8fc02920840ee498026d87acca
 SHA1 (patch-frmts_grib_degrib_degrib_myutil.c) = 0e046afa236d7e0d6186fe392cb2da05fa5b42c5
 SHA1 (patch-ogr_ogrsf__frmts_geojson_libjson_GNUmakefile) = 6a5061b6dd8c3a4fa1ad7c10ddc0b815b41a637d
-SHA1 (patch-port_cpl__conv.cpp) = e0c9d2dac25bc6f69f0af13a2c86ab5f0f521445
+SHA1 (patch-port_cpl__conv.cpp) = dd309911e85512d2a477d55f33f77f79e62482eb
diff -r 0c875d1e538d -r cfaf8de28429 geography/gdal-lib/patches/patch-port_cpl__conv.cpp
--- a/geography/gdal-lib/patches/patch-port_cpl__conv.cpp       Mon Apr 27 23:53:38 2020 +0000
+++ b/geography/gdal-lib/patches/patch-port_cpl__conv.cpp       Tue Apr 28 00:24:48 2020 +0000
@@ -1,17 +1,23 @@
-$NetBSD: patch-port_cpl__conv.cpp,v 1.2 2019/03/09 01:54:59 gdt Exp $
+$NetBSD: patch-port_cpl__conv.cpp,v 1.3 2020/04/28 00:24:48 gdt Exp $
 
-Fix build under NetBSD
-\todo Explain what is wrong.
-\todo File ticket and get this fixed upstream.
+Avoid visibility define that masks usage that is apparently beyond XOPEN or C99.
+
+Not yet net upstream; waiting until we are caught up.
 
---- port/cpl_conv.cpp.orig     2017-11-20 10:45:32.000000000 +0000
+--- port/cpl_conv.cpp.orig     2020-01-08 11:49:05.000000000 +0000
 +++ port/cpl_conv.cpp
-@@ -45,7 +45,7 @@
+@@ -38,14 +38,7 @@
+ #define _XOPEN_SOURCE 600
  #endif
- 
- // For atoll (at least for NetBSD)
+ #else
+-#ifdef _XOPEN_SOURCE
+-#undef _XOPEN_SOURCE
+ #endif
+-#define _XOPEN_SOURCE 700
+-#endif
+-
+-// For atoll (at least for NetBSD)
 -#define _ISOC99_SOURCE
-+#define _NETBSD_SOURCE
  
  #ifdef MSVC_USE_VLD
  #include <vld.h>



Home | Main Index | Thread Index | Old Index