Re: thesis: guixsd should provide /usr/bin/env

2016-03-03 Thread Ludovic Courtès
Christopher Allan Webber skribis: > Ludovic Courtès writes: [...] >> One can already do: >> >> guix environment --container --ad-hoc coreutils \ >> --expose=$(which env)=/usr/bin/env >> >> Should we add a --fhs or --/usr/bin/env option to simplify this? >> >> Thanks, >> Ludo’. > > Would t

Re: thesis: guixsd should provide /usr/bin/env

2016-03-01 Thread Jookia
On Tue, Mar 01, 2016 at 09:09:45AM +0100, Andy Wingo wrote: > Hi :) > > > Ludovic Courtès writes: > > > >> Should we add a --fhs or --/usr/bin/env option to simplify this? > > I think /usr/bin/env is probably going to be insufficient -- lazy people > like me are always going to be asking for more

Re: thesis: guixsd should provide /usr/bin/env

2016-03-01 Thread Andy Wingo
Hi :) > Ludovic Courtès writes: > >> Should we add a --fhs or --/usr/bin/env option to simplify this? I think /usr/bin/env is probably going to be insufficient -- lazy people like me are always going to be asking for more things :) If we can manage to expose a profile at /usr, that would be bett

Re: thesis: guixsd should provide /usr/bin/env

2016-02-29 Thread Christopher Allan Webber
Ludovic Courtès writes: > Andy Wingo skribis: > >> On Thu 19 Nov 2015 16:07, l...@gnu.org (Ludovic Courtès) writes: > > [...] > Alternately, I am not sure if this would work but we could make a form of "guix environment" which populates a profile that is mounted at /usr in a contai

Re: thesis: guixsd should provide /usr/bin/env

2016-02-29 Thread Ludovic Courtès
iyzs...@member.fsf.org (宋文武) skribis: > Someone (sorry, I forget who) mentioned in #guix that we can use > binfmt_misc to handle the shebang. > > I tried coding it in C, and it seems to working fine. > Here it is: . > > Try it with care: > $ sudo mount -t binfmt_m

Re: thesis: guixsd should provide /usr/bin/env

2016-02-29 Thread Ludovic Courtès
Jookia <166...@gmail.com> skribis: > That said, I think it's the wrong approach since it's automated, invisible and > hides the issues of /usr/bin/env. Instead we need to do two things: > > Write some scripts to ease migration and documentation on how to use Autotools > or other tools to fix sheba

Re: thesis: guixsd should provide /usr/bin/env

2016-02-16 Thread Jookia
On Wed, Feb 17, 2016 at 03:31:42PM +0800, 宋文武 wrote: > Someone (sorry, I forget who) mentioned in #guix that we can use > binfmt_misc to handle the shebang. I might have been me since I thought this would be a neat idea. > I tried coding it in C, and it seems to working fine. > Here it is:

Re: thesis: guixsd should provide /usr/bin/env

2016-02-16 Thread 宋文武
Someone (sorry, I forget who) mentioned in #guix that we can use binfmt_misc to handle the shebang. I tried coding it in C, and it seems to working fine. Here it is: . Try it with care: --8<---cut here---start->8--- $ sudo moun

Re: thesis: guixsd should provide /usr/bin/env

2015-11-20 Thread Andy Wingo
On Fri 20 Nov 2015 14:00, l...@gnu.org (Ludovic Courtès) writes: > Should we add a --fhs or --/usr/bin/env option to simplify this? Oh my goodness this would be really nice! Exposing the profile in /usr would be quite interesting. Andy

Re: thesis: guixsd should provide /usr/bin/env

2015-11-20 Thread Ludovic Courtès
Andy Wingo skribis: > On Thu 19 Nov 2015 16:07, l...@gnu.org (Ludovic Courtès) writes: [...] >>> Alternately, I am not sure if this would work but we could make a form >>> of "guix environment" which populates a profile that is mounted at /usr >>> in a container. That would allow many more non

Re: thesis: guixsd should provide /usr/bin/env

2015-11-19 Thread Andy Wingo
On Thu 19 Nov 2015 16:07, l...@gnu.org (Ludovic Courtès) writes: > My current inclination would be to not provide /usr/bin/env by default, > and instead let users add it if they want to, either using the > sledgehammer Ricardo suggests ;-), or simply with: > > ln -s /run/current-system/profile/b

Re: thesis: guixsd should provide /usr/bin/env

2015-11-19 Thread Ludovic Courtès
Andy Wingo skribis: > I think GuixSD should follow NixOS's lead and provide /usr/bin/env. The > reason is to support scripts that can run either on GuixSD or on some > other system. For example instead of: > > #!/bin/bash > > we can do > > #!/usr/bin/env bash > > So we just need /usr/bin/en

Re: thesis: guixsd should provide /usr/bin/env

2015-11-16 Thread Ricardo Wurmus
Andy Wingo writes: > I think GuixSD should follow NixOS's lead and provide /usr/bin/env. The > reason is to support scripts that can run either on GuixSD or on some > other system. For example instead of: > > #!/bin/bash > > we can do > > #!/usr/bin/env bash > > So we just need /usr/bin/en

thesis: guixsd should provide /usr/bin/env

2015-11-16 Thread Andy Wingo
Hi! I think GuixSD should follow NixOS's lead and provide /usr/bin/env. The reason is to support scripts that can run either on GuixSD or on some other system. For example instead of: #!/bin/bash we can do #!/usr/bin/env bash So we just need /usr/bin/env in the root and nothing else. Al