mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 13:09:23 -05:00
gnu: Update to 0.18.0.
* gnu/packages/finance.scm (bitcoin-core): Update to 0.18.0. [inputs]: Use bdb-4.8 for compatibility. [arguments]: Remove --with-incompatible-bdb from configure flags and add check-functional phase for functional tests.
This commit is contained in:
parent
883fe9bb91
commit
bcfc54fff8
1 changed files with 8 additions and 5 deletions
|
@ -78,7 +78,7 @@ (define-module (gnu packages finance)
|
||||||
(define-public bitcoin-core
|
(define-public bitcoin-core
|
||||||
(package
|
(package
|
||||||
(name "bitcoin-core")
|
(name "bitcoin-core")
|
||||||
(version "0.17.1")
|
(version "0.18.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri
|
(uri
|
||||||
|
@ -86,7 +86,7 @@ (define-public bitcoin-core
|
||||||
version "/bitcoin-" version ".tar.gz"))
|
version "/bitcoin-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0am4pnaf2cisv172jqx6jdpzx770agm8777163lkjbw3ryslymiy"))))
|
"0ps0vw9iknz1b1sx74rabd1yhlxvwbd0aimjzn9hlqkvw286hkjy"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
|
@ -94,7 +94,7 @@ (define-public bitcoin-core
|
||||||
("util-linux" ,util-linux) ; provides the hexdump command for tests
|
("util-linux" ,util-linux) ; provides the hexdump command for tests
|
||||||
("qttools" ,qttools)))
|
("qttools" ,qttools)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("bdb" ,bdb-5.3) ; with 6.2.23, there is an error: ambiguous overload
|
`(("bdb" ,bdb-4.8) ; Bitcoin Core requires bdb 4.8 for compatibility
|
||||||
("boost" ,boost)
|
("boost" ,boost)
|
||||||
("libevent" ,libevent)
|
("libevent" ,libevent)
|
||||||
("miniupnpc" ,miniupnpc)
|
("miniupnpc" ,miniupnpc)
|
||||||
|
@ -104,8 +104,6 @@ (define-public bitcoin-core
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
(list
|
(list
|
||||||
;; We use a bdb version newer than 4.8.
|
|
||||||
"--with-incompatible-bdb"
|
|
||||||
;; Boost is not found unless specified manually.
|
;; Boost is not found unless specified manually.
|
||||||
(string-append "--with-boost="
|
(string-append "--with-boost="
|
||||||
(assoc-ref %build-inputs "boost"))
|
(assoc-ref %build-inputs "boost"))
|
||||||
|
@ -128,6 +126,11 @@ (define-public bitcoin-core
|
||||||
(add-before 'check 'set-home
|
(add-before 'check 'set-home
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "HOME" (getenv "TMPDIR")) ; Tests write to $HOME.
|
(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))))
|
||||||
#t)))))
|
#t)))))
|
||||||
(home-page "https://bitcoin.org/en/")
|
(home-page "https://bitcoin.org/en/")
|
||||||
(synopsis "Bitcoin peer-to-peer client")
|
(synopsis "Bitcoin peer-to-peer client")
|
||||||
|
|
Loading…
Reference in a new issue