[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38149: closed ([WIP] gnu: Add qgis.)

From: GNU bug Tracking System
Subject: bug#38149: closed ([WIP] gnu: Add qgis.)
Date: Tue, 24 Mar 2020 11:47:02 +0000

Your message dated Tue, 24 Mar 2020 17:16:22 +0530
with message-id <address@hidden>
and subject line Re: [bug#38149] [WIP] gnu: Add qgis.
has caused the debbugs.gnu.org bug report #38149,
regarding [WIP] gnu: Add qgis.
to be marked as done.

(If you believe you have received this mail in error, please contact

38149: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38149
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [WIP] gnu: Add qgis. Date: Sat, 9 Nov 2019 12:27:02 +0100
From: Wiktor Żelazny <address@hidden>

* gnu/packages/geo.scm (qgis): new variable.
Does not build due to QtXml/QtXmlmod.sip not found.
This is my attempt to define some minimal QGIS package. Unfortunately,
the build crashes with
   sip: Unable to find file "QtXml/QtXmlmod.sip"
   $ ls -l 
   -r--r--r-- 5 root root 1937 Jan  1  1970 
I thought that maybe the QtXml/ directory being a symlink
   QtXml -> 
was the problem, but including python-pyqt (or python-sip, for that
matter) among the inputs did not solve the issue. Explicitly defining
directories as configure flags does not work, either. Any suggestion how
to progress on this? Thanks!
 gnu/packages/geo.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index dfb00c7547..26bbcd2f63 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -42,12 +42,14 @@
   #:use-module (guix utils)
   #:use-module (gnu packages astronomy)
   #:use-module (gnu packages autotools)
+  #:use-module (gnu packages bison)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages datastructures)
   #:use-module (gnu packages documentation)
+  #:use-module (gnu packages flex)
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages glib)
@@ -55,7 +57,9 @@
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages icu4c)
+  #:use-module (gnu packages kde)
   #:use-module (gnu packages lua)
+  #:use-module (gnu packages maths)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
@@ -1037,3 +1041,62 @@ persisted.
 @end itemize
     (license license:expat)))
+(define-public qgis
+  (package
+    (name "qgis")
+    (version "3.8.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://qgis.org/downloads/"; name "-" version ".tar.bz2"))
+        (sha256
+          (base32
+            ; checked <uri>.md5
+            "1g8pzfm68n28pj7a4z9c1yklnwx5and83svjx6w8q5dwhf23xjiw"))))
+    (build-system cmake-build-system)
+    (native-inputs
+      `(("flex" ,flex)
+        ("bison" ,bison)
+        ("python" ,python)))
+    (inputs
+      `(("qtbase" ,qtbase)
+        ("qtserialport" ,qtserialport)
+        ("qtsvg" ,qtsvg)
+        ("qtlocation" ,qtlocation)
+        ("qttools" ,qttools)
+        ("qtdeclarative" ,qtdeclarative)
+        ("qtwebkit" ,qtwebkit)
+        ("proj.4" ,proj.4)
+        ("geos" ,geos)
+        ("sqlite" ,sqlite)
+        ("libspatialite" ,libspatialite)
+        ("libspatialindex" ,libspatialindex)
+        ("gdal" ,gdal)
+        ("qwt" ,qwt)
+        ("expat" ,expat)
+        ("qscintilla" ,qscintilla)
+        ("qca" ,qca)
+        ("qtkeychain" ,qtkeychain)
+        ("libzip" ,libzip)
+        ("python-pyqt+qscintilla" ,python-pyqt+qscintilla)
+;        ("python-sip" ,python-sip)
+        ("exiv2" ,exiv2)
+        ("gsl" ,gsl)))
+    (arguments
+      `(#:configure-flags (list (string-append
+                                  "-DPYQT5_SIP_DIR="
+                                  (assoc-ref
+                                    %build-inputs "python-pyqt+qscintilla")
+                                  "/share/sip")
+                                (string-append
+                                  "-DQSCI_SIP_DIR="
+                                  (assoc-ref
+                                    %build-inputs "python-pyqt+qscintilla")
+                                  "/share/sip"))))
+    (home-page "https://qgis.org";)
+    (synopsis "A free and open source Geographic Information System")
+    (description "QGIS is a professional GIS application that is built on top
+of and proud to be itself @dfn{Free and Open Source Software} (FOSS).")
+    (license license:gpl2+)))

--- End Message ---
--- Begin Message --- Subject: Re: [bug#38149] [WIP] gnu: Add qgis. Date: Tue, 24 Mar 2020 17:16:22 +0530
> I added the other licenses to the package definition (I hope I didn't
> miss anything).

qgis' various parts are licensed differently in one giant mess. And,
it'll be hard to keep the license field up to date. But, let's hope. :-)

> Pushed as 151f3d416cff16d7e7d57dd24756dc4357384a1f.

Ok, thanks! :-)

> Should this issue be closed, or left open for the remaining failing
> tests?

I have closed this issue. Anyone improving the package can open a
separate issue.

Attachment: signature.asc
Description: PGP signature

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]