From: Christopher Baines <mail@cbaines.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 52103@debbugs.gnu.org
Subject: bug#52103: guix pull: guix-manual.drv' failed with exit code 1, In procedure copy-file: Permission denied
Date: Sun, 12 Dec 2021 22:19:36 +0000 [thread overview]
Message-ID: <87pmq1zbco.fsf@cbaines.net> (raw)
In-Reply-To: <87ee6h4hew.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 3023 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Hi,
>
> Christopher Baines <mail@cbaines.net> skribis:
>
>> I've had a go at debugging this further, I'm not confident I've found
>> the relevant part of the strace output, but I think it could be this bit:
>>
>> 14403 newfstatat(AT_FDCWD,
>> "/gnu/store/vcgx18jbb4dyk8kxx2gn8046jsavlgf8-guix-translated-texinfo/guix.de.texi",
>> {st_mode=S_IFREG|0444, st_size=925279, ...}, AT_SYMLINK_NOFOLLOW) =
>> 0
>> 14403 openat(AT_FDCWD, "/gnu/store/vcgx18jbb4dyk8kxx2gn8046jsavlgf8-guix-translated-texinfo/guix.de.texi", O_RDONLY) = 15
>> 14403 fstat(15, {st_mode=S_IFREG|0444, st_size=925279, ...}) = 0
>> 14403 openat(AT_FDCWD, "./guix.de.texi", O_WRONLY|O_CREAT|O_TRUNC, 0444) = -1 EACCES (Permission denied)
>
> It could be that ./guix.de.texi already exists and is read-only, or that
> “.” is read-only.
>
>> There's more information below. I wonder if this could somehow be
>> connected to guix.de.texi being both in the -doc store item, and
>> -guix-translated-texinfo. Reading the builder, it looks like it copies
>> it first from -doc, then again from -guix-translated-texinfo, and that's
>> the point at which it fails?
>
> Ah yes, that looks like a problem: “doc”, which is taken straight from
> the checkout, normally does not contain *.LANG.texi; those files are not
> checked in.
>
> Could it be that ~/.cache/guix/checkouts contains a non-pristine
> checkout of Guix with that extra file?
That looks like the issue.
cbaines@hatysa ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq$ ls -l doc/
total 3656
-rw-r--r-- 1 cbaines users 54631 Nov 25 08:37 build.scm
-rw-r--r-- 1 cbaines users 23526 Nov 9 09:43 contributing.de.texi
-rw-r--r-- 1 cbaines users 45405 Nov 9 09:43 contributing.fr.texi
-rw-r--r-- 1 cbaines users 81777 Dec 10 14:21 contributing.texi
-rw-r--r-- 1 cbaines users 481 Jul 2 07:49 environment-gdb.scm
-rw-r--r-- 1 cbaines users 23433 Nov 21 18:43 fdl-1.3.texi
-rw-r--r-- 1 cbaines users 107412 Nov 25 08:37 guix-cookbook.texi
-rw-r--r-- 1 cbaines users 925279 Nov 9 09:43 guix.de.texi
-rw-r--r-- 1 cbaines users 1019672 Nov 9 09:43 guix.fr.texi
-rw-r--r-- 1 cbaines users 1388712 Dec 10 14:21 guix.texi
-rw-r--r-- 1 cbaines users 698 Nov 21 18:43 he-config-bare-bones.scm
-rw-r--r-- 1 cbaines users 22650 Nov 21 18:43 htmlxref.cnf
drwxr-xr-x 2 cbaines users 4096 Nov 21 18:43 images/
-rw-r--r-- 1 cbaines users 8750 Nov 21 18:43 local.mk
-rw-r--r-- 1 cbaines users 840 Nov 21 18:43 package-hello.json
-rw-r--r-- 1 cbaines users 615 Jul 2 07:49 package-hello.scm
I was a bit confused as git status didn't show it as untracked, but I
think that's just because of the .gitignore. git clean -x -n shows it:
Would remove doc/guix.de.texi
That outputs 259 other files as well. Maybe it's worth running git clean
on the cache directory, or only pulling files in from the cache
directory if they're tracked by git.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
next prev parent reply other threads:[~2021-12-12 22:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 8:49 bug#52103: guix pull: guix-manual.drv' failed with exit code 1, In procedure copy-file: Permission denied Christopher Baines
2021-12-10 13:35 ` Ludovic Courtès
2021-12-11 9:53 ` Christopher Baines
2021-12-12 21:55 ` Ludovic Courtès
2021-12-12 22:19 ` Christopher Baines [this message]
2021-12-14 15:05 ` Ludovic Courtès
2021-12-17 11:24 ` Christopher Baines
2021-12-17 15:39 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmq1zbco.fsf@cbaines.net \
--to=mail@cbaines.net \
--cc=52103@debbugs.gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).