guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

14/104: gnu: bitcoin-abc: Update to 0.21.6.


From: guix-commits
Subject: 14/104: gnu: bitcoin-abc: Update to 0.21.6.
Date: Sun, 17 May 2020 11:36:27 -0400 (EDT)

nckx pushed a commit to branch core-updates
in repository guix.

commit 889df771664032538f058a8d70fb8906c123dbfd
Author: Guillaume Le Vaillant <address@hidden>
AuthorDate: Fri May 15 17:29:05 2020 +0200

    gnu: bitcoin-abc: Update to 0.21.6.
    
    * gnu/packages/finance.scm (bitcoin-abc): Update to 0.21.6.
      [build-system]: Use cmake-build-system.
      [native-inputs]: Remove autoconf, automake and libtool.
      [inputs]: Add zeromq.
      [arguments]: Drop inheritance from bitcoin-core and use explicit
      'make-qt-deterministic', 'set-home' and 'check-functional' phases.
---
 gnu/packages/finance.scm | 35 +++++++++++++++++++++++++++--------
 1 file changed, 27 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 6dd6049..7d7b2e2 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1227,9 +1227,8 @@ Trezor wallet.")
 
 (define-public bitcoin-abc
   (package
-    (inherit bitcoin-core)
     (name "bitcoin-abc")
-    (version "0.20.7")
+    (version "0.21.6")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://download.bitcoinabc.org/";
@@ -1237,12 +1236,10 @@ Trezor wallet.")
                                   version ".tar.gz"))
               (sha256
                (base32
-                "0py5ilfi4r8qh5r9637vwch27sqrrn0dg9rz8bccnj3lp2xpzw27"))))
+                "1w3c397h2mxsi9471fwyc3yjxw7s4jgvr4q3w2qfh49bhr4wygqj"))))
+    (build-system cmake-build-system)
     (native-inputs
-     `(("autoconf" ,autoconf)
-       ("automake" ,automake)
-       ("libtool" ,libtool)
-       ("pkg-config" ,pkg-config)
+     `(("pkg-config" ,pkg-config)
        ("python" ,python)               ; for the tests
        ("util-linux" ,util-linux)       ; provides the hexdump command for 
tests
        ("qttools" ,qttools)))
@@ -1255,7 +1252,28 @@ Trezor wallet.")
        ("protobuf" ,protobuf)
        ("qrencode" ,qrencode)
        ("qtbase" ,qtbase)
+       ("zeromq" ,zeromq)
        ("zlib" ,zlib)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'make-qt-deterministic
+           (lambda _
+             ;; Make Qt deterministic.
+             (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
+             #t))
+         (add-before 'check 'set-home
+           (lambda _
+             (setenv "HOME" (getenv "TMPDIR")) ; tests write to $HOME
+             #t))
+         (add-after 'check 'check-functional
+           (lambda _
+             (invoke
+              "python3" "./test/functional/test_runner.py"
+              (string-append "--jobs=" (number->string (parallel-job-count)))
+              ;; TODO: find why the abc-miner-fund test fails.
+              "--exclude=abc-miner-fund")
+             #t)))))
     (home-page "https://www.bitcoinabc.org/";)
     (synopsis "Bitcoin ABC peer-to-peer full node for the Bitcoin Cash 
protocol")
     (description
@@ -1269,7 +1287,8 @@ As a fork it implemented changes lowering the time 
between blocks and now
 offers confimations after less than 5 seconds and have significantly lower
 fees that BTC.  Bitcoin ABC is the reference implementation of the Bitcoin
 Cash protocol.  This package provides the Bitcoin Cash command line client and
-a client based on Qt.  This is a fork of Bitcoin Core.")))
+a client based on Qt.  This is a fork of Bitcoin Core.")
+    (license license:expat)))
 
 (define-public libofx
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]