guix challenge with diffoscope fails to clean up temporary directory

DoneSubmitted by Vagrant Cascadian.
Details
2 participants
  • Ludovic Courtès
  • Vagrant Cascadian
Owner
unassigned
Severity
normal
V
V
Vagrant Cascadian wrote on 5 Jun 18:55 +0200
(address . bug-guix@gnu.org)
87o7z73v93.fsf@contorta
When I run a command such as:

guix challenge --verbose --diff=diffoscope gavl 2>&1 | tee gavl

It works for the most part, producing the diffoscope output, but ends
with a bunch of warnings regarding removing the temporary directory it
created to compare the files:

warning: failed to delete /tmp/guix-directory.5TokII/share/doc: Permission denied
warning: failed to delete /tmp/guix-directory.5TokII/share: Permission denied
warning: failed to delete /tmp/guix-directory.5TokII: Directory not empty

The permissions on the directory are read-only, which is presumably why
it cannot remove them:

$ ls -latr /tmp/guix-directory.5TokII/
total 28
dr-xr-xr-x 3 vagrant vagrant 4096 Dec 31 1969 share
dr-xr-xr-x 3 vagrant vagrant 4096 Dec 31 1969 lib
dr-xr-xr-x 3 vagrant vagrant 4096 Dec 31 1969 include
dr-xr-xr-x 5 vagrant vagrant 4096 Dec 31 1969 .
drwxrwxrwt 168 root root 12288 Jun 5 09:28 ..


The warnings are at best distracting, and at worst end up effectively
making it impossible to see the diffoscope output without redirecting to
a file, as the source files can take up many many lines in the scroll
buffer.


live well,
vagrant
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYpzgCQAKCRDcUY/If5cW
qsAQAQDUqjlDNToIfbmxZCqxD4MQdet64kUxnhH542yClG1mgwD/ag89XxVj5J2a
cCIiCcBC5L7nT0ZJaTPMZXIz8tqT7QE=
=2KVb
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 13 Jun 12:30 +0200
(name . Vagrant Cascadian)(address . vagrant@reproducible-builds.org)(address . 55809-done@debbugs.gnu.org)
87h74osvmm.fsf@gnu.org
Hello,

Vagrant Cascadian <vagrant@reproducible-builds.org> skribis:

Toggle quote (12 lines)
> When I run a command such as:
>
> guix challenge --verbose --diff=diffoscope gavl 2>&1 | tee gavl
>
> It works for the most part, producing the diffoscope output, but ends
> with a bunch of warnings regarding removing the temporary directory it
> created to compare the files:
>
> warning: failed to delete /tmp/guix-directory.5TokII/share/doc: Permission denied
> warning: failed to delete /tmp/guix-directory.5TokII/share: Permission denied
> warning: failed to delete /tmp/guix-directory.5TokII: Directory not empty

Fixed in 2a2856d5ccd9a9b7df8a94333a277b971a39b150, thanks!

Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 55809@debbugs.gnu.org