GNU bug report logs -
#7067
[PATCH] build: use gnulib's new termios module
Previous Next
Reported by: Jim Meyering <jim <at> meyering.net>
Date: Sat, 18 Sep 2010 19:32:02 UTC
Severity: normal
Tags: patch
Done: Jim Meyering <jim <at> meyering.net>
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 7067 in the body.
You can then email your comments to 7067 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7067
; Package
coreutils
.
(Sat, 18 Sep 2010 19:32:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jim Meyering <jim <at> meyering.net>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sat, 18 Sep 2010 19:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Updating to the latest gnulib would have provoked this new syntax-check
failure in coreutils:
src/ls.c:42:#if HAVE_TERMIOS_H
src/stty.c:39:#if HAVE_TERMIOS_H
maint.mk: do not test the above HAVE_<header>_H symbol(s);\n with the corresponding gnulib module, they are always true
make[3]: *** [sc_prohibit_always_true_header_tests] Error 1
That is easy to fix, along with the stray "\n" in the diagnostic.
Here's the coreutils fix:
I'll post the gnulib fix for maint.mk and a few unexpanded \n's
to bug-gnulib separately.
From c53eabf7090121b62cd49b0379727e9602fe8aa9 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering <at> redhat.com>
Date: Sat, 18 Sep 2010 20:24:41 +0200
Subject: [PATCH] build: use gnulib's new termios module
With it, we can remove the two sole tests of HAVE_TERMIOS_H.
* bootstrap.conf (gnulib_modules): Add termios.
* src/ls.c: Don't test HAVE_TERMIOS_H.
* src/stty.c: Likewise.
* m4/jm-macros.m4 (gl_CHECK_ALL_TYPES): Remove configure-time
test for termios.h.
---
bootstrap.conf | 1 +
m4/jm-macros.m4 | 3 +--
src/ls.c | 4 +---
src/stty.c | 4 +---
4 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/bootstrap.conf b/bootstrap.conf
index e84424a..920fe63 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -207,6 +207,7 @@ gnulib_modules="
sys_ioctl
sys_stat
sys_wait
+ termios
timespec
tzset
uname
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index 20b9af9..6faf08a 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -1,4 +1,4 @@
-#serial 109 -*- autoconf -*-
+#serial 110 -*- autoconf -*-
dnl Misc type-related macros for coreutils.
@@ -176,7 +176,6 @@ AC_DEFUN([gl_CHECK_ALL_HEADERS],
sys/resource.h \
sys/systeminfo.h \
syslog.h \
- termios.h \
)
AC_CHECK_HEADERS([sys/sysctl.h], [], [],
[AC_INCLUDES_DEFAULT
diff --git a/src/ls.c b/src/ls.c
index 6e3e836..f861df9 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -39,9 +39,7 @@
#include <config.h>
#include <sys/types.h>
-#if HAVE_TERMIOS_H
-# include <termios.h>
-#endif
+#include <termios.h>
#if HAVE_STROPTS_H
# include <stropts.h>
#endif
diff --git a/src/stty.c b/src/stty.c
index 71045c2..5d9d4f0 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -36,9 +36,7 @@
#include <stdio.h>
#include <sys/types.h>
-#if HAVE_TERMIOS_H
-# include <termios.h>
-#endif
+#include <termios.h>
#if HAVE_STROPTS_H
# include <stropts.h>
#endif
--
1.7.3.rc2.225.g4a2a
Reply sent
to
Jim Meyering <jim <at> meyering.net>
:
You have taken responsibility.
(Mon, 20 Sep 2010 07:09:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jim Meyering <jim <at> meyering.net>
:
bug acknowledged by developer.
(Mon, 20 Sep 2010 07:09:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 7067-done <at> debbugs.gnu.org (full text, mbox):
Jim Meyering wrote:
> Updating to the latest gnulib would have provoked this new syntax-check
> failure in coreutils:
>
> src/ls.c:42:#if HAVE_TERMIOS_H
> src/stty.c:39:#if HAVE_TERMIOS_H
> maint.mk: do not test the above HAVE_<header>_H symbol(s);\n with the corresponding gnulib module, they are always true
> make[3]: *** [sc_prohibit_always_true_header_tests] Error 1
>
> That is easy to fix, along with the stray "\n" in the diagnostic.
> Here's the coreutils fix:
> I'll post the gnulib fix for maint.mk and a few unexpanded \n's
> to bug-gnulib separately.
>
...
> Subject: [PATCH] build: use gnulib's new termios module
FYI, I've pushed that and a few other build tweaks:
[PATCH 1/4] maint: don't use obsolete gnulib modules
[PATCH 2/4] build: use gnulib's new termios module
[PATCH 3/4] tests: sync tests/init.sh from gnulib
[PATCH 4/4] build: update gnulib submodule to latest
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 18 Oct 2010 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 244 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.