unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#44967] [PATCH 0/2] Update libspatialite to 5.0.0
@ 2020-11-30 19:37 Felix Gruber
  2020-11-30 19:42 ` [bug#44967] [PATCH 1/2] gnu: Add librttopo Felix Gruber
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Felix Gruber @ 2020-11-30 19:37 UTC (permalink / raw)
  To: 44967; +Cc: Felix Gruber

Hey Guix,

these patches update libspatialite to the latest available release.

There were two new required dependencies: minizip and librttopo.
The latter was not yet packaged in guix, so the first patch adds a
librttopo package.

Technically, libspatialite could also be built without librttopo, but
then the spatialite-tools package fails compilation due to missing
symbols. So in the end, I also added librttopo to libspatialite's
inputs.

Lastly, I've checked that all three packages depending on libspatialite
(spatialite-gui@1.7.1 qgis@3.12.1 spatialite-tools@5.0.0) still built
sucessfully after the update.

Felix Gruber (2):
  gnu: Add librttopo.
  gnu: libspatialite: Update to 5.0.0.

 gnu/packages/geo.scm | 66 ++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 61 insertions(+), 5 deletions(-)

-- 
2.29.2





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

* [bug#44967] [PATCH 1/2] gnu: Add librttopo.
  2020-11-30 19:37 [bug#44967] [PATCH 0/2] Update libspatialite to 5.0.0 Felix Gruber
@ 2020-11-30 19:42 ` Felix Gruber
  2020-11-30 19:42 ` [bug#44967] [PATCH 2/2] gnu: libspatialite: Update to 5.0.0 Felix Gruber
  2020-12-01 17:47 ` bug#44967: [PATCH 0/2] Update libspatialite " Guillaume Le Vaillant
  2 siblings, 0 replies; 4+ messages in thread
From: Felix Gruber @ 2020-11-30 19:42 UTC (permalink / raw)
  To: 44967; +Cc: Felix Gruber

* gnu/packages/geo.scm (librttopo): New variable.
---
 gnu/packages/geo.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 5908ef4b66..1c8e6c8cfa 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020 Christopher Baines <mail@cbaines.net>
+;;; Copyright © 2020 Felix Gruber <felgru@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -365,6 +366,55 @@ writing GeoTIFF information tags.")
                    (license:non-copyleft "file://LICENSE"
                                          "See LICENSE in the distribution.")))))
 
+(define-public librttopo
+  (package
+    (name "librttopo")
+    (version "1.1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.osgeo.org/gitea/rttopo/librttopo")
+             (commit (string-append "librttopo-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0h7lzlkn9g4xky6h81ndy0aa6dxz8wb6rnl8v3987jy1i6pr072p"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-autogen
+           (lambda _
+             (let ((autoconf (which "autoconf"))
+                   (autoheader (which "autoheader"))
+                   (aclocal (which "aclocal"))
+                   (automake (which "automake"))
+                   (libtoolize (which "libtoolize"))
+                   )
+               (substitute* "autogen.sh"
+                            (("`which autoconf 2>/dev/null`") autoconf)
+                            (("`which autoheader 2>/dev/null`") autoheader)
+                            (("ACLOCAL=.*$")
+                             (string-append "ACLOCAL=" aclocal "\n"))
+                            (("AUTOMAKE=.*$")
+                             (string-append "AUTOMAKE=" automake "\n"))
+                            (("LIBTOOLIZE=.*$")
+                             (string-append "LIBTOOLIZE=" libtoolize "\n"))))
+             #t)))))
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("geos" ,geos)))
+    (synopsis "Library to handle SQL/MM topologies")
+    (description
+     "The RT Topology Library exposes an API to create and manage standard
+(ISO 13249 aka SQL/MM) topologies using user-provided data stores.")
+    (home-page "https://git.osgeo.org/gitea/rttopo/librttopo")
+    (license license:gpl2+)))
+
 (define-public libspatialite
   (package
     (name "libspatialite")
-- 
2.29.2





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

* [bug#44967] [PATCH 2/2] gnu: libspatialite: Update to 5.0.0.
  2020-11-30 19:37 [bug#44967] [PATCH 0/2] Update libspatialite to 5.0.0 Felix Gruber
  2020-11-30 19:42 ` [bug#44967] [PATCH 1/2] gnu: Add librttopo Felix Gruber
@ 2020-11-30 19:42 ` Felix Gruber
  2020-12-01 17:47 ` bug#44967: [PATCH 0/2] Update libspatialite " Guillaume Le Vaillant
  2 siblings, 0 replies; 4+ messages in thread
From: Felix Gruber @ 2020-11-30 19:42 UTC (permalink / raw)
  To: 44967; +Cc: Felix Gruber

* gnu/packages/geo.scm (libspatialite, spatialite-tools): Update to 5.0.0.
[inputs]: Add new required dependencies minizip and librttopo.
---
 gnu/packages/geo.scm | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 1c8e6c8cfa..30e63a9eb6 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -418,7 +418,7 @@ writing GeoTIFF information tags.")
 (define-public libspatialite
   (package
     (name "libspatialite")
-    (version "4.3.0a")
+    (version "5.0.0")
     (source
      (origin
        (method url-fetch)
@@ -426,19 +426,23 @@ writing GeoTIFF information tags.")
                            version ".tar.gz"))
        (sha256
         (base32
-         "16d4lpl7xrm9zy4gphy6nwanpjp8wn9g4wq2i2kh8abnlhq01448"))))
+         "1b3dmkgwbfi43hj3jzy2mh707khavrnw91vdd5sv387m8c1dfzvv"))))
     (build-system gnu-build-system)
     (native-inputs
      `(("pkg-config" ,pkg-config)))
     (inputs
      `(("freexl" ,freexl)
        ("geos" ,geos)
+       ("librttopo" ,librttopo)
        ("libxml2" ,libxml2)
+       ("minizip" ,minizip)
        ("proj.4" ,proj.4)
        ("sqlite" ,sqlite)
        ("zlib" ,zlib)))
     (arguments
-     `(#:phases
+     `(#:configure-flags
+       '("--enable-rttopo=yes")
+       #:phases
        (modify-phases %standard-phases
          ;; 3 tests are failing, ignore them:
          (add-after 'unpack 'ignore-broken-tests
@@ -1688,14 +1692,14 @@ input file (in @code{.osm} or @code{.osm.pbf} format).")
 (define-public spatialite-tools
   (package
     (name "spatialite-tools")
-    (version "4.3.0")
+    (version "5.0.0")
     (source
      (origin
        (method url-fetch)
        (uri (string-append "https://www.gaia-gis.it/gaia-sins/"
                            "spatialite-tools-" version ".tar.gz"))
        (sha256
-        (base32 "12fggjhi8cgwvw8f6nk76f83b8lqkc07abxyj5ap6f2gq2dqafgp"))))
+        (base32 "0ckddgdpxhy6vkpr9q2hnx5qmanrd8g4pqnifbrq1i5jrj82s2dd"))))
     (build-system gnu-build-system)
     (native-inputs
      `(("pkg-config" ,pkg-config)))
@@ -1703,8 +1707,10 @@ input file (in @code{.osm} or @code{.osm.pbf} format).")
      `(("expat" ,expat)
        ("freexl" ,freexl)
        ("geos" ,geos)
+       ("librttopo" ,librttopo)
        ("libspatialite" ,libspatialite)
        ("libxml2" ,libxml2)
+       ("minizip" ,minizip)
        ("proj.4" ,proj.4)
        ("readosm" ,readosm)
        ("sqlite" ,sqlite)
-- 
2.29.2





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

* bug#44967: [PATCH 0/2] Update libspatialite to 5.0.0
  2020-11-30 19:37 [bug#44967] [PATCH 0/2] Update libspatialite to 5.0.0 Felix Gruber
  2020-11-30 19:42 ` [bug#44967] [PATCH 1/2] gnu: Add librttopo Felix Gruber
  2020-11-30 19:42 ` [bug#44967] [PATCH 2/2] gnu: libspatialite: Update to 5.0.0 Felix Gruber
@ 2020-12-01 17:47 ` Guillaume Le Vaillant
  2 siblings, 0 replies; 4+ messages in thread
From: Guillaume Le Vaillant @ 2020-12-01 17:47 UTC (permalink / raw)
  To: Felix Gruber; +Cc: 44967-done

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


Felix Gruber <felgru@posteo.net> skribis:

> Felix Gruber (2):
>   gnu: Add librttopo.
>   gnu: libspatialite: Update to 5.0.0.
>
>  gnu/packages/geo.scm | 66 ++++++++++++++++++++++++++++++++++++++++----
>  1 file changed, 61 insertions(+), 5 deletions(-)

Pushed as a051bf405bf70d36a99195aff15ff82e99a7b504 and following.
Thanks.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

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

end of thread, other threads:[~2020-12-01 17:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-30 19:37 [bug#44967] [PATCH 0/2] Update libspatialite to 5.0.0 Felix Gruber
2020-11-30 19:42 ` [bug#44967] [PATCH 1/2] gnu: Add librttopo Felix Gruber
2020-11-30 19:42 ` [bug#44967] [PATCH 2/2] gnu: libspatialite: Update to 5.0.0 Felix Gruber
2020-12-01 17:47 ` bug#44967: [PATCH 0/2] Update libspatialite " Guillaume Le Vaillant

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).