gnu: bitcoin-core: Improve package.

* gnu/packages/finance.scm (bitcoin-core)[arguments]
<#:configure-flags>: Remove -DENABLE_IPC=OFF.
<#:phases>: Remove the 'set-home phase. Add --timeout-factor=2 in the
'check-functional phase.
[inputs]: Add capnproto.

Change-Id: Iaab3f5d5da7e189ad8fd6c43fb236ec5d4a63444
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Hennadii Stepanov 2025-11-22 08:14:30 +00:00 committed by Andreas Enge
parent d94438acbd
commit 0fc08ce2bd
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -139,6 +139,7 @@
#:use-module (gnu packages qt)
#:use-module (gnu packages readline)
#:use-module (gnu packages security-token)
#:use-module (gnu packages serialization)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages tex)
@ -171,9 +172,7 @@
#~(list
"-DBUILD_GUI=ON"
"-DBUILD_BENCH=ON"
"-DWITH_ZMQ=ON"
;; TODO: Enable IPC once capnproto is built with -fPIC.
"-DENABLE_IPC=OFF")
"-DWITH_ZMQ=ON")
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'set-no-git-flag
@ -182,14 +181,10 @@
;; (and thus no information regarding this build is available
;; from git).
(setenv "BITCOIN_GENBUILD_NO_GIT" "1")))
(add-before 'check 'set-home
(lambda _
;; Tests write to $HOME.
(setenv "HOME" (getenv "TMPDIR"))))
(add-after 'check 'check-functional
(lambda _
(invoke
"python3" "./test/functional/test_runner.py"
"python3" "./test/functional/test_runner.py" "--timeout-factor=2"
(string-append "--jobs=" (number->string (parallel-job-count)))))))))
(native-inputs
(list bash ; provides the sh command for system_tests
@ -200,6 +195,7 @@
qttools))
(inputs
(list boost
capnproto
libevent
qrencode
qtbase