From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] profiles: Let canonicalize-profile return an absolute path. Date: Fri, 13 Jul 2018 17:33:12 +0200 Message-ID: <87va9jdubr.fsf@gnu.org> References: <87fu106vzk.fsf@gnu.org> <87tvp6m3pt.fsf@gnu.org> <874lh46ur5.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]:51421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fe04N-0001lo-NJ for guix-devel@gnu.org; Fri, 13 Jul 2018 11:33:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fe04I-0002Mk-QO for guix-devel@gnu.org; Fri, 13 Jul 2018 11:33:19 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fe04I-0002MY-Lc for guix-devel@gnu.org; Fri, 13 Jul 2018 11:33:14 -0400 In-Reply-To: <874lh46ur5.fsf@gnu.org> (Roel Janssen's message of "Thu, 12 Jul 2018 22:53:34 +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" To: Roel Janssen Cc: guix-devel Roel Janssen skribis: > I like your patch a lot better than mine! It fixes the issue I run > into, so it'd be great to apply your patch soon. Applied as bc6e291ef0b3c71c07e50d88d7764e5dd334e8b1. > There's one other thing I also run into that is somewhat related to > this: > On a multi-user system, where =E2=80=98root=E2=80=99 cannot see what's in= a user's > directory, it's impossible to keep track of custom profiles. However, > the default user profiles are fine, because they are actually stored in > the local state dir, and symlinked outside. Could we do the same with > custom profiles? The functionality stays the same, it might even be > cleaner in the user's directory because it only needs a single symlink > to the latest generation of a profile, and we might be able to do > garbage collection again on our cluster! > > I'd image something like this: > > $ echo $HOME > /home/roel > $ guix package -i hello teeworlds -p ~/my/custom/profile > --> /var/guix/profiles/per-user/roel/home/roel/my/custom/profile -> ... > --> /var/guix/profiles/per-user/roel/home/roel/my/custom/profile-1-link > $ ls -l ~/my/custom > drwxrwxrwx ... profile -> /var/guix/profiles/per-user/roel/home/roel/my/c= ustom/profile > > That way, if root cannot look into =E2=80=98/home/roel=E2=80=99, it can s= till keep > track of the profile because it can look into =E2=80=98/var/guix=E2=80=99. Indeed, that could be a solution on setups such as clusters. I think you can email it to bug-guix@gnu.org with priority =E2=80=9Cwishlis= t.=E2=80=9D :-) Thanks, Ludo=E2=80=99.