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:
Tobias Geerinckx-Rice 2018-09-27 23:38:36 +02:00
parent 7fed9353ec
commit c32863e094
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -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.