unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guix pull
@ 2014-09-16 20:07 Federico Beffa
  2014-09-17  5:19 ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Federico Beffa @ 2014-09-16 20:07 UTC (permalink / raw)
  To: guix-devel

Hi,

I've noticed that if I run "guix pull" from a directory where I do not
have write permission I get an error:

guix pull: error: mkstemp!: Permission denied

Maybe it should be created in /tmp?

Regards,
Fede

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: guix pull
  2014-09-16 20:07 guix pull Federico Beffa
@ 2014-09-17  5:19 ` Ludovic Courtès
  2014-09-22  9:53   ` Federico Beffa
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2014-09-17  5:19 UTC (permalink / raw)
  To: Federico Beffa; +Cc: guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> I've noticed that if I run "guix pull" from a directory where I do not
> have write permission I get an error:
>
> guix pull: error: mkstemp!: Permission denied
>
> Maybe it should be created in /tmp?

Indeed, this is a bug.  Should be fixed now, thanks.

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: guix pull
  2014-09-17  5:19 ` Ludovic Courtès
@ 2014-09-22  9:53   ` Federico Beffa
  2014-09-22 11:17     ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Federico Beffa @ 2014-09-22  9:53 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On Wed, Sep 17, 2014 at 7:19 AM, Ludovic Courtès <ludo@gnu.org> wrote:
> Federico Beffa <beffa@ieee.org> skribis:
>
>> I've noticed that if I run "guix pull" from a directory where I do not
>> have write permission I get an error:
>>
>> guix pull: error: mkstemp!: Permission denied
>>
>> Maybe it should be created in /tmp?
>
> Indeed, this is a bug.  Should be fixed now, thanks.


I believe to have found another problem after doing a "guix pull": In
the directory $HOME/.config/guix/latest/guix there is a file called
"config.scm.in". Shouldn't this file be processed and output
"config.scm"?

Regards,
Fede

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: guix pull
  2014-09-22  9:53   ` Federico Beffa
@ 2014-09-22 11:17     ` Ludovic Courtès
  2014-09-22 17:07       ` Federico Beffa
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2014-09-22 11:17 UTC (permalink / raw)
  To: Federico Beffa; +Cc: guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> I believe to have found another problem after doing a "guix pull": In
> the directory $HOME/.config/guix/latest/guix there is a file called
> "config.scm.in". Shouldn't this file be processed and output
> "config.scm"?

No, it’s on purpose: the goal is to keep using the already-installed
(guix config), which contains the right file names etc.

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: guix pull
  2014-09-22 11:17     ` Ludovic Courtès
@ 2014-09-22 17:07       ` Federico Beffa
  0 siblings, 0 replies; 6+ messages in thread
From: Federico Beffa @ 2014-09-22 17:07 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

> No, it’s on purpose: the goal is to keep using the already-installed
> (guix config), which contains the right file names etc.

Got it. Finally I see how "guix pull" works and why importing modules
only from $HOME/.config/guix/latest/ in the REPL is not enough... :-)

Thanks,
Fede

^ permalink raw reply	[flat|nested] 6+ messages in thread

* guix pull
  2015-04-12 19:00     ` Andreas Enge
@ 2015-04-12 20:56       ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2015-04-12 20:56 UTC (permalink / raw)
  To: Andreas Enge; +Cc: guix-devel

Andreas Enge <andreas@enge.fr> skribis:

> On Sun, Apr 12, 2015 at 03:38:58PM +0200, Ludovic Courtès wrote:
>> Anyway, I recommend against using repeated “make install”, one reason
>> being that there can be leftovers if you don’t run “make uninstall”
>> beforehand.
>
> It seems to be the good way of working in my "multi-user" setting. Why
> should every user handle his own copy of guix? For instance, the daemon
> needs to be installed in a system location to be started by the init system.
> Anyway, "make install" needs to work.

Of course it has to work, no argument here.  :-)

However, it is stateful, which makes it easier to get into troubles (for
instance because a stale .scm file remains available, so ‘guix package
-A’ would show its contents, or because of obscure timestamp issues on
existing files, particularly if one tries
“make install INSTALL='install -C'”, etc.)

>> “guix pull” is meant to be a handy way to deal with updates.
>
> Does this not interfere badly with git? I am running "make install" from my
> latest stable master git branch, so that every user on the system has a recent
> stable guix, with "stable" in the sense of a rolling release, not the latest
> official relase.

Right, the model with “guix pull” is that each user is responsible for
updating their local Guix.  From the sysadmin’s viewpoint, this is bad,
because each user could have their own thing, and some could still be
installing old packages with security issues.  From the user’s
viewpoint, it’s total freedom.

Perhaps “guix pull” could honor sysadmin-handled updates, for those
cases where users do not want to run “guix pull” by themselves.  Say,
‘guix’ would look for ~/.config/guix/latest first, and then
/var/guix/latest.  Thoughts?

> Then I use "./pre-inst-env" from my private branch in which I am
> developing new packages.

Sure.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-12 20:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 20:07 guix pull Federico Beffa
2014-09-17  5:19 ` Ludovic Courtès
2014-09-22  9:53   ` Federico Beffa
2014-09-22 11:17     ` Ludovic Courtès
2014-09-22 17:07       ` Federico Beffa
  -- strict thread matches above, loose matches on Subject: below --
2015-04-09 19:38 Ghc and profile creation bug Andreas Enge
2015-04-10 16:13 ` Ludovic Courtès
2015-04-12 13:38   ` Ludovic Courtès
2015-04-12 19:00     ` Andreas Enge
2015-04-12 20:56       ` guix pull Ludovic Courtès

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).