From: Bruno Haible <bruno@clisp.org>
To: "Ørjan Malde" <red@foxi.me>
Cc: bug-gnulib@gnu.org
Subject: Re: [PATCH] Further improve cross-compilation guesses for midipix
Date: Tue, 06 Feb 2024 09:48:20 +0100 [thread overview]
Message-ID: <22173891.EfDdHjke4D@nimes> (raw)
In-Reply-To: <KZ0I4ixBvnM6Nddh9A7Idmb4LIR1VKWxz2XddUKUwgquVxC0jMFCZV00tJNVFXyXnZHzERZDiIN5h9IuFLL1e8w7a_AwFUr4lbXNlfZpmdc=@foxi.me>
Ørjan Malde wrote:
> > If on Linux, the result is 'guessing no (mishandles large arguments)',
> > it should be the same on systems that emulate the Linux system calls. Right?
> >
>
> No, we have handled the mishandling of large arguments and nanosleep passes all of gnulib's tests unlike linux.
OK. Then the assignment to 'guessing yes' was correct and only the comment
was lacking. I'm applying this:
2024-02-06 Bruno Haible <bruno@clisp.org>
Further improve cross-compilation for midipix.
Reported by Ørjan Malde <red@foxi.me>.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Improve cross-compilation guess
for midipix.
diff --git a/m4/nanosleep.m4 b/m4/nanosleep.m4
index 38c0a5e71f..ff730b676c 100644
--- a/m4/nanosleep.m4
+++ b/m4/nanosleep.m4
@@ -116,10 +116,13 @@ AC_DEFUN([gl_FUNC_NANOSLEEP]
*) gl_cv_func_nanosleep=no ;;
esac],
[case "$host_os" in
- # Guess it halfway works when the kernel is Linux
- # and on systems that emulate the Linux system calls.
- linux* | midipix*)
+ # Guess it halfway works when the kernel is Linux.
+ linux*)
gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
+ # Midipix generally emulates the Linux system calls,
+ # but here it handles large arguments correctly.
+ midipix*)
+ gl_cv_func_nanosleep='guessing yes' ;;
# Guess no on native Windows.
mingw* | windows*)
gl_cv_func_nanosleep='guessing no' ;;
prev parent reply other threads:[~2024-02-06 8:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 11:59 [PATCH] Further improve cross-compilation guesses for midipix Ørjan Malde
2024-02-05 23:47 ` Bruno Haible
2024-02-06 8:19 ` Ørjan Malde
2024-02-06 8:48 ` Bruno Haible [this message]
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://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22173891.EfDdHjke4D@nimes \
--to=bruno@clisp.org \
--cc=bug-gnulib@gnu.org \
--cc=red@foxi.me \
/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.
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).