gnu: ganeti: Fix test failure.

* gnu/packages/virtualization.scm (ganeti)[arguments]: Add phase to add
compatibility with newer Pyparsing.
This commit is contained in:
Marius Bakke 2022-01-19 09:33:29 +01:00
parent 8d70f509c7
commit 4bf79350ea
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -599,6 +599,12 @@ (define-public ganeti
(string-append match " < 1.2")) (string-append match " < 1.2"))
(("(.*QuickCheck.*) < 2\\.14" _ match) (("(.*QuickCheck.*) < 2\\.14" _ match)
(string-append match " < 2.15"))))) (string-append match " < 2.15")))))
(add-after 'unpack 'pyparsing-compat
(lambda _
;; Adjust for Pyparsing 3.0. Remove for Ganeti 3.0.2+.
(substitute* "lib/qlang.py"
(("operatorPrecedence")
"infixNotation"))))
(add-after 'unpack 'create-vcs-version (add-after 'unpack 'create-vcs-version
(lambda _ (lambda _
;; If we are building from a git checkout, we need to create a ;; If we are building from a git checkout, we need to create a