diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-05-14 23:53:18 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-05-15 00:01:39 +0200 |
commit | d395323343c8af09a6abe04819cf8d5d1d0b0b1c (patch) | |
tree | 42d9121aa33368fd5ffc001f04ed322a90b33428 | |
parent | 4daa7a85b41c10d70893675edf1ac61ebd3bf746 (diff) | |
download | guix-d395323343c8af09a6abe04819cf8d5d1d0b0b1c.tar guix-d395323343c8af09a6abe04819cf8d5d1d0b0b1c.tar.gz |
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.
-rw-r--r-- | gnu/packages/admin.scm | 10 |
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") |