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
|
(base32
|
||||||
"0pqk43kd7crqhg6qgnl8kapncwgw1xgaf02zarzypcw64kvdih9h"))))
|
"0pqk43kd7crqhg6qgnl8kapncwgw1xgaf02zarzypcw64kvdih9h"))))
|
||||||
(build-system python-build-system)
|
(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
|
(native-inputs
|
||||||
`(("python-setuptools-scm" ,python-setuptools-scm)
|
`(("python-setuptools-scm" ,python-setuptools-scm)
|
||||||
;; For tests only.
|
;; For tests only.
|
||||||
|
|
Loading…
Reference in a new issue