Subject: bug#55809: closed (Re: bug#55809: guix challenge with diffoscope fails to clean up temporary directory)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 13 Jun 2022 10:32:02 +0000

Your bug report

#55809: guix challenge with diffoscope fails to clean up temporary directory

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
55809: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55809
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#55809: guix challenge with diffoscope fails to clean up temporary directory
From: Ludovic Courtès <[email-masked]>
To: Vagrant Cascadian <[email-masked]>
Cc: [email-masked]
Date: Mon, 13 Jun 2022 12:30:57 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Vagrant Cascadian <[email-masked]> skribis:

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

Subject: guix challenge with diffoscope fails to clean up temporary directory
From: Vagrant Cascadian <[email-masked]>
To: [email-masked]
Date: Sun, 05 Jun 2022 09:55:36 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

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