unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Roel Janssen <roel@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] profiles: Let canonicalize-profile return an absolute path.
Date: Fri, 13 Jul 2018 17:33:12 +0200	[thread overview]
Message-ID: <87va9jdubr.fsf@gnu.org> (raw)
In-Reply-To: <874lh46ur5.fsf@gnu.org> (Roel Janssen's message of "Thu, 12 Jul 2018 22:53:34 +0200")

Roel Janssen <roel@gnu.org> 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 ‘root’ 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/custom/profile
>
> That way, if root cannot look into ‘/home/roel’, it can still keep
> track of the profile because it can look into ‘/var/guix’.

Indeed, that could be a solution on setups such as clusters.

I think you can email it to bug-guix@gnu.org with priority “wishlist.”
:-)

Thanks,
Ludo’.

      reply	other threads:[~2018-07-13 15:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-03 17:59 [PATCH] profiles: Let canonicalize-profile return an absolute path Roel Janssen
2018-07-11 11:06 ` Ludovic Courtès
2018-07-12 20:53   ` Roel Janssen
2018-07-13 15:33     ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87va9jdubr.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=roel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).