mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05: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:
parent
4daa7a85b4
commit
d395323343
1 changed files with 8 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue