aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
committerMx Kookie <kookie@spacekookie.de>2020-12-09 18:55:19 +0000
commit80d90d9b204f7c17912740f9f414fe5d59f293ba (patch)
tree5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch
parent3a31a84c7d3e589035ad08499206aac44a81f424 (diff)
parent83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff)
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch b/infra/libkookie/nixpkgs/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch
new file mode 100644
index 000000000000..6b853f8d85f0
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch
@@ -0,0 +1,24 @@
+diff -Nur a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py
+--- a/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:34:05.330568948 +0100
++++ b/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:35:08.679095615 +0100
+@@ -14,7 +14,7 @@
+ from django.conf import settings
+ lib_path = settings.GDAL_LIBRARY_PATH
+ except (AttributeError, ImportError, ImproperlyConfigured, OSError):
+- lib_path = None
++ lib_path = "@gdal@/lib/libgdal@extension@"
+
+ if lib_path:
+ lib_names = None
+diff -Nur a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py
+--- a/django/contrib/gis/geos/libgeos.py 2020-07-09 22:34:05.331568941 +0100
++++ b/django/contrib/gis/geos/libgeos.py 2020-07-09 22:36:24.863526276 +0100
+@@ -24,7 +24,7 @@
+ from django.conf import settings
+ lib_path = settings.GEOS_LIBRARY_PATH
+ except (AttributeError, ImportError, ImproperlyConfigured, OSError):
+- lib_path = None
++ lib_path = "@geos@/lib/libgeos_c@extension@"
+
+ # Setting the appropriate names for the GEOS-C library.
+ if lib_path: