gnu: python-2.7: Fix build.
The -j flag is passed in through #:make-flags and EXTRATESTOPTS. This is combined with the TESTOPTS, and in Python 2, that includes the -l flag by default. The -l flag, is for finding memory leaks in tests, and is incompatible with the -j flag, and the build previously failed at the start of the 'check phase. Therefore, remove the -l flag from the Python 2 testsuite, as it doesn't sound like a useful thing to do when building the package for Guix. * gnu/packages/python.scm (python-2.7): Add 'remove-findleaks-from-testopts phase.
This commit is contained in:
parent
847ffe8852
commit
a988393997
|
@ -200,6 +200,14 @@
|
||||||
(guix build utils) (guix build gnu-build-system))
|
(guix build utils) (guix build gnu-build-system))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'remove-findleaks-from-testopts
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Makefile.pre.in"
|
||||||
|
;; -l which is short for --findleaks isn't compatible with the
|
||||||
|
;; -j flag added through the #:make-flags, therefore remove
|
||||||
|
;; it. This only affects python-2.7.
|
||||||
|
(("TESTOPTS= -l ") "TESTOPTS= "))
|
||||||
|
#t))
|
||||||
(add-before
|
(add-before
|
||||||
'configure 'patch-lib-shells
|
'configure 'patch-lib-shells
|
||||||
(lambda _
|
(lambda _
|
||||||
|
|
Loading…
Reference in New Issue