From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: bug#32855: sshuttle /usr/bin/env Date: Thu, 27 Sep 2018 21:11:45 +0200 Message-ID: <87va6qhi1a.fsf@tobias.gr> References: <20180927182323.GA30836@antelope> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5bht-0004Lf-6L for bug-guix@gnu.org; Thu, 27 Sep 2018 15:12:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5bhl-00074B-Mr for bug-guix@gnu.org; Thu, 27 Sep 2018 15:12:12 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52669) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5bhi-00070F-18 for bug-guix@gnu.org; Thu, 27 Sep 2018 15:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g5bhh-0000iv-Nt for bug-guix@gnu.org; Thu, 27 Sep 2018 15:12:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20180927182323.GA30836@antelope> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Nam Nguyen Cc: 32855@debbugs.gnu.org Hullo, Thanks for the report! Nam Nguyen wrote: > sshuttle is a python program that uses /usr/bin/env at line 196 > of: > /gnu/store/...-sshuttle-0.78.4/lib/python3.6/site-packages/sshuttle/client.py > ['sudo', '-p', '[local sudo] Password: ', '/usr/bin/env', > > Trying to run sshuttle on GuixSD results in: > $ sshuttle -r user@server.com 0/0 -x server.com > sudo: /usr/bin/env: command not found This means that sshuttle on vanilla GuixSD has been broken ever since I added it in 2016, which saddens me. I guess nobody else uses it or, like me, they happen to also have a /usr/bin/env symlink. > Here is a potential fix that I recycled from sshoot's recipe. I > tested it, > and it works. > > $ diff > ~/.config/guix/current/share/guile/site/2.2/gnu/packages/vpn.scm > ~/vpn.scm > 349a350,357 >> (arguments >> '(#:phases >> (modify-phases %standard-phases >> (add-after 'unpack 'patch-paths >> (lambda _ >> (substitute* "sshuttle/client.py" >> (("/usr/bin/env") (which "env"))) >> #t))))) I'll push this soon. Is it all right if I mention your name & e-mail in the commit message? Kind regards, T G-R