unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#56370] [PATCH] gnu: gdal: Use cmake-build-system.
@ 2022-07-03 19:57 Felix Gruber
  2022-07-08 15:14 ` bug#56370: " Björn Höfling
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Gruber @ 2022-07-03 19:57 UTC (permalink / raw)
  To: 56370; +Cc: Felix Gruber

Gdal declared its configure script as deprecated with the release of
version 3.5 and is planning to deprecate it with release 3.6 which is
scheduled for November 2022.

* gnu/packages/geo.scm (gdal)[build-system]: Use cmake-build-system.
  [arguments]: Remove configure flags for library search paths;
  they are found automatically by cmake now. Add
  -DGDAL_USE_INTERNAL_LIBS=WHEN_NO_EXTERNAL and
  -DGDAL_USE_JPEG12_INTERNAL=OFF to get approximately the same results
  as with the old configure script.
  [inputs]: Remove pcre. Add pcre2 and qhull.
---
 gnu/packages/geo.scm | 26 +++++---------------------
 1 file changed, 5 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index d8e642f349..c934ee9e27 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -969,29 +969,12 @@ development.")
                        "frmts/gtiff/libgeotiff"
                        "frmts/zlib"
                        "ogr/ogrsf_frmts/geojson/libjson"))))))
-    (build-system gnu-build-system)
+    (build-system cmake-build-system)
     (arguments
      `(#:tests? #f
        #:configure-flags
-       (let-syntax ((with (syntax-rules ()
-                            ((_ option input)
-                             (string-append option "="
-                                            (assoc-ref %build-inputs input))))))
-         (list
-          ;; TODO: --with-pcidsk, --with-pcraster
-          (with "--with-expat" "expat")
-          (with "--with-freexl" "freexl")
-          (with "--with-geotiff" "libgeotiff")
-          (with "--with-gif" "giflib")
-          (with "--with-jpeg" "libjpeg-turbo")
-          (with "--with-libjson-c" "json-c")
-          (with "--with-libtiff" "libtiff")
-          (with "--with-libz" "zlib")
-          (with "--with-png" "libpng")
-          (with "--with-sqlite3" "sqlite")
-          (with "--with-webp" "libwebp")
-          "--without-jpeg12"
-          "--with-pcre"))))
+       (list "-DGDAL_USE_INTERNAL_LIBS=WHEN_NO_EXTERNAL"
+             "-DGDAL_USE_JPEG12_INTERNAL=OFF")))
     (inputs
      (list curl
            expat
@@ -1006,9 +989,10 @@ development.")
            libwebp
            netcdf
            openssl
-           pcre
+           pcre2
            postgresql ; libpq
            proj
+           qhull
            sqlite
            zlib))
     (native-inputs
-- 
2.30.2





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#56370: [PATCH] gnu: gdal: Use cmake-build-system.
  2022-07-03 19:57 [bug#56370] [PATCH] gnu: gdal: Use cmake-build-system Felix Gruber
@ 2022-07-08 15:14 ` Björn Höfling
  0 siblings, 0 replies; 2+ messages in thread
From: Björn Höfling @ 2022-07-08 15:14 UTC (permalink / raw)
  To: Felix Gruber; +Cc: 56370-done

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

On Sun,  3 Jul 2022 19:57:26 +0000
Felix Gruber <felgru@posteo.net> wrote:

> Gdal declared its configure script as deprecated with the release of
> version 3.5 and is planning to deprecate it with release 3.6 which is
> scheduled for November 2022.
> 
> * gnu/packages/geo.scm (gdal)[build-system]: Use cmake-build-system.

LGTM.

I built it and checked that gdalinfo xxx.tif still works.

Pushed as

6f909b37fa12ebf2002c609944b56e0feb77e841

Thanks.

Björn

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-08 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-03 19:57 [bug#56370] [PATCH] gnu: gdal: Use cmake-build-system Felix Gruber
2022-07-08 15:14 ` bug#56370: " Björn Höfling

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).