3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

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.
This commit is contained in:
Ludovic Courtès 2020-05-14 23:53:18 +02:00
parent 4daa7a85b4
commit d395323343
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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")