unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15890: Please provide a way to delete old build directories.
@ 2013-11-14  8:14 John Darrington
  2013-12-10 21:58 ` Ludovic Courtès
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: John Darrington @ 2013-11-14  8:14 UTC (permalink / raw)
  To: 15890

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

When packages are built using guix build --keep-failed the build directories
are created in /tmp/nix* (as they should be).

But it is impossible to delete these directories without special priviliges.
The user who called guix build --keep-failed cannot delete them because they
are owned by guix-builder

Can we please either:

1. Have a command (or option to guix gc) to remove them ; OR

2. Arrange for the ownership of such directories to be changed to the calling user, 
   after the build has finished.

J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* bug#15890: Please provide a way to delete old build directories.
  2013-11-14  8:14 bug#15890: Please provide a way to delete old build directories John Darrington
@ 2013-12-10 21:58 ` Ludovic Courtès
  2016-11-07  8:56 ` Hartmut Goebel
  2017-01-25 10:56 ` Ludovic Courtès
  2 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2013-12-10 21:58 UTC (permalink / raw)
  To: John Darrington; +Cc: 15890

John Darrington <john@darrington.wattle.id.au> skribis:

> When packages are built using guix build --keep-failed the build directories
> are created in /tmp/nix* (as they should be).
>
> But it is impossible to delete these directories without special priviliges.
> The user who called guix build --keep-failed cannot delete them because they
> are owned by guix-builder
>
> Can we please either:
>
> 1. Have a command (or option to guix gc) to remove them ; OR
>
> 2. Arrange for the ownership of such directories to be changed to the calling user, 
>    after the build has finished.

I agree.  I would go for solution #2.

(Note that this will have to be submitted to the Nix project, since the
C++ code under nix/ is imported from there.)

Ludo’.

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

* bug#15890: Please provide a way to delete old build directories.
  2013-11-14  8:14 bug#15890: Please provide a way to delete old build directories John Darrington
  2013-12-10 21:58 ` Ludovic Courtès
@ 2016-11-07  8:56 ` Hartmut Goebel
  2016-11-09 14:44   ` Ludovic Courtès
  2017-01-25 10:56 ` Ludovic Courtès
  2 siblings, 1 reply; 5+ messages in thread
From: Hartmut Goebel @ 2016-11-07  8:56 UTC (permalink / raw)
  To: 15890

Hi,

any news on this? Did anybody pass this to the Nix project?

   Arrange for the ownership of such directories to be changed to the calling user, 
   after the build has finished


Would also allow for easily debugging build (by entering the environment
and restart the build).

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

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

* bug#15890: Please provide a way to delete old build directories.
  2016-11-07  8:56 ` Hartmut Goebel
@ 2016-11-09 14:44   ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-11-09 14:44 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: 15890

Hi,

Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> any news on this? Did anybody pass this to the Nix project?

No, but it shouldn’t be too hard: look for ‘settings.keepFailed’ in
libstore/build.cc and drop a chown -R in there.  We need to propagate
the UID of the client who connected to the daemon, though.

Ludo’.

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

* bug#15890: Please provide a way to delete old build directories.
  2013-11-14  8:14 bug#15890: Please provide a way to delete old build directories John Darrington
  2013-12-10 21:58 ` Ludovic Courtès
  2016-11-07  8:56 ` Hartmut Goebel
@ 2017-01-25 10:56 ` Ludovic Courtès
  2 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2017-01-25 10:56 UTC (permalink / raw)
  To: John Darrington; +Cc: 15890-done

John Darrington <john@darrington.wattle.id.au> skribis:

> When packages are built using guix build --keep-failed the build directories
> are created in /tmp/nix* (as they should be).
>
> But it is impossible to delete these directories without special priviliges.
> The user who called guix build --keep-failed cannot delete them because they
> are owned by guix-builder
>
> Can we please either:
>
> 1. Have a command (or option to guix gc) to remove them ; OR
>
> 2. Arrange for the ownership of such directories to be changed to the calling user, 
>    after the build has finished.

This was fixed by Hartmut in commit
2608e40988ba8cf51723fe0d21bdedf6b3997c9c.

Ludo’.

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

end of thread, other threads:[~2017-01-25 10:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-14  8:14 bug#15890: Please provide a way to delete old build directories John Darrington
2013-12-10 21:58 ` Ludovic Courtès
2016-11-07  8:56 ` Hartmut Goebel
2016-11-09 14:44   ` Ludovic Courtès
2017-01-25 10:56 ` 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).