From d395323343c8af09a6abe04819cf8d5d1d0b0b1c Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 14 May 2020 23:53:18 +0200 Subject: 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. --- gnu/packages/admin.scm | 10 ++++++++-- 1 file 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 @@ (define-public sudo (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 @@ (define-public sudo (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") -- cgit v1.2.3