aboutsummaryrefslogtreecommitdiff
path: root/gis/gdal
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2014-09-20 08:58:41 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-20 17:10:20 +0700
commit174f1a3c0a05a73fbe5e207e3a1976f913f127c5 (patch)
treebd89d340f149c780f5ef2cd8e3847400b154b9f2 /gis/gdal
parent4ca5ac2b7c559c210d9ba7984c2236d6d923dfc3 (diff)
gis/gdal: Patched to support json-c-0.12.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'gis/gdal')
-rw-r--r--gis/gdal/gdal-json-c-012.patch84
-rw-r--r--gis/gdal/gdal.SlackBuild4
2 files changed, 87 insertions, 1 deletions
diff --git a/gis/gdal/gdal-json-c-012.patch b/gis/gdal/gdal-json-c-012.patch
new file mode 100644
index 000000000000..5317a6f93089
--- /dev/null
+++ b/gis/gdal/gdal-json-c-012.patch
@@ -0,0 +1,84 @@
+Index: ogr/ogrsf_frmts/couchdb/ogrcouchdbdatasource.cpp
+===================================================================
+--- ogr/ogrsf_frmts/couchdb/ogrcouchdbdatasource.cpp (revision 27044)
++++ ogr/ogrsf_frmts/couchdb/ogrcouchdbdatasource.cpp (revision 27267)
+@@ -1079,5 +1079,5 @@
+ CPLError( CE_Failure, CPLE_AppDefined,
+ "JSON parsing error: %s (at offset %d)",
+- json_tokener_errors[jstok->err], jstok->char_offset);
++ json_tokener_error_desc(jstok->err), jstok->char_offset);
+
+ json_tokener_free(jstok);
+Index: ogr/ogrsf_frmts/gme/ogrgmejson.cpp
+===================================================================
+--- ogr/ogrsf_frmts/gme/ogrgmejson.cpp (revision 27208)
++++ ogr/ogrsf_frmts/gme/ogrgmejson.cpp (revision 27267)
+@@ -515,5 +515,5 @@
+ CPLError( CE_Failure, CPLE_AppDefined,
+ "JSON parsing error: %s (at offset %d)",
+- json_tokener_errors[jstok->err], jstok->char_offset);
++ json_tokener_error_desc(jstok->err), jstok->char_offset);
+
+ json_tokener_free(jstok);
+Index: ogr/ogrsf_frmts/geojson/ogrgeojsonreader.cpp
+===================================================================
+--- ogr/ogrsf_frmts/geojson/ogrgeojsonreader.cpp (revision 27044)
++++ ogr/ogrsf_frmts/geojson/ogrgeojsonreader.cpp (revision 27267)
+@@ -78,5 +78,5 @@
+ CPLError( CE_Failure, CPLE_AppDefined,
+ "GeoJSON parsing error: %s (at offset %d)",
+- json_tokener_errors[jstok->err], jstok->char_offset);
++ json_tokener_error_desc(jstok->err), jstok->char_offset);
+
+ json_tokener_free(jstok);
+@@ -1517,5 +1517,5 @@
+ CPLError( CE_Failure, CPLE_AppDefined,
+ "GeoJSON parsing error: %s (at offset %d)",
+- json_tokener_errors[jstok->err], jstok->char_offset);
++ json_tokener_error_desc(jstok->err), jstok->char_offset);
+ json_tokener_free(jstok);
+ return NULL;
+Index: ogr/ogrsf_frmts/geojson/ogrtopojsonreader.cpp
+===================================================================
+--- ogr/ogrsf_frmts/geojson/ogrtopojsonreader.cpp (revision 27044)
++++ ogr/ogrsf_frmts/geojson/ogrtopojsonreader.cpp (revision 27267)
+@@ -75,5 +75,5 @@
+ CPLError( CE_Failure, CPLE_AppDefined,
+ "TopoJSON parsing error: %s (at offset %d)",
+- json_tokener_errors[jstok->err], jstok->char_offset);
++ json_tokener_error_desc(jstok->err), jstok->char_offset);
+
+ json_tokener_free(jstok);
+Index: ogr/ogrsf_frmts/geojson/ogresrijsonreader.cpp
+===================================================================
+--- ogr/ogrsf_frmts/geojson/ogresrijsonreader.cpp (revision 27050)
++++ ogr/ogrsf_frmts/geojson/ogresrijsonreader.cpp (revision 27267)
+@@ -79,5 +79,5 @@
+ CPLError( CE_Failure, CPLE_AppDefined,
+ "ESRIJSON parsing error: %s (at offset %d)",
+- json_tokener_errors[jstok->err], jstok->char_offset);
++ json_tokener_error_desc(jstok->err), jstok->char_offset);
+
+ json_tokener_free(jstok);
+Index: ogr/ogrsf_frmts/cartodb/ogrcartodbdatasource.cpp
+===================================================================
+--- ogr/ogrsf_frmts/cartodb/ogrcartodbdatasource.cpp (revision 27044)
++++ ogr/ogrsf_frmts/cartodb/ogrcartodbdatasource.cpp (revision 27267)
+@@ -505,5 +505,5 @@
+ CPLError( CE_Failure, CPLE_AppDefined,
+ "JSON parsing error: %s (at offset %d)",
+- json_tokener_errors[jstok->err], jstok->char_offset);
++ json_tokener_error_desc(jstok->err), jstok->char_offset);
+ json_tokener_free(jstok);
+ CPLHTTPDestroyResult(psResult);
+Index: frmts/mbtiles/mbtilesdataset.cpp
+===================================================================
+--- frmts/mbtiles/mbtilesdataset.cpp (revision 27215)
++++ frmts/mbtiles/mbtilesdataset.cpp (revision 27267)
+@@ -619,5 +619,5 @@
+ CPLError( CE_Failure, CPLE_AppDefined,
+ "JSON parsing error: %s (at offset %d)",
+- json_tokener_errors[jstok->err],
++ json_tokener_error_desc(jstok->err),
+ jstok->char_offset);
+ json_tokener_free(jstok);
diff --git a/gis/gdal/gdal.SlackBuild b/gis/gdal/gdal.SlackBuild
index 59c660967958..b18d9d41097b 100644
--- a/gis/gdal/gdal.SlackBuild
+++ b/gis/gdal/gdal.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=gdal
VERSION=${VERSION:-1.11.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -113,6 +113,8 @@ fi
# Thanks to the people at Arch for this:
patch -p0 <$CWD/gdal-python-install.patch
+# Another patch from Arch, supporting json-c >= 0.12 (also works with 0.11)
+patch -p0 <$CWD/gdal-json-c-012.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \