GNU bug report logs -
#60829
[PATCH] m4: use AS_IF to avoid ! portability issues
Previous Next
Reported by: Mike Frysinger <vapier <at> gentoo.org>
Date: Sun, 15 Jan 2023 08:39:01 UTC
Severity: normal
Tags: patch
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60829 in the body.
You can then email your comments to 60829 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
automake-patches <at> gnu.org
:
bug#60829
; Package
automake-patches
.
(Sun, 15 Jan 2023 08:39:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mike Frysinger <vapier <at> gentoo.org>
:
New bug report received and forwarded. Copy sent to
automake-patches <at> gnu.org
.
(Sun, 15 Jan 2023 08:39:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Since the ! builtin has portability issues (as documented in the Autoconf
manual), switch to AS_IF which takes care of these issues for us.
* m4/sanity.m4: Switch `if` to AS_IF.
---
m4/sanity.m4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/m4/sanity.m4 b/m4/sanity.m4
index db9a1f5639f1..c24648045e2f 100644
--- a/m4/sanity.m4
+++ b/m4/sanity.m4
@@ -110,10 +110,10 @@ fi
# If we didn't sleep, we still need to ensure time stamps of config.status and
# generated files are strictly newer.
am_sleep_pid=
-if ! test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1; then
+AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl
( sleep $am_cv_filesystem_timestamp_resolution ) &
am_sleep_pid=$!
-fi
+])
AC_CONFIG_COMMANDS_PRE(
[AC_MSG_CHECKING([that generated files are newer than configure])
if test -n "$am_sleep_pid"; then
--
2.39.0
Information forwarded
to
automake-patches <at> gnu.org
:
bug#60829
; Package
automake-patches
.
(Wed, 15 Nov 2023 21:27:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 60829 <at> debbugs.gnu.org (full text, mbox):
diff --git a/m4/sanity.m4 b/m4/sanity.m4
...
-if ! test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1; then
+AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl
Finally installed this change. (And closing.) Thanks Mike. -k
Reply sent
to
Karl Berry <karl <at> freefriends.org>
:
You have taken responsibility.
(Wed, 15 Nov 2023 21:27:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Mike Frysinger <vapier <at> gentoo.org>
:
bug acknowledged by developer.
(Wed, 15 Nov 2023 21:27:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 14 Dec 2023 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 133 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.