[Git][debian-gis-team/spatialite][experimental] 2 commits: Add upstream patch to fix virtualknn test hang. (closes: #920995)
Bas Couwenberg
gitlab at salsa.debian.org
Fri Feb 15 17:41:48 GMT 2019
Bas Couwenberg pushed to branch experimental at Debian GIS Project / spatialite
Commits:
129319a1 by Bas Couwenberg at 2019-02-15T17:18:33Z
Add upstream patch to fix virtualknn test hang. (closes: #920995)
- - - - -
7c342cf9 by Bas Couwenberg at 2019-02-15T17:18:45Z
Set distribution to experimental.
- - - - -
3 changed files:
- debian/changelog
- debian/patches/series
- + debian/patches/virtualknn.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,9 +1,11 @@
-spatialite (5.0.0~beta0-1~exp2) UNRELEASED; urgency=medium
+spatialite (5.0.0~beta0-1~exp2) experimental; urgency=medium
* Bump Standards-Version to 4.3.0, no changes.
* Add Build-Depends-Package field to symbols file.
+ * Add upstream patch to fix virtualknn test hang.
+ (closes: #920995)
- -- Bas Couwenberg <sebastic at debian.org> Sun, 05 Aug 2018 21:00:31 +0200
+ -- Bas Couwenberg <sebastic at debian.org> Fri, 15 Feb 2019 18:18:34 +0100
spatialite (5.0.0~beta0-1~exp1) experimental; urgency=medium
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
spelling-errors.patch
+virtualknn.patch
=====================================
debian/patches/virtualknn.patch
=====================================
@@ -0,0 +1,103 @@
+Description: fixing a bug hanging VirtualKNN tests
+Author: sandro
+Origin: https://www.gaia-gis.it/fossil/libspatialite/info/90180e065dfdd8fa
+Bug: https://www.gaia-gis.it/fossil/libspatialite/info/2cad2f4b9df468fa
+Bug-Debian: https://bugs.debian.org/920995
+
+--- a/src/spatialite/virtualknn.c
++++ b/src/spatialite/virtualknn.c
+@@ -240,6 +240,7 @@ vknn_empty_context (VKnnContextPtr ctx)
+ ctx->rtree_miny = -DBL_MAX;
+ ctx->rtree_maxx = DBL_MAX;
+ ctx->rtree_maxy = DBL_MAX;
++ ctx->level = 0;
+ ctx->current_level = 0;
+ ctx->max_items = 0;
+ ctx->knn_array = NULL;
+--- a/test/check_virtualknn.c
++++ b/test/check_virtualknn.c
+@@ -484,6 +484,14 @@ main (int argc, char *argv[])
+ sqlite3_close (db_handle);
+ return -4;
+ }
++/* adding a second geometry column */
++ ret = add_second_geom (db_handle);
++ if (!ret)
++ {
++ fprintf (stderr, "Add Second Geometry: unexpected failure !!!\n");
++ sqlite3_close (db_handle);
++ return -5;
++ }
+
+ /* Creating the VirtualKNN table */
+ ret = create_knn (db_handle);
+@@ -491,7 +499,7 @@ main (int argc, char *argv[])
+ {
+ fprintf (stderr, "CREATE VIRTUAL TABLE knn: expected failure !!!\n");
+ sqlite3_close (db_handle);
+- return -5;
++ return -6;
+ }
+
+ /* Testing KNN - #1 */
+@@ -500,7 +508,7 @@ main (int argc, char *argv[])
+ {
+ fprintf (stderr, "Check KNN #1: unexpected failure\n");
+ sqlite3_close (db_handle);
+- return -6;
++ return -7;
+ }
+
+ /* Testing KNN - #2 */
+@@ -509,7 +517,7 @@ main (int argc, char *argv[])
+ {
+ fprintf (stderr, "Check KNN #2: unexpected failure\n");
+ sqlite3_close (db_handle);
+- return -7;
++ return -8;
+ }
+
+ /* Testing KNN - #3 */
+@@ -518,7 +526,7 @@ main (int argc, char *argv[])
+ {
+ fprintf (stderr, "Check KNN #3: unexpected success\n");
+ sqlite3_close (db_handle);
+- return -8;
++ return -9;
+ }
+
+ /* creating a first SpatialView */
+@@ -527,7 +535,7 @@ main (int argc, char *argv[])
+ {
+ fprintf (stderr, "Create Spatial View #1: unexpected failure !!!\n");
+ sqlite3_close (db_handle);
+- return -9;
++ return -10;
+ }
+
+ /* Testing KNN - #4 */
+@@ -536,7 +544,7 @@ main (int argc, char *argv[])
+ {
+ fprintf (stderr, "Check KNN #4: unexpected failure\n");
+ sqlite3_close (db_handle);
+- return -10;
++ return -11;
+ }
+
+ /* Testing KNN - #5 */
+@@ -545,15 +553,6 @@ main (int argc, char *argv[])
+ {
+ fprintf (stderr, "Check KNN #5: unexpected failure\n");
+ sqlite3_close (db_handle);
+- return -11;
+- }
+-
+-/* adding a second geometry column */
+- ret = add_second_geom (db_handle);
+- if (!ret)
+- {
+- fprintf (stderr, "Add Second Geometry: unexpected failure !!!\n");
+- sqlite3_close (db_handle);
+ return -12;
+ }
+
View it on GitLab: https://salsa.debian.org/debian-gis-team/spatialite/compare/d85bd03310e4c8e1b0e41bd0b69197a9b0fe912e...7c342cf92d5d9c95cff457c25eed050f9bf37e0e
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/spatialite/compare/d85bd03310e4c8e1b0e41bd0b69197a9b0fe912e...7c342cf92d5d9c95cff457c25eed050f9bf37e0e
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20190215/02174261/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list