gnu: libselinux: Fix build failure with Python 3.10.

* gnu/packages/selinux.scm (libselinux)[arguments]: Add extra arguments to the
setup.py install invocation.
This commit is contained in:
Marius Bakke 2022-08-16 13:15:03 +02:00
parent a91cf65a7e
commit a334b3461d
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -161,7 +161,11 @@ (define-public libselinux
;; Python bindings. Instruct it to use the correct output.
(substitute* "src/Makefile"
(("--prefix=\\$\\(PREFIX\\)")
(string-append "--prefix=" #$output:python)))
(string-append "--prefix=" #$output:python
;; Python 3.10 refuses to execute the install
;; command unless these flags are present.
" --single-version-externally-managed"
" --root=/")))
(apply invoke "make" "install-pywrap" make-flags)))))))
;; These libraries are in "Requires.private" in libselinux.pc.