From unknown Sat Jul 26 21:32:16 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#37307] [PATCH] gnu: Add libraft Resent-From: Andrew Miloradovsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Sep 2019 09:32:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37307 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37307@debbugs.gnu.org Cc: Andrew Miloradovsky X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15676759089509 (code B ref -1); Thu, 05 Sep 2019 09:32:03 +0000 Received: (at submit) by debbugs.gnu.org; 5 Sep 2019 09:31:48 +0000 Received: from localhost ([127.0.0.1]:34832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5o7I-0002TJ-1g for submit@debbugs.gnu.org; Thu, 05 Sep 2019 05:31:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:44705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5o7G-0002TC-MO for submit@debbugs.gnu.org; Thu, 05 Sep 2019 05:31:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46100) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5o7D-0006Gs-VY for guix-patches@gnu.org; Thu, 05 Sep 2019 05:31:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5o7B-0001Os-BK for guix-patches@gnu.org; Thu, 05 Sep 2019 05:31:43 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:37345) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i5o7B-0001O0-5c for guix-patches@gnu.org; Thu, 05 Sep 2019 05:31:41 -0400 X-Originating-IP: 195.209.34.147 Received: from localhost.localdomain (unknown [195.209.34.147]) (Authenticated sender: andrew@interpretmath.pw) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id DF16BFF802; Thu, 5 Sep 2019 09:31:37 +0000 (UTC) From: Andrew Miloradovsky Date: Thu, 5 Sep 2019 12:30:44 +0300 Message-Id: <20190905093044.28901-1-andrew@interpretmath.pw> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.199 X-Spam-Score: -1.6 (-) 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.6 (--) * gnu/packages/cluster.scm (libraft): New variable. --- gnu/packages/cluster.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/cluster.scm b/gnu/packages/cluster.scm index 3608d67bed..43fd472dc3 100644 --- a/gnu/packages/cluster.scm +++ b/gnu/packages/cluster.scm @@ -22,6 +22,8 @@ #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix packages) + #:use-module (gnu packages autotools) + #:use-module (gnu packages gettext) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) #:use-module (gnu packages sphinx) @@ -79,3 +81,34 @@ Server (@dfn{IPVS}) kernel module. High availability is achieved by the Virtual Redundancy Routing Protocol (@dfn{VRRP}). Each Keepalived framework can be used independently or together to provide resilient infrastructures.") (license license:gpl2+))) + +(define-public libraft + (package + (name "libraft") + (version "0.9.5") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/canonical/raft/archive/v" + version ".tar.gz")) + (sha256 + (base32 + "0zd8nnmsszvsrwvybcg783y705z4xik9pi0mb6gb6ii58qq2b3hz")))) + (arguments '(#:configure-flags '("--disable-uv"))) + ;; The uv plugin tests fail, if libuv (or the example) is enabled, + ;; because setting up the environment requires too much privileges. + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("gettext" ,gettext-minimal) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (build-system gnu-build-system) + (home-page "https://github.com/canonical/raft") + (synopsis "C implementation of the Raft consensus protocol") + (description "The library has modular design: its core part implements only +the core Raft algorithm logic, in a fully platform independent way. On top of +that, a pluggable interface defines the I/O implementation for networking +(send/receive RPC messages) and disk persistence (store log entries and +snapshots).") + (license license:asl2.0))) -- 2.23.0 From unknown Sat Jul 26 21:32:16 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: Andrew Miloradovsky Subject: bug#37307: closed (Re: [bug#37307] [PATCH] gnu: Add libraft) Message-ID: References: <87r24r9dyb.fsf@gnu.org> <20190905093044.28901-1-andrew@interpretmath.pw> X-Gnu-PR-Message: they-closed 37307 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 37307@debbugs.gnu.org Date: Sun, 08 Sep 2019 12:21:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1567945262-12361-1" This is a multi-part message in MIME format... ------------=_1567945262-12361-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #37307: [PATCH] gnu: Add libraft 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 37307@debbugs.gnu.org. --=20 37307: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37307 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1567945262-12361-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 37307-done) by debbugs.gnu.org; 8 Sep 2019 12:20:54 +0000 Received: from localhost ([127.0.0.1]:38485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6wBa-0003Ci-B4 for submit@debbugs.gnu.org; Sun, 08 Sep 2019 08:20:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6wBY-0003CW-QK for 37307-done@debbugs.gnu.org; Sun, 08 Sep 2019 08:20:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i6wBT-0001cz-0r; Sun, 08 Sep 2019 08:20:47 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44264 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1i6wBS-0004wf-Gt; Sun, 08 Sep 2019 08:20:46 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Andrew Miloradovsky Subject: Re: [bug#37307] [PATCH] gnu: Add libraft References: <20190905093044.28901-1-andrew@interpretmath.pw> Date: Sun, 08 Sep 2019 14:20:44 +0200 In-Reply-To: <20190905093044.28901-1-andrew@interpretmath.pw> (Andrew Miloradovsky's message of "Thu, 5 Sep 2019 12:30:44 +0300") Message-ID: <87r24r9dyb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37307-done Cc: 37307-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 (---) Hi Andrew, Andrew Miloradovsky skribis: > * gnu/packages/cluster.scm (libraft): New variable. I added a copyright line for you and committed. In a followup commit, I changed the source to use =E2=80=98git-fetch=E2=80= =99, as reported by the =E2=80=98guix lint=E2=80=99 warning about =E2=80=9Cautogene= rated source tarballs=E2=80=9D. Thank you, Ludo=E2=80=99. ------------=_1567945262-12361-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Sep 2019 09:31:48 +0000 Received: from localhost ([127.0.0.1]:34832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5o7I-0002TJ-1g for submit@debbugs.gnu.org; Thu, 05 Sep 2019 05:31:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:44705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i5o7G-0002TC-MO for submit@debbugs.gnu.org; Thu, 05 Sep 2019 05:31:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46100) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5o7D-0006Gs-VY for guix-patches@gnu.org; Thu, 05 Sep 2019 05:31:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5o7B-0001Os-BK for guix-patches@gnu.org; Thu, 05 Sep 2019 05:31:43 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:37345) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i5o7B-0001O0-5c for guix-patches@gnu.org; Thu, 05 Sep 2019 05:31:41 -0400 X-Originating-IP: 195.209.34.147 Received: from localhost.localdomain (unknown [195.209.34.147]) (Authenticated sender: andrew@interpretmath.pw) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id DF16BFF802; Thu, 5 Sep 2019 09:31:37 +0000 (UTC) From: Andrew Miloradovsky To: guix-patches@gnu.org Subject: [PATCH] gnu: Add libraft Date: Thu, 5 Sep 2019 12:30:44 +0300 Message-Id: <20190905093044.28901-1-andrew@interpretmath.pw> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.199 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: Andrew Miloradovsky 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.6 (--) * gnu/packages/cluster.scm (libraft): New variable. --- gnu/packages/cluster.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/cluster.scm b/gnu/packages/cluster.scm index 3608d67bed..43fd472dc3 100644 --- a/gnu/packages/cluster.scm +++ b/gnu/packages/cluster.scm @@ -22,6 +22,8 @@ #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix packages) + #:use-module (gnu packages autotools) + #:use-module (gnu packages gettext) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) #:use-module (gnu packages sphinx) @@ -79,3 +81,34 @@ Server (@dfn{IPVS}) kernel module. High availability is achieved by the Virtual Redundancy Routing Protocol (@dfn{VRRP}). Each Keepalived framework can be used independently or together to provide resilient infrastructures.") (license license:gpl2+))) + +(define-public libraft + (package + (name "libraft") + (version "0.9.5") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/canonical/raft/archive/v" + version ".tar.gz")) + (sha256 + (base32 + "0zd8nnmsszvsrwvybcg783y705z4xik9pi0mb6gb6ii58qq2b3hz")))) + (arguments '(#:configure-flags '("--disable-uv"))) + ;; The uv plugin tests fail, if libuv (or the example) is enabled, + ;; because setting up the environment requires too much privileges. + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("gettext" ,gettext-minimal) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config))) + (build-system gnu-build-system) + (home-page "https://github.com/canonical/raft") + (synopsis "C implementation of the Raft consensus protocol") + (description "The library has modular design: its core part implements only +the core Raft algorithm logic, in a fully platform independent way. On top of +that, a pluggable interface defines the I/O implementation for networking +(send/receive RPC messages) and disk persistence (store log entries and +snapshots).") + (license license:asl2.0))) -- 2.23.0 ------------=_1567945262-12361-1--