GNU bug report logs -
#41546
Shepherd network activation failures on armhf
Previous Next
Full log
Message #10 received at 41546-done <at> debbugs.gnu.org (full text, mbox):
Hi Jesse,
Jesse Dowell <jesse.dowell <at> gmail.com> skribis:
> I was able to track my issue down to recently introduced code in
> guix/build/syscalls.scm related to the GNU Hurd.
>
> The following patch fixes the problem for me. The core of the issue is that
> the new Hurd related checks use string-suffix? rather than string-contains
> like the code elsewhere in the module.
>
> Whan string-suffix? is used it doesn't match my system %host-type which is
> "arm-unknown-linux-gnueabihf" and the xxxx-socket-address!/hurd branch is
> taken rather than xxxx-socket-address!/linux.
Indeed, great investigation work!
> I don't know if this is only a problem on my unsupported device. I'm
> running guix system on a Raspberry Pi 4b.
>
> Here's the patch that fixes the issue for me.
> -------------------------
> diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
> index 8070c5546f..6be322d68f 100644
> --- a/guix/build/syscalls.scm
> +++ b/guix/build/syscalls.scm
> @@ -1404,7 +1404,7 @@ bytevector BV at INDEX."
> (error "unsupported socket address" sockaddr)))))
>
> (define write-socket-address!
> - (if (string-suffix? "linux-gnu" %host-type)
> + (if (string-contains %host-type "linux-gnu")
> write-socket-address!/linux
> write-socket-address!/hurd))
>
> @@ -1436,7 +1436,7 @@ bytevector BV at INDEX."
> (vector family)))))
>
> (define read-socket-address
> - (if (string-suffix? "linux-gnu" %host-type)
> + (if (string-contains %host-type "linux-gnu")
> read-socket-address/linux
> read-socket-address/hurd))
I pushed it as b56cbe8974c328a6c7bc28906478ef1b191ada4c on your behalf.
Thank you!
Ludo’.
This bug report was last modified 5 years and 46 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.