[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36375: [PATCH] Re: ‘guix package’ should lock the profile
From: |
Julien Lepiller |
Subject: |
bug#36375: [PATCH] Re: ‘guix package’ should lock the profile |
Date: |
Fri, 25 Oct 2019 21:44:51 +0200 |
Le Tue, 25 Jun 2019 16:10:22 +0200,
Ludovic Courtès <address@hidden> a écrit :
> The article at
> <https://distrowatch.com/weekly.php?issue=20190624#guixsd> mentions
> things like:
>
> For instance, after installing Icecat, I installed a few other
> desktop programs and then found Icecat had disappeared from my path
> again.
>
> It’s likely that the person ran several ‘guix package’ commands in
> parallel, and that one undoed the effects of the other.
>
> Julien suggested that ‘guix package’ could grab a lock file, and I
> guess it could simply error out when the lock is already taken.
>
> Ludo’.
Hi!
attached is a patch for guix package to grab a lock file. Note that I'm
using flock, so it won't work on NFS shares. The other option would be
to use fcntl but guile doesn't seem to implement the locking function
from it.
0001-guix-package-lock-profiles-when-processing-them.patch
Description: Text Data
- bug#36375: [PATCH] Re: ‘guix package’ should lock the profile,
Julien Lepiller <=