gnu: libxslt: Really allow cross-compilation.

Commit af916f3f8b led './configure' to
attempt to run a non-native 'python' binary, which would fail unless
transparent binfmt_misc QEMU emulation is set up.

* gnu/packages/xml.scm (libxslt)[arguments]: Replace #:configure-flags
with "--disable-python" when cross-compiling.
This commit is contained in:
Ludovic Courtès 2023-03-10 00:26:23 +01:00
parent 9aac443dc9
commit 0bd40ca9a9
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -353,13 +353,9 @@ (define-public libxslt
#:configure-flags
(if (%current-target-system)
;; 'configure.ac' uses 'AM_PATH_PYTHON', which looks for
;; 'python' in $PATH, even though it's only used in the shebang
;; of examples. Thus, when cross-compiling, set 'PYTHON' so
;; that 'configure' doesn't search $PATH.
#~(list (string-append "PYTHON="
#$(this-package-input
"python-minimal-wrapper")
"/bin/python"))
;; 'python' in $PATH and tries to run it. Skip all that when
;; cross-compiling.
#~'("--without-python")
#~'())))
(home-page "http://xmlsoft.org/XSLT/index.html")
(synopsis "C library for applying XSLT stylesheets to XML documents")