Package: release.debian.org
Severity: normal
Tags: stretch
User: release.debian....@packages.debian.org
Usertags: pu

Dear stable release managers,

Please consider python-django (1:1.10.7-2+deb9u3) for stretch:
  
  python-django (1:1.10.7-2+deb9u3) stretch; urgency=medium
  
    * Default to supporting Spatialite >= 4.2. (Closes: #910240)


The full diff is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/debian/changelog b/debian/changelog
index 17c90124e..b1c56f7c5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-django (1:1.10.7-2+deb9u3) stretch; urgency=medium
+
+  * Default to supporting Spatialite >= 4.2. (Closes: #910240)
+
+ -- Chris Lamb <la...@debian.org>  Thu, 11 Oct 2018 18:47:12 +0100
+
 python-django (1:1.10.7-2+deb9u2) stretch-security; urgency=high
 
   * Non-maintainer upload by the Security Team.
diff --git a/debian/patches/0006-Default-to-supporting-Spatialite-4.2.patch 
b/debian/patches/0006-Default-to-supporting-Spatialite-4.2.patch
new file mode 100644
index 000000000..6c92929a2
--- /dev/null
+++ b/debian/patches/0006-Default-to-supporting-Spatialite-4.2.patch
@@ -0,0 +1,28 @@
+From: Chris Lamb <la...@debian.org>
+Date: Thu, 4 Oct 2018 09:58:58 +0100
+Subject: Default to supporting Spatialite 4.2
+
+See, for example:
+
+  https://www.gaia-gis.it/fossil/libspatialite/wiki?name=mod_spatialite
+
+... and:
+
+  
https://docs.djangoproject.com/en/2.1/ref/contrib/gis/install/spatialite/#installing-spatialite
+---
+ django/contrib/gis/db/backends/spatialite/base.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/django/contrib/gis/db/backends/spatialite/base.py 
b/django/contrib/gis/db/backends/spatialite/base.py
+index 1f03868..6d0d631 100644
+--- a/django/contrib/gis/db/backends/spatialite/base.py
++++ b/django/contrib/gis/db/backends/spatialite/base.py
+@@ -35,7 +35,7 @@ class DatabaseWrapper(SQLiteDatabaseWrapper):
+         # cannot be found by `ctypes.util.find_library`), then it may be set
+         # manually in the settings via the `SPATIALITE_LIBRARY_PATH` setting.
+         self.spatialite_lib = getattr(settings, 'SPATIALITE_LIBRARY_PATH',
+-                                      find_library('spatialite'))
++                                      'mod_spatialite')
+         if not self.spatialite_lib:
+             raise ImproperlyConfigured('Unable to locate the SpatiaLite 
library. '
+                                        'Make sure it is in your library path, 
or set '
diff --git a/debian/patches/series b/debian/patches/series
index 0b2048f8f..6ccbb746a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ fix-test-middleware-classes-headers.patch
 0014-CVE-2018-7537.patch
 0015-CVE-2018-14574.patch
 0016-CVE-2017-12794.patch
+0006-Default-to-supporting-Spatialite-4.2.patch

Reply via email to