GNU bug report logs - #36375
‘guix package’ should lock the profile

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Tue, 25 Jun 2019 14:11:02 UTC

Severity: normal

Done: Julien Lepiller <julien <at> lepiller.eu>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 36375 <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 36375 <at> debbugs.gnu.org
Subject: Re: [PATCH] Re: ‘guix package’ should lock
 the profile
Date: Sat, 26 Oct 2019 00:08:06 +0200
[Message part 1 (text/plain, inline)]
Le Fri, 25 Oct 2019 23:21:34 +0200,
Ludovic Courtès <ludo <at> gnu.org> a écrit :
> 
> I’d recommend wrapping the body in ‘with-file-lock’ (from (guix build
> syscalls)), which handles non-local exits.
> 
> However you’d first need to add a #:wait? argument to ‘with-file-lock’
> and perhaps an additional argument to handle the already-locked case.
> Or maybe call that ‘with-file-lock/no-wait’.
> 
> How does that sound?
> 
> Thanks for working on it!
> 
> Ludo’.

Thanks! here is a new patch with your suggestions.
[0001-guix-package-lock-profiles-when-processing-them.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.