[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: gnu: libselinux: Fix build failure with Python 3.10.
From: |
guix-commits |
Subject: |
04/05: gnu: libselinux: Fix build failure with Python 3.10. |
Date: |
Sun, 18 Sep 2022 11:07:55 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit a334b3461d302fa8b50febc4c28261a202b69c68
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Aug 16 13:15:03 2022 +0200
gnu: libselinux: Fix build failure with Python 3.10.
* gnu/packages/selinux.scm (libselinux)[arguments]: Add extra arguments to
the
setup.py install invocation.
---
gnu/packages/selinux.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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.