From: Mathieu Othacehe <m.othacehe@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 38359-done@debbugs.gnu.org
Subject: bug#38359: Guix 1.0.1-10.41b4b71 test fails on armhf
Date: Tue, 10 Dec 2019 11:00:26 +0100 [thread overview]
Message-ID: <874ky8sdol.fsf@gmail.com> (raw)
In-Reply-To: <871rtdctrs.fsf@gnu.org>
Hola!
> As for the detection, this appears to work:
>
> (define (binfmt-misc?)
> (let ((pid (getpid))
> (cmdline (call-with-input-file "/proc/self/cmdline" get-string-all)))
> (match (primitive-fork)
> (0 (dynamic-wind
> (const #t)
> (lambda ()
> (exit (not (equal? (call-with-input-file (format #f "/proc/~a/cmdline" pid)
> get-string-all)
> cmdline))))
> (const #t)))
> (x (zero? (pk (cdr (waitpid x))))))))
>
> WDYT?
Nice trick, I didn't think of forking process to fool qemu-user ;)
Pushed a fix with your snippet as
0b5ad0e756a34d5e3ed1f37c3d4083a330fa33f5.
Thanks,
Mathieu
next prev parent reply other threads:[~2019-12-10 10:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-25 11:51 bug#38359: Guix 1.0.1-10.41b4b71 test fails on armhf Mathieu Othacehe
2019-11-25 22:08 ` bug#38359: Mistaken merge Jack Hill
2019-11-26 10:53 ` bug#38359: Guix 1.0.1-10.41b4b71 test fails on armhf Mathieu Othacehe
2019-12-02 13:33 ` Mathieu Othacehe
2019-12-09 17:07 ` Ludovic Courtès
2019-12-10 10:00 ` Mathieu Othacehe [this message]
2019-12-10 13:22 ` Ludovic Courtès
2019-11-27 10:42 ` Mathieu Othacehe
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874ky8sdol.fsf@gmail.com \
--to=m.othacehe@gmail.com \
--cc=38359-done@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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.