From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:46155) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5o7d-0006dV-ME for guix-patches@gnu.org; Thu, 05 Sep 2019 05:32:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5o7Y-0001Ym-Er for guix-patches@gnu.org; Thu, 05 Sep 2019 05:32:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5o7Y-0001YT-6e for guix-patches@gnu.org; Thu, 05 Sep 2019 05:32:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i5o7Y-0002Tq-4V for guix-patches@gnu.org; Thu, 05 Sep 2019 05:32:04 -0400 Subject: [bug#37307] [PATCH] gnu: Add libraft Resent-Message-ID: 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 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 From: Andrew Miloradovsky Date: Thu, 5 Sep 2019 12:30:44 +0300 Message-Id: <20190905093044.28901-1-andrew@interpretmath.pw> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37307@debbugs.gnu.org Cc: Andrew Miloradovsky * 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