mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: sshuttle: Patch FHS assumptions.
Reported-By: Nam Nguyen <namn@berkeley.edu> * gnu/packages/vpn.scm (sshuttle)[arguments]: Set correct paths to 'env' and 'sh'.
This commit is contained in:
parent
7fed9353ec
commit
c32863e094
1 changed files with 11 additions and 0 deletions
|
@ -347,6 +347,17 @@ (define-public sshuttle
|
|||
(base32
|
||||
"0pqk43kd7crqhg6qgnl8kapncwgw1xgaf02zarzypcw64kvdih9h"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-FHS-file-names
|
||||
(lambda _
|
||||
(substitute* "sshuttle/client.py"
|
||||
(("/usr/bin/env") (which "env")))
|
||||
(substitute* "sshuttle/ssh.py"
|
||||
;; Perhaps this is unreachable, but don't let's take risks.
|
||||
(("/bin/sh") (which "sh")))
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("python-setuptools-scm" ,python-setuptools-scm)
|
||||
;; For tests only.
|
||||
|
|
Loading…
Reference in a new issue