From patchwork Tue Sep 15 14:08:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leo Prikler X-Patchwork-Id: 24143 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 C1D9227BBEA; Tue, 15 Sep 2020 15:08:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 97EB627BBE7 for ; Tue, 15 Sep 2020 15:08:19 +0100 (BST) Received: from localhost ([::1]:47794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIBd4-0001E6-O6 for patchwork@mira.cbaines.net; Tue, 15 Sep 2020 10:08:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIBco-0001BZ-4N for guix-patches@gnu.org; Tue, 15 Sep 2020 10:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48409) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIBcn-0007ON-Rf for guix-patches@gnu.org; Tue, 15 Sep 2020 10:08:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIBcn-0005LP-Kn for guix-patches@gnu.org; Tue, 15 Sep 2020 10:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43360] [PATCH 1/2] gnu: Add libgda. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 15 Sep 2020 14:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43360 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: 43360@debbugs.gnu.org Received: via spool by 43360-submit@debbugs.gnu.org id=B43360.160017887620534 (code B ref 43360); Tue, 15 Sep 2020 14:08:01 +0000 Received: (at 43360) by debbugs.gnu.org; 15 Sep 2020 14:07:56 +0000 Received: from localhost ([127.0.0.1]:59955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIBci-0005L8-FD for submit@debbugs.gnu.org; Tue, 15 Sep 2020 10:07:56 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:45273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIBcc-0005Kt-Ro for 43360@debbugs.gnu.org; Tue, 15 Sep 2020 10:07:54 -0400 Received: from nijino.local (217-149-165-169.nat.highway.telekom.at [217.149.165.169]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4BrQ6W37n6z1DVPQ; Tue, 15 Sep 2020 16:07:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4BrQ6W37n6z1DVPQ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1600178867; bh=0t9GPOBLNp0nfflnGo/YE9PWBeVsslM2nCoO3DhgTSI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=MW2LiLSjC12rUxl4u4pmf1r8XLJ1EhYVhnKr1rR/75M71Dv/1vXfQ0340XFWL7+Fl eXiyRE0AF37qX+DJ+87oxB6wjzqCG+0fm/GYGCJTvX/mfsncbfoO3J5xxFLvFwFU4l sM6wtWOuf0kpIhI6u7SXBegn5LqBXBZNYFRxg7rs= Message-ID: <53dc6a23dbab3ec8f7ec0f7fecec72f15e8cfa9e.camel@student.tugraz.at> From: Leo Prikler Date: Tue, 15 Sep 2020 16:08:05 +0200 In-Reply-To: <87363ji5mw.fsf@gnu.org> References: <6c0cdef1869e35d7e6aaf0a09256531ddb90a357.camel@student.tugraz.at> <20200912183533.5793-1-leo.prikler@student.tugraz.at> <87363ji5mw.fsf@gnu.org> User-Agent: Evolution 3.34.2 MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 Hi! Am Dienstag, den 15.09.2020, 14:30 +0200 schrieb Ludovic Courtès: > [...] > > It’d also be nice to add a short comment explaining what’s wrong with > those tests. It turned out to be a race condition sparked by those two files trying to access the same SQL database, which is bound to fail with parallel tests. Kinda weird for a "multi-threading" test suite, but whatever. While I was at it, I also enabled vala and glade support, so this patch is a little bigger than the previous one. Regards, Leo From c9b0c5838131e10708ac63b981fea5a8c9d92f62 Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Sat, 12 Sep 2020 19:51:59 +0200 Subject: [PATCH 1/2] gnu: Add libgda. * gnu/packages/gnome.scm (libgda): New variable. --- gnu/packages/gnome.scm | 79 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index ed2915e05a..c8caf5277d 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -11445,3 +11445,82 @@ integrated profiler via Sysprof, debugging support, and more.") (description "Komikku is an online/offline manga reader for GNOME, developed with the aim of being used with the Librem 5 phone.") (license license:gpl3+))) + +(define-public libgda + (package + (name "libgda") + (version "5.2.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.gnome.org/GNOME/libgda.git/") + (commit "LIBGDA_5_2_9"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "122anbk15vj2dfxrw7s48b6zwlpp7cyppshxizynvf3zmc0ygw3j")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags '("--enable-vala") + ;; There's a race between check_cnc_lock and check_threaded_cnc + ;; in tests/multi-threading. + #:parallel-tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-glade-install + (lambda _ + (substitute* "configure.ac" + (("`\\$PKG_CONFIG --variable=catalogdir gladeui-2\\.0`") + "${datadir}/glade/catalogs") + (("`\\$PKG_CONFIG --variable=pixmapdir gladeui-2\\.0`") + "${datadir}/glade/pixmaps")) + #t)) + (add-before 'check 'pre-check + (lambda* (#:key inputs #:allow-other-keys) + ;; Tests require a running X server. + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1") + #t)) + (add-after 'install 'symlink-glade-module + (lambda* (#:key outputs #:allow-other-keys) + (let* ((shlib "libgda-ui-5.0.so") + (out (assoc-ref outputs "out")) + (out/lib (string-append out "/lib")) + (moduledir (string-append out/lib "/glade/modules"))) + (mkdir-p moduledir) + (symlink (string-append out/lib "/" shlib) + (string-append moduledir "/" shlib)) + #t)))))) + (propagated-inputs + `(("libxml2" ,libxml2))) ; required by libgda-5.0.pc + (inputs + `(("glib" ,glib) + ("glade" ,glade3) + ("gtk+" ,gtk+) + ("libsecret" ,libsecret) + ("libxslt" ,libxslt) + ("openssl" ,openssl) + ("vala" ,vala))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("glib:bin" ,glib "bin") + ("gnome-common" ,gnome-common) + ("gobject-introspection" ,gobject-introspection) + ("gtk-doc" ,gtk-doc) + ("intltool" ,intltool) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config) + ("vala" ,vala) + ("which" ,which) + ("xorg-server" ,xorg-server-for-tests) + ("yelp-tools" ,yelp-tools))) + (home-page "https://gitlab.gnome.org/GNOME/libgda") + (synopsis "Uniform data access") + (description + "GNU Data Access (GDA) is an attempt to provide uniform access to +different kinds of data sources (databases, information servers, mail spools, +etc). It is a complete architecture that provides all you need to access +your data.") + (license license:lgpl2.1+))) -- 2.28.0