gnu: bitcoin-unlimited: Update to 1.9.0.1.

* gnu/packages/finance.scm (bitcoin-unlimited): Update to 1.9.0.1.
  [arguments]: Add "--disable-static" to 'configure-flags. Remove 'fix-build'
  and 'make-qt-deterministic' phases. Enable "txvalidationcache" test.
This commit is contained in:
Guillaume Le Vaillant 2020-09-30 19:47:27 +02:00
parent db194f714a
commit 510278134b
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -1399,7 +1399,7 @@ (define-public opensp
(define-public bitcoin-unlimited (define-public bitcoin-unlimited
(package (package
(name "bitcoin-unlimited") (name "bitcoin-unlimited")
(version "1.9.0.0") (version "1.9.0.1")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -1408,7 +1408,7 @@ (define-public bitcoin-unlimited
(commit (string-append "BCHunlimited" version)))) (commit (string-append "BCHunlimited" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1a64h7mcqdra4ahnw1nycp4ysx308ymgbl4yn5fj5jfaszdzvy0h")))) (base32 "1pan24g3d5csa004d7zvlizj4mv58ly5i579341isp944phl3g5v"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
`(("autoconf" ,autoconf) `(("autoconf" ,autoconf)
@ -1443,32 +1443,20 @@ (define-public bitcoin-unlimited
"/bin/lrelease") "/bin/lrelease")
(string-append "ac_cv_path_LUPDATE=" (string-append "ac_cv_path_LUPDATE="
(assoc-ref %build-inputs "qttools") (assoc-ref %build-inputs "qttools")
"/bin/lupdate")) "/bin/lupdate")
"--disable-static")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-build
(lambda _
;; The 'stack' header was not included in unlimited.cpp, which
;; caused the build to fail.
(substitute* "src/unlimited.cpp"
(("#include <queue>" all)
(string-append all "\n#include <stack>")))
#t))
(add-after 'unpack 'fix-tests (add-after 'unpack 'fix-tests
(lambda _ (lambda _
;; TODO: Find why txvalidationcache_tests fails and ;; Disable utilprocess_tests because it never ends.
;; utilprocess_tests never ends. Disable for now. ;; It looks like it tries to start /bin/sleep and waits until it
;; is in the list of running processes, but /bin/sleep doesn't
;; exist.
(substitute* "src/Makefile.test.include" (substitute* "src/Makefile.test.include"
(("test/txvalidationcache_tests.cpp")
"")
(("test/utilprocess_tests.cpp") (("test/utilprocess_tests.cpp")
"")) ""))
#t)) #t))
(add-before 'configure 'make-qt-deterministic
(lambda _
;; Make Qt deterministic.
(setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
#t))
(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