From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Gibbons Subject: Re: 01/01: services: Add =?UTF-8?Q?=E2=80=98=2Fusr=2Fbin=2Fenv=E2=80=99?= special file. Date: Sat, 07 Sep 2019 09:03:18 -0600 Message-ID: References: <20190906102509.28951.2772@vcs0.savannah.gnu.org> <20190906102510.002BE21324@vcs0.savannah.gnu.org> <87d0gdbtji.fsf@cbaines.net> <87mufhwhc6.fsf@nckx> <874l1p80zr.fsf@netris.org> <87imq4whtt.fsf@nckx> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35978) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i6cFH-0004aK-1M for guix-devel@gnu.org; Sat, 07 Sep 2019 11:03:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i6cFF-0002RH-S7 for guix-devel@gnu.org; Sat, 07 Sep 2019 11:03:22 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:42365) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i6cFF-0002QD-KM for guix-devel@gnu.org; Sat, 07 Sep 2019 11:03:21 -0400 Received: by mail-pf1-x42e.google.com with SMTP id w22so6457101pfi.9 for ; Sat, 07 Sep 2019 08:03:21 -0700 (PDT) In-Reply-To: <87imq4whtt.fsf@nckx> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Tobias Geerinckx-Rice , Mark H Weaver Cc: guix-devel@gnu.org On Sat, 2019-09-07 at 12:06 +0200, Tobias Geerinckx-Rice wrote: > Mark, > > Mark H Weaver 写道: > > This should have been discussed more widely before pushing to > > 'master'. > > It should certainly have been discussed more widely before > reverting like you did. There was plenty of opportunity for you > to respond before that[0]. > > I have the impression this is not going anywhere productive, so > shall we just drop this meta-discussion? > > Despite what you may think, I *am* interested in your (or any) > reasoning to include /bin/sh and not /usr/bin/sh, but understand > the energy involved in reiterating. I'd rather see them both > gone; this was my compromise. > > Kind regards, > > T G-R > > [0]: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35910 If I might chip in here to try to make this discussion a little more productive, a user suggested /usr/bin/env should be added by default[0] to solve a problem[1]. In summary, the user wanted to have a standard for scripting in guile and other common GNU distros. If including /usr/bin/env by default is not the best solution to the problem, perhaps we can find a better solution. I suggest we add the "guix shebang" command, which takes a script and returns a script with a shebang pointing to the proper source, like what 'patch-shebangs build phase does to all the scripts in the build source. It could replace the input script (perhaps when given the -- replace option) or it could put the resulting script in the store and accept the --root= option. Thoughts? [0]: https://lists.gnu.org/archive/html/help-guix/2019-09/msg00037.html [1]: https://lists.gnu.org/archive/html/help-guix/2019-09/msg00024.html