From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AOyJL9/NtWCy6gAAgWs5BA (envelope-from ) for ; Tue, 01 Jun 2021 08:04:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wP7yKt/NtWBUHAAAbx9fmQ (envelope-from ) for ; Tue, 01 Jun 2021 06:04:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0D5D514B97 for ; Tue, 1 Jun 2021 08:04:15 +0200 (CEST) Received: from localhost ([::1]:38636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnxVd-00064n-Kg for larch@yhetil.org; Tue, 01 Jun 2021 02:04:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnxVS-00064c-5p for guix-patches@gnu.org; Tue, 01 Jun 2021 02:04:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnxVR-0006p0-Ux for guix-patches@gnu.org; Tue, 01 Jun 2021 02:04:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnxVR-00006z-Qu for guix-patches@gnu.org; Tue, 01 Jun 2021 02:04:01 -0400 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-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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622527455; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QiEjB1wfwEsJkhDkIFfVB/uZGSVfiQhYt1cDmH5jWFU=; b=D889nR1owHouIPOObcoSKNcxQr6tYft0inY1GB+K/LELwBL+T6J/Bzc0L9dJPh9mnD73wk 0/gz2e3o95Iy6YxPPa+hw2t5N2WH8adSGRMG1oXbGErTDuHbmuOyINZ+VjDhRLdGpHzFQa QqTyYWpQtj2SmkZRI1vZ6jFbjdshQPx1pkWtx/aY5hkC+u02IA7gdllo3ltZBNMvJ+9296 FFhXzZhqmBKH69v6C0XZoXcPCBZX5D4KDR0iaA1Ph/o7RfrkIzAh6eugoQSphCXj29mzyx MRqGUIzMy5zRu981RqAsrgyJu03x8RYgX/CpsfCrfAmbySUBWu2FFv5F6Z5nnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622527455; a=rsa-sha256; cv=none; b=trehLBjRre0oITWOTYG29C12wIPpv3HVHhjfOq7ir8mKw0ptEvBFohUEnFulNDez3mVRHy 2ycWyYN6msPwRPWVMcQNw2Yf2MaDFfuTO3zsJF/u1L2MgIHmSeqXnwWQd41utMi1Lq2YX3 i+f1Sbg1CBgUdMA47z/Qbv3qz8pzVH4QMTk1ANeA4J8Qri0Py1PXfzzrenMc6YwLgRpJUP nDBo00q9+q0E9XWDJwVALkadT36+D1dZU+FR024Bmx4BDiKICAn7VvbCZ0V8muhHve5IVk QdpjNPNWzvuNQJ+XUvwryE8bgPu839Cd2qwAHtcszUUwGAc1n1resKVCpPwpqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dm9.info header.s=dm9.info header.b=rZ7xEw9e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=dm9.info (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dm9.info header.s=dm9.info header.b=rZ7xEw9e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=dm9.info (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0D5D514B97 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: PyC5n+tFZWCH * 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