mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
gis/python3-shapely: Updated for version 2.0.6.
Apply updstream patch to fix compilation with gcc 14 (-current) Signed-off-by: ArTourter <artourter@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
2d7f02b014
commit
c5f1980b42
3 changed files with 29 additions and 4 deletions
|
@ -0,0 +1,22 @@
|
|||
From 9795506bba84e96418466ae84573c0cf8654bbeb Mon Sep 17 00:00:00 2001
|
||||
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
|
||||
Date: Sun, 3 Dec 2023 11:36:36 -0500
|
||||
Subject: [PATCH] Fix incompatible pointer type passed to GEOSPolygonize_r
|
||||
|
||||
---
|
||||
src/ufuncs.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/ufuncs.c b/src/ufuncs.c
|
||||
index ed83e9619..9d08fa20c 100644
|
||||
--- a/src/ufuncs.c
|
||||
+++ b/src/ufuncs.c
|
||||
@@ -2160,7 +2160,7 @@ static void polygonize_func(char** args, const npy_intp* dimensions, const npy_i
|
||||
|
||||
GEOS_INIT;
|
||||
|
||||
- GEOSGeometry** geoms = malloc(sizeof(void*) * dimensions[1]);
|
||||
+ const GEOSGeometry** geoms = malloc(sizeof(void*) * dimensions[1]);
|
||||
if (geoms == NULL) {
|
||||
errstate = PGERR_NO_MALLOC;
|
||||
goto finish;
|
|
@ -26,7 +26,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=python3-shapely
|
||||
VERSION=${VERSION:-2.0.4}
|
||||
VERSION=${VERSION:-2.0.6}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -66,6 +66,9 @@ find -L . \
|
|||
-perm /111 -o \! -perm 755 -o -exec chmod 755 {} + -a \
|
||||
\! -perm /111 -o \! -perm 644 -o -exec chmod 644 {} +
|
||||
|
||||
# Apply upstream patch to fix compilation with gcc 14
|
||||
patch -p1 < $CWD/9795506bba84e96418466ae84573c0cf8654bbeb.patch
|
||||
|
||||
# Fixing numpy dependency check in pyproject.toml:
|
||||
# oldest-supported-numpy has a strict check and doesn't support newer version
|
||||
# so we replace it. The alternative is to add --skip-dependency-check to tbe
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="python3-shapely"
|
||||
VERSION="2.0.4"
|
||||
VERSION="2.0.6"
|
||||
HOMEPAGE="https://github.com/shapely/shapely"
|
||||
DOWNLOAD="https://github.com/shapely/shapely/archive/2.0.4/shapely-2.0.4.tar.gz"
|
||||
MD5SUM="078dd2876cffa8ccc3bd5a84a67a2c74"
|
||||
DOWNLOAD="https://github.com/shapely/shapely/archive/2.0.6/shapely-2.0.6.tar.gz"
|
||||
MD5SUM="8a8294e0d12479457e0c84a3a5d4665b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="python3-setuptools-opt python3-numpy geos"
|
||||
|
|
Loading…
Reference in a new issue