From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Introducing =?utf-8?B?4oCYZ3VpeCBwYWNr4oCZ?= Date: Tue, 14 Mar 2017 18:02:13 +0100 Message-ID: <87a88n7pwq.fsf@gnu.org> References: <87d1dodcnb.fsf@gnu.org> <87k27tv5sp.fsf@igalia.com> <87r320m0u5.fsf@gnu.org> <87efy0t0tv.fsf@igalia.com> 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]:50898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnppz-0005xb-W2 for guix-devel@gnu.org; Tue, 14 Mar 2017 13:02:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnppw-00053Q-Uv for guix-devel@gnu.org; Tue, 14 Mar 2017 13:02:20 -0400 In-Reply-To: <87efy0t0tv.fsf@igalia.com> (Andy Wingo's message of "Tue, 14 Mar 2017 15:00:44 +0100") 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: Andy Wingo Cc: guix-devel Hi! Andy Wingo skribis: > On Tue 14 Mar 2017 14:42, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> If we remove /var/guix/profiles, users will have to actually type >> /gnu/store/asasdfadfgsadfa-profile/bin/guile. This is not great, but I >> don=E2=80=99t know what else could be done. We could profile a >> /bin/guile =E2=86=92 /gnu/store/asasdfadfgsadfa-profile/bin/guile symlin= k, but >> perhaps that=E2=80=99s risky too. > > As we were discussing in the channel, maybe it's OK for these binary > installs to claim "/opt/gnu". Then we expose the profile in /opt/gnu, > so you would run Guile as /opt/gnu/bin/guile. Additionally you could > actually build against that Guile, which would be pretty neat. If the > user untars multiple guix packs, /gnu/store easily absorbs the union, > and /opt/gnu will adjoin any new profile directories/files and replace > any overwritten links. > > We would have to make sure the union directory in /opt/gnu has all real > directories and only symlink files, as per the recent patch on > guix-devel. Commit 5895ec8aa234ec9a4ce68ab8f94e795807630168 takes a slightly different approach (it doesn=E2=80=99t use the union thing). You can run: guix pack guile-next \ --symlink=3D/opt/gnu/bin/guile=3Dbin/guile \ --symlink=3D/opt/gnu/bin/guild=3Dbin/guild and that does what you would expect. In addition, /var/guix is no longer included by default. Let me know what you think! Ludo=E2=80=99.