From patchwork Sat Nov 9 11:27:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Wiktor_=C5=BBelazny?= X-Patchwork-Id: 16067 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 720D3176B6; Sat, 9 Nov 2019 11:28:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 2985D17694 for ; Sat, 9 Nov 2019 11:28:13 +0000 (GMT) Received: from localhost ([::1]:35986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTOua-0000LK-At for patchwork@mira.cbaines.net; Sat, 09 Nov 2019 06:28:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54449) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTOuR-0000I5-Ft for guix-patches@gnu.org; Sat, 09 Nov 2019 06:28:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTOuQ-0001GM-57 for guix-patches@gnu.org; Sat, 09 Nov 2019 06:28:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTOuQ-0001GG-25 for guix-patches@gnu.org; Sat, 09 Nov 2019 06:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iTOuP-0001zU-Te for guix-patches@gnu.org; Sat, 09 Nov 2019 06:28:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38149] [WIP] gnu: Add qgis. Resent-From: Wiktor =?utf-8?q?=C5=BBelazny?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Nov 2019 11:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38149 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 38149@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15732988757628 (code B ref -1); Sat, 09 Nov 2019 11:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Nov 2019 11:27:55 +0000 Received: from localhost ([127.0.0.1]:48299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTOuJ-0001yu-8M for submit@debbugs.gnu.org; Sat, 09 Nov 2019 06:27:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:42352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTOuG-0001yn-Vl for submit@debbugs.gnu.org; Sat, 09 Nov 2019 06:27:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54376) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTOuF-0008Si-GT for guix-patches@gnu.org; Sat, 09 Nov 2019 06:27:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTOuE-00019J-65 for guix-patches@gnu.org; Sat, 09 Nov 2019 06:27:51 -0500 Received: from freeshell.de ([2a01:360:106::2]:54352) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iTOuD-00017c-U7 for guix-patches@gnu.org; Sat, 09 Nov 2019 06:27:50 -0500 From: Wiktor =?utf-8?q?=C5=BBelazny?= Date: Sat, 9 Nov 2019 12:27:02 +0100 Message-Id: <20191109112702.14723-1-wz@freeshell.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Wiktor Żelazny * 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" but: $ ls -l /gnu/store/8d1ak3bpaaqhw4hnxksan7fnh5ll7i5f-python-pyqt+qscintilla-5.11.3/share/sip/QtXml/QtXmlmod.sip -r--r--r-- 5 root root 1937 Jan 1 1970 /gnu/store/8d1ak3bpaaqhw4hnxksan7fnh5ll7i5f-python-pyqt+qscintilla-5.11.3/share/sip/QtXml/QtXmlmod.sip I thought that maybe the QtXml/ directory being a symlink QtXml -> /gnu/store/mfii8qx5x3kbl1gzg8g8qmblqk6fdmvf-python-pyqt-5.11.3/share/sip/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 .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+)))