From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tanguy Le Carrour Subject: Packaging Grisbi Date: Sun, 12 May 2019 14:11:01 +0200 Message-ID: <20190512121101.qabhj5jdcnwgs6jp@melmoth> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPnJu-0008Jh-OD for guix-devel@gnu.org; Sun, 12 May 2019 08:11:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPnJs-0004iK-VX for guix-devel@gnu.org; Sun, 12 May 2019 08:11:10 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:58131) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPnJs-0004dx-OZ for guix-devel@gnu.org; Sun, 12 May 2019 08:11:08 -0400 Received: from localhost (89-92-229-106.hfc.dyn.abo.bbox.fr [89.92.229.106]) (Authenticated sender: tanguy@bioneland.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 51C53FF806 for ; Sun, 12 May 2019 12:11:02 +0000 (UTC) Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Guix Hello Guix! This is my first packaging attempt, please be indulgent… I decided to start small and be a little chauvinistic by packaging Grisbi "an application written by French developers"! :-) ``` (define-module (gnu packages grisbi) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system glib-or-gtk) #:use-module (gnu packages gtk) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages pkg-config) #:use-module (guix licenses)) (define-public grisbi (package (name "grisbi") (version "1.2.1") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/projects/grisbi/files/" "grisbi stable/1.2.x/" version "/grisbi-" version ".tar.bz2/download")) (sha256 (base32 "0j6jq0h4kkhyqhdprhaw4zk6sn89s4a9h0m8i8hh5sc7fbi88nyq")))) (build-system glib-or-gtk-build-system) (arguments `(#:configure-flags (list "--without-ofx" "--without-goffice"))) (inputs `(("gtk+" ,gtk+) ("libgsf" ,libgsf))) (native-inputs `(("glib" ,glib "bin") ; glib-compile-schemas ("pkg-config" ,pkg-config) ("intltool" ,intltool))) (synopsis "Personnal accounting application") (description "Grisbi is an application written by French developers, so it perfectly respects French accounting rules. Grisbi can manage multiple accounts, currencies and users. It manages third party, expenditure and receipt categories, budgetary lines, financial years, budget estimates, bankcard management and other information that make Grisbi adapted for associations.") (home-page "http://grisbi.org") (license gpl2+))) ``` So far, it builds, it lints, it's installable… and it works! It still has a small amnesia problem: each time I start it, it's acting like it's the first time. It seems to be a dconf issue, for I get the following error message: ``` failed to commit changes to dconf: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files ``` Installing dconf does not solve the problem, though. I also don't know where to put it! In its own `grisbi.scm` file? Or alongside gnucash in a new `finance.scm` file? Any comment and piece of advice is welcome! -- Tanguy