From patchwork Wed Feb 3 02:54:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 26862 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 5751F27BC2E; Wed, 3 Feb 2021 15:05:57 +0000 (GMT) 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, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable 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 B953B27BC2D for ; Wed, 3 Feb 2021 15:05:56 +0000 (GMT) Received: from localhost ([::1]:60062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7Jj9-0005oL-PW for patchwork@mira.cbaines.net; Wed, 03 Feb 2021 10:05:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7AQU-0006ab-Is for guix-patches@gnu.org; Wed, 03 Feb 2021 00:10:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7AQU-0004no-9u for guix-patches@gnu.org; Wed, 03 Feb 2021 00:10:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7AQU-0006fV-1j for guix-patches@gnu.org; Wed, 03 Feb 2021 00:10:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46266] [PATCH] gnu: Update bitcoin-core to 0.21.0 Resent-From: ZmnSCPxj Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Feb 2021 05:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46266 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46266@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.161232896625587 (code B ref -1); Wed, 03 Feb 2021 05:10:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Feb 2021 05:09:26 +0000 Received: from localhost ([127.0.0.1]:36547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7APr-0006ea-A0 for submit@debbugs.gnu.org; Wed, 03 Feb 2021 00:09:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:57616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l78JW-0003Kl-03 for submit@debbugs.gnu.org; Tue, 02 Feb 2021 21:54:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l78JV-0003zx-MQ for guix-patches@gnu.org; Tue, 02 Feb 2021 21:54:41 -0500 Received: from mail-40130.protonmail.ch ([185.70.40.130]:27630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l78JS-0005bM-UK for guix-patches@gnu.org; Tue, 02 Feb 2021 21:54:41 -0500 Date: Wed, 03 Feb 2021 02:54:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1612320873; bh=S9EsmNHR3dT4MqnPthkv1B6F+GNAQwCodtHDc8EBqLc=; h=Date:To:From:Reply-To:Subject:From; b=LV1favuUm/G+TQLhx2ttYhEjdbRH9V/gA5cCe1YO73z8/TjelO+Sp528KBzs4PZB5 OwFS0coOOmFbV3gKYLW9xb5YvpEQSB/mjy6t50qf0H9BPO43KuKmcZ6zrzPqrCs2z/ Uwc9IeseOEaqykDvDmNp4QybcLIKWt4+je0qRj3w= Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.130; envelope-from=ZmnSCPxj@protonmail.com; helo=mail-40130.protonmail.ch X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, FREEMAIL_FROM=0.001, FROM_LOCAL_NOVOWEL=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 03 Feb 2021 00:09:22 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 03 Feb 2021 10:05:47 -0500 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" Reply-to: ZmnSCPxj X-ACL-Warn: , ZmnSCPxj via Guix-patches X-Patchwork-Original-From: guix-patches--- via From: "ashish.is--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches In addition to updating, I made as well, separate `bitcoin-core-0.20` and `bitcoin-core-0.21` packages. Due to RPC changes, it is possible that other programs compatible with older `bitcoin-core` version is not compatible with newer version. Thus, an `operating-system` declaration, may need to pin a specific major version. Hoping for your kind review and acceptance of this patch. Tested with `guix build bitcoin-core`. Is there more testing I need to do before this is accepted? Regards, ZmnSCPxj From 319a66d931f2191ab91037e0ba9da1c2b969229d Mon Sep 17 00:00:00 2001 From: ZmnSCPxj Date: Wed, 3 Feb 2021 00:51:07 +0000 Subject: [PATCH] gnu: Update bitcoin-core to 0.21.0 * gnu/packages/finance.scm (make-bitcoin-core): New procedure, moved from ... (bitcoin-core): ... here. Update to 0.21.0. (bitcoin-core-0.20): New variable. (bitcoin-core-0.21): New variable. --- gnu/packages/finance.scm | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- 2.30.0 diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 1798ad82bc..dc9b911c68 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Carlo Holl ;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2021 ZmnSCPxj ;;; ;;; This file is part of GNU Guix. ;;; @@ -108,18 +109,17 @@ #:use-module (gnu packages xml) #:use-module (gnu packages gnuzilla)) -(define-public bitcoin-core +(define (make-bitcoin-core target-version hash) (package (name "bitcoin-core") - (version "0.20.1") + (version target-version) (source (origin (method url-fetch) (uri (string-append "https://bitcoincore.org/bin/bitcoin-core-" version "/bitcoin-" version ".tar.gz")) (sha256 - (base32 - "0y5rad68b398arh0abr2wgiwybdw0i5a4dxz9s3fk9fgdbyn5gab")))) + (base32 hash)))) (build-system gnu-build-system) (native-inputs `(("autoconf" ,autoconf) @@ -186,6 +186,14 @@ of the bitcoin protocol. This package provides the Bitcoin Core command line client and a client based on Qt.") (license license:expat))) +;; Pinning specific versions may be necessary due to changes in +;; RPC interface, or signalling reasons. +(define-public bitcoin-core-0.20 + (make-bitcoin-core "0.20.1" "0y5rad68b398arh0abr2wgiwybdw0i5a4dxz9s3fk9fgdbyn5gab")) +(define-public bitcoin-core-0.21 + (make-bitcoin-core "0.21.0" "0dszcn4r43w0ffsmgwmyzkzr5lqws3bbhlkssmjgnjgfc8n2148s")) +(define-public bitcoin-core bitcoin-core-0.21) + (define-public hledger (package (name "hledger")