unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 50568@debbugs.gnu.org
Subject: bug#50568: Missing source code
Date: Tue, 21 Sep 2021 18:34:35 +0200	[thread overview]
Message-ID: <20210921163435.n2b4fl64ppnbls5s@pelzflorian.localdomain> (raw)
In-Reply-To: <20210921102850.yknkbmhpmuyhsvjc@pelzflorian.localdomain>

On Tue, Sep 21, 2021 at 12:28:50PM +0200, pelzflorian (Florian Pelz) wrote:
> On Mon, Sep 20, 2021 at 09:25:27AM +0200, Ludovic Courtès wrote:
> > To test it, you can first start the new daemon, along these lines:
> > 
> >   sudo herd stop guix-daemon
> >   sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild
> 
> No, going back one generation and guix gc -D’ing the
> /gnu/store/*hello-2.10* after adding web.archive.org to /etc/hosts
> again, I for some reason get a
> 
> florian@florianacer ~$ bzcat /var/log/guix/drvs/wy/24jyd0mm2jlgpzsxxlip03df065g35-hello-2.10.tar.gz.drv.bz2
> error: failed to run download program '/home/florian/src/guix/scripts/guix': Keine Berechtigung
> 
> (Keine Berechtigung is German for Permission denied) but it does not
> matter, since the reconfigure and reboot works when and only when
> adding web.archive.org to /etc/hosts.
> 
> Actually I will later take another look at this, because the manual
> says ./pre-inst-env guix-daemon should work.

There is no regression.  Without the web.archive.org patch,
`guix install hello' via

sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild

always shows the same error, regardless of whether I misdirected DNS
lookups or not.  The patch is not at fault.  Though I don’t know why.

sudo -E strace -f ./pre-inst-env guix-daemon --build-users-group=guixbuild

shows

[pid  1854] execve("/home/florian/src/guix/scripts/guix", ["guix", "perform-download", "/gnu/store/wy24jyd0mm2jlgpzsxxli"..., "/gnu/store/hbdalsf5lpf01x4dcknwx"...], 0x1d8f9a0 /* 80 vars */) = -1 EACCES (Keine Berechtigung)

<https://pubs.opengroup.org/onlinepubs/9699919799/> says:
> The exec functions shall fail if:
> …
> [EACCES]
>     The new process image file is not a regular file and the implementation does not support execution of files of its type.
> The exec functions, except for fexecve(), shall fail if:
> [EACCES]
>     Search permission is denied for a directory listed in the new process image file's path prefix, or the new process image file denies execution permission.

I run:
florian@florianacer ~$ ls -ahl /home/florian/src/guix/scripts/guix
-r-xr-xr-x 1 florian users 2,0K 21. Sep 07:30 /home/florian/src/guix/scripts/guix
florian@florianacer ~$ ls -ahl /home/florian/src/guix | grep scripts
drwxr-xr-x  2 florian users 4,0K 21. Sep 07:30 scripts/
florian@florianacer ~$ lsattr /home/florian/src/guix/scripts/guix
--------------e----- /home/florian/src/guix/scripts/guix
florian@florianacer ~ [env]$ cat test-execv.c
#include <unistd.h>

int main ()
{
  const char *const argv[] =
    {
      "guix", "perform-download",
      "/gnu/store/wy24jyd0mm2jlgpzsxxlip03df065g35-hello-2.10.tar.gz.drv",
      "/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz.lock",
      NULL
    };

  execv ("/home/florian/src/guix/scripts/guix", (char *const *) argv);

  return 0;
}
florian@florianacer ~ [env]$ gcc test-execv.c -o test-execv
florian@florianacer ~ [env]$ LC_ALL=en_US.utf8 ~/test-execv

Starting download of /gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz.lock
From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz...
following redirection to `https://ftp.wayne.edu/gnu/hello/hello-2.10.tar.gz'...
In procedure open-file: Read-only file system: "/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz.lock"
[and more expected failures …]

Whatever.  It is not important.

Regards,
Florian




  reply	other threads:[~2021-09-21 16:37 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-13 13:16 bug#50568: Missing source code Ludovic Courtès
2021-09-13 13:49 ` Maxime Devos
2021-09-14  8:38   ` Ludovic Courtès
2021-09-14  8:54     ` zimoun
2021-09-16 19:28       ` Ludovic Courtès
2021-09-17 10:10         ` zimoun
2021-09-14  9:36     ` pelzflorian (Florian Pelz)
2021-09-16 19:45       ` Ludovic Courtès
2021-09-17 10:46         ` pelzflorian (Florian Pelz)
2021-09-20  7:25           ` Ludovic Courtès
2021-09-21 10:28             ` pelzflorian (Florian Pelz)
2021-09-21 16:34               ` pelzflorian (Florian Pelz) [this message]
2021-09-22  9:37               ` Ludovic Courtès
2021-09-13 13:49 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-09-13 14:30   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-09-14  8:40     ` Ludovic Courtès
2021-10-04 20:05 ` Ludovic Courtès
2021-10-05 14:16   ` Guillaume Le Vaillant
2021-10-07 13:38     ` Ludovic Courtès
2021-10-07 13:53   ` Ludovic Courtès
2021-10-07 15:17     ` Maxime Devos
2021-10-07 17:01       ` Ludovic Courtès
2021-10-11  9:55     ` zimoun
2021-10-12  9:50       ` Ludovic Courtès
2021-10-12 11:08         ` zimoun

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=20210921163435.n2b4fl64ppnbls5s@pelzflorian.localdomain \
    --to=pelzflorian@pelzflorian.de \
    --cc=50568@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).