From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: guix environment Date: Tue, 16 Jun 2015 13:23:23 +0200 Message-ID: <87zj3zx5g4.fsf@gnu.org> References: <20150615065554.GA17263@thebird.nl> <20150615191006.GA21528@thebird.nl> <20150616055247.GA23591@thebird.nl> <87lhfkytfx.fsf@gnu.org> <20150616100446.GA25031@thebird.nl> 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]:52195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4oxm-0005gz-2b for guix-devel@gnu.org; Tue, 16 Jun 2015 07:23:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4oxh-0004iy-Vj for guix-devel@gnu.org; Tue, 16 Jun 2015 07:23:30 -0400 In-Reply-To: <20150616100446.GA25031@thebird.nl> (Pjotr Prins's message of "Tue, 16 Jun 2015 12:04:46 +0200") 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: Pjotr Prins Cc: guix-devel Pjotr Prins skribis: > On Tue, Jun 16, 2015 at 09:59:46AM +0200, Ludovic Court=C3=A8s wrote: >> >> > $GEM_HOME >> >>=20 >> >> This one doesn't make sense because it specifies where gems are to be >> >> installed. Store items are immutable, so one cannot install gems into >> >> them. >> > >> > We still provide the gem tool ;). If we set this value to something >> > sensible (relative to $HOME) people can still use gems. The current >> > default setting is not good because it does not provide isolation. >>=20 >> I don=E2=80=99t know Ruby, but this seems to be a variable that the *use= r* must >> set, regardless of whether they use Guix or not, no? > > The current default points inside the Guix store. Which is (and should > be) read-only > > - INSTALLATION DIRECTORY: /gnu/store/c13v73jxmj2nir2xjqaz5259zywsa9zi= -ruby-2.1.6/lib/ruby/gems/2.1.0 > > On Debian it is > > - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1 > > (so, by default, you need sudo to run gem) > > My proposal is to have it user based and isolated, e.g., > > - INSTALLATION DIRECTORY: $HOME/.gem/c13v73jxmj2nir2xjqaz5259zywsa9zi= -ruby-2.1.6/2.1.0 I suppose this would require patching Ruby, but why not. Another option would be to do like Debian, which is presumably what upstream intended, and which boils down to configuring Ruby with --localstatedir=3D/var or similar. Thoughts? Ludo=E2=80=99.