summaryrefslogtreecommitdiff
path: root/gnu/packages/selinux.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-08-16 13:15:03 +0200
committerMarius Bakke <marius@gnu.org>2022-09-18 17:06:06 +0200
commita334b3461d302fa8b50febc4c28261a202b69c68 (patch)
tree84caef9d5013d2837484cad1869aebb1324f6a62 /gnu/packages/selinux.scm
parenta91cf65a7e070d32792c2efc0012569cfc48e060 (diff)
gnu: libselinux: Fix build failure with Python 3.10.
* gnu/packages/selinux.scm (libselinux)[arguments]: Add extra arguments to the setup.py install invocation.
Diffstat (limited to 'gnu/packages/selinux.scm')
-rw-r--r--gnu/packages/selinux.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/selinux.scm b/gnu/packages/selinux.scm
index b4f074b695..54fec6486e 100644
--- a/gnu/packages/selinux.scm
+++ b/gnu/packages/selinux.scm
@@ -161,7 +161,11 @@ module into a binary representation.")
;; 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.