saga: 9.7.2 → 9.8.1 (#420838)

This commit is contained in:
Ivan Mincik
2025-07-03 10:45:07 +02:00
committed by GitHub
3 changed files with 2 additions and 64 deletions
-30
View File
@@ -1,30 +0,0 @@
commit 3bbd15676dfc077d7836e9d51810c1d6731f5789
Author: Palmer Cox <p@lmercox.com>
Date: Sun Feb 23 16:41:18 2025 -0500
Fix copy/paste error in FindPostgres.cmake
In f51c6b1513e312002c108fe87d26e33c48671406, EXEC_PROGRAM was changed to
execute_process. As part of that, it looks like the second and third
invocations were accidentally changed.
diff --git a/saga-gis/cmake/modules/FindPostgres.cmake b/saga-gis/cmake/modules/FindPostgres.cmake
index f22806fd9..a4b6ec9ac 100644
--- a/cmake/modules/FindPostgres.cmake
+++ b/cmake/modules/FindPostgres.cmake
@@ -77,13 +77,13 @@ ELSE(WIN32)
SET(POSTGRES_INCLUDE_DIR ${PG_TMP} CACHE STRING INTERNAL)
# set LIBRARY_DIR
- execute_process(COMMAND ${POSTGRES_CONFIG} --includedir
+ execute_process(COMMAND ${POSTGRES_CONFIG} --libdir
OUTPUT_VARIABLE PG_TMP
OUTPUT_STRIP_TRAILING_WHITESPACE)
IF (APPLE)
SET(POSTGRES_LIBRARY ${PG_TMP}/libpq.dylib CACHE STRING INTERNAL)
ELSEIF (CYGWIN)
- execute_process(COMMAND ${POSTGRES_CONFIG} --includedir
+ execute_process(COMMAND ${POSTGRES_CONFIG} --libs
OUTPUT_VARIABLE PG_TMP
OUTPUT_STRIP_TRAILING_WHITESPACE)
-24
View File
@@ -1,24 +0,0 @@
commit eb69f594ec439309432e87834bead5276b7dbc9b
Author: Palmer Cox <p@lmercox.com>
Date: Sun Feb 23 16:45:34 2025 -0500
On Apple, use FIND_LIBRARY to locate libpq
I think FIND_LIBRARY() is better than just relying on what pg_config
said its libdir was, since, depending on how libpq was installed, it may
or may not be in that directory. If its not, FIND_LIBRARY() is able to
find it in other locations.
diff --git a/saga-gis/cmake/modules/FindPostgres.cmake b/saga-gis/cmake/modules/FindPostgres.cmake
index a4b6ec9ac..65e7ac69b 100644
--- a/cmake/modules/FindPostgres.cmake
+++ b/cmake/modules/FindPostgres.cmake
@@ -81,7 +81,7 @@ ELSE(WIN32)
OUTPUT_VARIABLE PG_TMP
OUTPUT_STRIP_TRAILING_WHITESPACE)
IF (APPLE)
- SET(POSTGRES_LIBRARY ${PG_TMP}/libpq.dylib CACHE STRING INTERNAL)
+ FIND_LIBRARY(POSTGRES_LIBRARY NAMES pq libpq PATHS ${PG_TMP})
ELSEIF (CYGWIN)
execute_process(COMMAND ${POSTGRES_CONFIG} --libs
OUTPUT_VARIABLE PG_TMP
+2 -10
View File
@@ -33,23 +33,15 @@
stdenv.mkDerivation rec {
pname = "saga";
version = "9.7.2";
version = "9.8.1";
src = fetchurl {
url = "mirror://sourceforge/saga-gis/saga-${version}.tar.gz";
hash = "sha256-1nWpFGRBS49uzKl7m/4YWFI+3lvm2zKByYpR9llxsgY=";
hash = "sha256-NCNeTxR4eWMJ3OHcBEQ2MZky9XiEExPscGhriDvXYf8=";
};
sourceRoot = "saga-${version}/saga-gis";
patches = [
# Patches from https://sourceforge.net/p/saga-gis/code/merge-requests/38/.
# These are needed to fix building on Darwin (technically the first is not
# required, but the second doesn't apply without it).
./darwin-patch-1.patch
./darwin-patch-2.patch
];
nativeBuildInputs = [
cmake
wrapGAppsHook3