From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: thesis: guixsd should provide /usr/bin/env Date: Mon, 29 Feb 2016 10:11:19 -0800 Message-ID: <87wppnl73s.fsf@dustycloud.org> References: <874mgmti7b.fsf@igalia.com> <87h9ki9dmz.fsf@gnu.org> <87fv01nb8b.fsf@igalia.com> <87d1v4ixeh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaSI2-0004VI-Da for guix-devel@gnu.org; Mon, 29 Feb 2016 13:11:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaSHy-0000WC-8e for guix-devel@gnu.org; Mon, 29 Feb 2016 13:11:26 -0500 In-reply-to: <87d1v4ixeh.fsf@gnu.org> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > Andy Wingo skribis: > >> On Thu 19 Nov 2015 16:07, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > > [...] > >>>> Alternately, I am not sure if this would work but we could make a fo= rm >>>> of "guix environment" which populates a profile that is mounted at /= usr >>>> in a container. That would allow many more non-Guix tools to run. >>> >>> Technically =E2=80=98guix environment --container=E2=80=99 could crea= te /usr, just like >>> it creates /bin/sh. Not sure if it=E2=80=99s a good idea, though. >> >> I think it is definitely interesting. The reason being, you might hac= k >> on something or have to deploy something and it's not part of Guix -- >> you don't want to rewrite the shebang lines for files in git that aren= 't >> build products. Being able to make a just-FHS-enough environment insi= de >> a container sounds to me like a useful tool to have for shimming Guix >> and the outside world, while also benefitting from Guix's reproducible >> environments, rollbacks, isolation, and so on. > > Yeah, makes sense. > > One can already do: > > guix environment --container --ad-hoc coreutils \ > --expose=3D$(which env)=3D/usr/bin/env > > Should we add a --fhs or --/usr/bin/env option to simplify this? > > Thanks, > Ludo=E2=80=99. Would this possibly screw us up on Hurd, where container support I don't think exists?