From unknown Sat Aug 16 18:43:27 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#48773] [PATCH] gnu: Add libdqlite. Resent-From: Dion Mendel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Jun 2021 06:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48773 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48773@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1622527420398 (code B ref -1); Tue, 01 Jun 2021 06:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jun 2021 06:03:40 +0000 Received: from localhost ([127.0.0.1]:35496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnxV2-00006I-4K for submit@debbugs.gnu.org; Tue, 01 Jun 2021 02:03:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:54372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnxV0-000066-3m for submit@debbugs.gnu.org; Tue, 01 Jun 2021 02:03:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnxUz-000640-Pr for guix-patches@gnu.org; Tue, 01 Jun 2021 02:03:33 -0400 Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]:53673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnxUx-0006PI-N5 for guix-patches@gnu.org; Tue, 01 Jun 2021 02:03:33 -0400 X-Sender-Id: dreamhost|x-authsender|smtp@dm9.info Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6A0DF3424FD for ; Tue, 1 Jun 2021 06:03:29 +0000 (UTC) Received: from pdx1-sub0-mail-a81.g.dreamhost.com (100-96-17-26.trex.outbound.svc.cluster.local [100.96.17.26]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 69F633425AE for ; Tue, 1 Jun 2021 06:03:28 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|smtp@dm9.info Received: from pdx1-sub0-mail-a81.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.17.26 (trex/6.2.1); Tue, 01 Jun 2021 06:03:29 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|smtp@dm9.info X-MailChannels-Auth-Id: dreamhost X-Wide-Eyed-Rock: 17af540741c466cb_1622527409205_1839993900 X-MC-Loop-Signature: 1622527409205:607577746 X-MC-Ingress-Time: 1622527409204 Received: from pdx1-sub0-mail-a81.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a81.g.dreamhost.com (Postfix) with ESMTP id 2AD61887B0 for ; Mon, 31 May 2021 23:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=dm9.info; h=date:from:to :subject:message-id:mime-version:content-type :content-transfer-encoding; s=dm9.info; bh=bsq7+wqASZ4aM+Xr9RL1b tfW8yI=; b=rZ7xEw9efOMsk8I4HSX1XuwBQ95Q28PCsguUCH2/WjTthwvwTbpQq JZWzUFHOT41HYnXWHUMSb8ZSfPMLtc+cEVbzfbEEoiNqVXbL4FQ/gh/7F66MpRvx 8wns+jEKVLyx6Hs0j1mHrmS3Q7Gv1M+VnqHpl1O+y1HodlDedW+jZM= Received: from mail.localdomain (61-245-140-70.3df58c.per.nbn.aussiebb.net [61.245.140.70]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: smtp@dm9.info) by pdx1-sub0-mail-a81.g.dreamhost.com (Postfix) with ESMTPSA id DF76C88770 for ; Mon, 31 May 2021 23:03:27 -0700 (PDT) Received: by mail.localdomain (Postfix, from userid 2001) id B46DE514E47; Tue, 1 Jun 2021 14:03:23 +0800 (AWST) Date: Tue, 1 Jun 2021 14:03:23 +0800 X-DH-BACKEND: pdx1-sub0-mail-a81 From: Dion Mendel Message-ID: <20210601060323.GA27513@dm9.info> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=23.83.212.47; envelope-from=guix@dm9.info; helo=cyan.elm.relay.mailchannels.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) * gnu/packages/cluster.scm (libdqlite): New Variable. --- gnu/packages/cluster.scm | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/cluster.scm b/gnu/packages/cluster.scm index 18f2707469..8421af5140 100644 --- a/gnu/packages/cluster.scm +++ b/gnu/packages/cluster.scm @@ -3,6 +3,7 @@ ;;; Copyright =A9 2018, 2020 Tobias Geerinckx-Rice ;;; Copyright =A9 2019 Andrew Miloradovsky ;;; Copyright =A9 2020 Marius Bakke +;;; Copyright =A9 2021 Dion Mendel ;;; ;;; This file is part of GNU Guix. ;;; @@ -33,6 +34,7 @@ #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) #:use-module (gnu packages sphinx) + #:use-module (gnu packages sqlite) #:use-module (gnu packages texinfo) #:use-module (gnu packages tls)) =20 @@ -220,3 +222,42 @@ that, a pluggable interface defines the I/O implemen= tation for networking (send/receive RPC messages) and disk persistence (store log entries and snapshots).") (license license:asl2.0))) + +(define-public libdqlite + (package + (name "libdqlite") + (version "1.7.0") + (home-page "https://github.com/canonical/dqlite") + (source (origin + (method git-fetch) + (uri (git-reference (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "15cg8yl3n7lcg0qyg0byciz8v6y200ghmzzkwpdzggy3m6c168wl"))= )) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-failing-tests + (lambda _ + (substitute* "Makefile.am" + ;; Test client/query sometimes fails. + ;; The actual tested asserts succeed, but there appears t= o be a + ;; race condition when tearing down the test server. + ((".*test_client.c.*") ""))))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libraft" ,libraft) + ("libuv" ,libuv))) + (propagated-inputs + `(("sqlite" ,sqlite))) ; dqlite.h includes sqlite3.h + (build-system gnu-build-system) + (synopsis "Distributed SQLite") + (description "dqlite is a C library that implements an embeddable an= d replicated +SQL database engine with high-availability and automatic failover.") + (license license:lgpl3+))) --=20 2.31.1 From unknown Sat Aug 16 18:43:27 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dion Mendel Subject: bug#48773: closed (Re: bug#48773: [PATCH] gnu: Add libdqlite.) Message-ID: References: <87wnr8knkv.fsf@gnu.org> <20210601060323.GA27513@dm9.info> X-Gnu-PR-Message: they-closed 48773 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 48773@debbugs.gnu.org Date: Sat, 05 Jun 2021 21:30:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1622928602-20025-1" This is a multi-part message in MIME format... ------------=_1622928602-20025-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #48773: [PATCH] gnu: Add libdqlite. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 48773@debbugs.gnu.org. --=20 48773: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48773 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1622928602-20025-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 48773-done) by debbugs.gnu.org; 5 Jun 2021 21:29:16 +0000 Received: from localhost ([127.0.0.1]:50216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpdr2-0005Bi-57 for submit@debbugs.gnu.org; Sat, 05 Jun 2021 17:29:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpdqz-0005BU-Uj for 48773-done@debbugs.gnu.org; Sat, 05 Jun 2021 17:29:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59712) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpdqu-00027G-Ne; Sat, 05 Jun 2021 17:29:08 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=54020 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpdqr-0006ZB-VB; Sat, 05 Jun 2021 17:29:08 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Dion Mendel Subject: Re: bug#48773: [PATCH] gnu: Add libdqlite. References: <20210601060323.GA27513@dm9.info> Date: Sat, 05 Jun 2021 23:29:04 +0200 In-Reply-To: <20210601060323.GA27513@dm9.info> (Dion Mendel's message of "Tue, 1 Jun 2021 14:03:23 +0800") Message-ID: <87wnr8knkv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48773-done Cc: 48773-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dion Mendel skribis: > * gnu/packages/cluster.scm (libdqlite): New Variable. [...] > + (license license:lgpl3+))) Changed to =E2=80=98lgpl3=E2=80=99 because =E2=80=98LICENSE=E2=80=99 explic= itly says =E2=80=9Cversion 3=E2=80=9D (without =E2=80=9Cor later=E2=80=9D). Thanks, Ludo=E2=80=99. ------------=_1622928602-20025-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Jun 2021 06:03:40 +0000 Received: from localhost ([127.0.0.1]:35496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnxV2-00006I-4K for submit@debbugs.gnu.org; Tue, 01 Jun 2021 02:03:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:54372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnxV0-000066-3m for submit@debbugs.gnu.org; Tue, 01 Jun 2021 02:03:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnxUz-000640-Pr for guix-patches@gnu.org; Tue, 01 Jun 2021 02:03:33 -0400 Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]:53673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnxUx-0006PI-N5 for guix-patches@gnu.org; Tue, 01 Jun 2021 02:03:33 -0400 X-Sender-Id: dreamhost|x-authsender|smtp@dm9.info Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6A0DF3424FD for ; Tue, 1 Jun 2021 06:03:29 +0000 (UTC) Received: from pdx1-sub0-mail-a81.g.dreamhost.com (100-96-17-26.trex.outbound.svc.cluster.local [100.96.17.26]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 69F633425AE for ; Tue, 1 Jun 2021 06:03:28 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|smtp@dm9.info Received: from pdx1-sub0-mail-a81.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.17.26 (trex/6.2.1); Tue, 01 Jun 2021 06:03:29 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|smtp@dm9.info X-MailChannels-Auth-Id: dreamhost X-Wide-Eyed-Rock: 17af540741c466cb_1622527409205_1839993900 X-MC-Loop-Signature: 1622527409205:607577746 X-MC-Ingress-Time: 1622527409204 Received: from pdx1-sub0-mail-a81.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a81.g.dreamhost.com (Postfix) with ESMTP id 2AD61887B0 for ; Mon, 31 May 2021 23:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=dm9.info; h=date:from:to :subject:message-id:mime-version:content-type :content-transfer-encoding; s=dm9.info; bh=bsq7+wqASZ4aM+Xr9RL1b tfW8yI=; b=rZ7xEw9efOMsk8I4HSX1XuwBQ95Q28PCsguUCH2/WjTthwvwTbpQq JZWzUFHOT41HYnXWHUMSb8ZSfPMLtc+cEVbzfbEEoiNqVXbL4FQ/gh/7F66MpRvx 8wns+jEKVLyx6Hs0j1mHrmS3Q7Gv1M+VnqHpl1O+y1HodlDedW+jZM= Received: from mail.localdomain (61-245-140-70.3df58c.per.nbn.aussiebb.net [61.245.140.70]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: smtp@dm9.info) by pdx1-sub0-mail-a81.g.dreamhost.com (Postfix) with ESMTPSA id DF76C88770 for ; Mon, 31 May 2021 23:03:27 -0700 (PDT) Received: by mail.localdomain (Postfix, from userid 2001) id B46DE514E47; Tue, 1 Jun 2021 14:03:23 +0800 (AWST) Date: Tue, 1 Jun 2021 14:03:23 +0800 X-DH-BACKEND: pdx1-sub0-mail-a81 From: Dion Mendel To: guix-patches@gnu.org Subject: [PATCH] gnu: Add libdqlite. Message-ID: <20210601060323.GA27513@dm9.info> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=23.83.212.47; envelope-from=guix@dm9.info; helo=cyan.elm.relay.mailchannels.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) * gnu/packages/cluster.scm (libdqlite): New Variable. --- gnu/packages/cluster.scm | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/cluster.scm b/gnu/packages/cluster.scm index 18f2707469..8421af5140 100644 --- a/gnu/packages/cluster.scm +++ b/gnu/packages/cluster.scm @@ -3,6 +3,7 @@ ;;; Copyright =A9 2018, 2020 Tobias Geerinckx-Rice ;;; Copyright =A9 2019 Andrew Miloradovsky ;;; Copyright =A9 2020 Marius Bakke +;;; Copyright =A9 2021 Dion Mendel ;;; ;;; This file is part of GNU Guix. ;;; @@ -33,6 +34,7 @@ #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) #:use-module (gnu packages sphinx) + #:use-module (gnu packages sqlite) #:use-module (gnu packages texinfo) #:use-module (gnu packages tls)) =20 @@ -220,3 +222,42 @@ that, a pluggable interface defines the I/O implemen= tation for networking (send/receive RPC messages) and disk persistence (store log entries and snapshots).") (license license:asl2.0))) + +(define-public libdqlite + (package + (name "libdqlite") + (version "1.7.0") + (home-page "https://github.com/canonical/dqlite") + (source (origin + (method git-fetch) + (uri (git-reference (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "15cg8yl3n7lcg0qyg0byciz8v6y200ghmzzkwpdzggy3m6c168wl"))= )) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'disable-failing-tests + (lambda _ + (substitute* "Makefile.am" + ;; Test client/query sometimes fails. + ;; The actual tested asserts succeed, but there appears t= o be a + ;; race condition when tearing down the test server. + ((".*test_client.c.*") ""))))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (inputs + `(("libraft" ,libraft) + ("libuv" ,libuv))) + (propagated-inputs + `(("sqlite" ,sqlite))) ; dqlite.h includes sqlite3.h + (build-system gnu-build-system) + (synopsis "Distributed SQLite") + (description "dqlite is a C library that implements an embeddable an= d replicated +SQL database engine with high-availability and automatic failover.") + (license license:lgpl3+))) --=20 2.31.1 ------------=_1622928602-20025-1--