summaryrefslogtreecommitdiff
path: root/gnu/packages/admin.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-05-14 23:53:18 +0200
committerLudovic Courtès <ludo@gnu.org>2020-05-15 00:01:39 +0200
commitd395323343c8af09a6abe04819cf8d5d1d0b0b1c (patch)
tree42d9121aa33368fd5ffc001f04ed322a90b33428 /gnu/packages/admin.scm
parent4daa7a85b41c10d70893675edf1ac61ebd3bf746 (diff)
gnu: sudo: Disable Python support when cross-compiling.
* gnu/packages/admin.scm (sudo)[arguments]: Pass "--disable-python" when (%current-target-system) is true. [inputs]: Remove PYTHON when (%current-target-system) is true.
Diffstat (limited to 'gnu/packages/admin.scm')
-rw-r--r--gnu/packages/admin.scm10
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 519a01a7c8..6083691e19 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1299,7 +1299,11 @@ system administrator.")
(list (string-append "--docdir=" (assoc-ref %outputs "out")
"/share/doc/" ,name "-" ,version)
- "--enable-python" ; for plug-ins written in ~
+ ;; XXX: Disable Python support when cross-compiling because
+ ;; 'configure' tries to run 'python', which fails.
+ ,(if (%current-target-system)
+ "--disable-python"
+ "--enable-python") ; for plug-ins written in ~
"--with-logpath=/var/log/sudo.log"
"--with-rundir=/var/run/sudo" ; must be cleaned up at boot time
@@ -1357,7 +1361,9 @@ system administrator.")
(inputs
`(("coreutils" ,coreutils)
("linux-pam" ,linux-pam)
- ("python" ,python)
+ ,@(if (%current-target-system)
+ '()
+ `(("python" ,python)))
("zlib" ,zlib)))
(home-page "https://www.sudo.ws/")
(synopsis "Run commands as root")