m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: update to latest gnulib


From: Eric Blake
Subject: [PATCH] maint: update to latest gnulib
Date: Mon, 7 Feb 2011 10:41:32 -0700

* gnulib: Update to latest.
* m4/gnulib-cache.m4: Import fclose and rename modules.
* configure.ac (gl_ASSERT_NO_GNULIB_POSIXCHECK): Speed up normal
configure runs (and document how to rerun GNULIB_POSIXCHECK).
* HACKING: Document GNULIB_POSIXCHECK.

Signed-off-by: Eric Blake <address@hidden>
---

This skips out on the bulk of the 'declared without a macro' checks
during configure time (they are only useful if you are going to
run with -DGNULIB_POSIXCHECK=1, but that's a maintainer action);
it also results in a smaller config.h (no HAVE_RAW_DECL substitutions).

I silenced a couple of GNULIB_POSIXCHECK warnings in the process.  A
few still remain (such as for close()); it's not an issue at the
moment, since we don't use any socket() funtions to trigger the
portability problems fixed by the close() module.

 ChangeLog          |    7 +++++++
 HACKING            |    5 +++++
 configure.ac       |    5 +++++
 gnulib             |    2 +-
 m4/gnulib-cache.m4 |    4 +++-
 5 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8debe17..e31965e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-02-07  Eric Blake  <address@hidden>

+       maint: update to latest gnulib
+       * gnulib: Update to latest.
+       * m4/gnulib-cache.m4: Import fclose and rename modules.
+       * configure.ac (gl_ASSERT_NO_GNULIB_POSIXCHECK): Speed up normal
+       configure runs (and document how to rerun GNULIB_POSIXCHECK).
+       * HACKING: Document GNULIB_POSIXCHECK.
+
        maint: Update http git cloning instructions.
        * HACKING: Git http doesn't like the redirect at git.sv.gnu.org.
        * THANKS: Update.
diff --git a/HACKING b/HACKING
index 7689c21..6e4552d 100644
--- a/HACKING
+++ b/HACKING
@@ -103,6 +103,11 @@ and is not part of a release distribution.
   from their respective upstream source, rather than the version that
   shipped with the automake release.

+* If you would like to check that you are not missing out on any useful
+  gnulib modules, comment out the gl_ASSERT_NO_GNULIB_POSIXCHECK in
+  configure.ac, then run 'make CFLAGS='-DGNULIB_POSIXCHECK=1' with gcc,
+  and look at the resulting warnings.
+

 4. Test Suite
 =============
diff --git a/configure.ac b/configure.ac
index 1160c3e..17f23e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,11 @@ AC_PROG_CC
 AC_DEFUN([gl_CXX_CHOICE_DEFAULT_NO])
 M4_EARLY

+# Maintainer note - comment this line out if you plan to rerun
+# GNULIB_POSIXCHECK testing to see if M4 should be using more modules.
+# Leave it uncommented for normal releases, for faster ./configure.
+gl_ASSERT_NO_GNULIB_POSIXCHECK
+
 # M4 is single-threaded; so we can optimize gnulib code by using this:
 gl_DISABLE_THREADS

diff --git a/gnulib b/gnulib
index a036b76..6f0680e 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit a036b7684f9671ee53999773785d1865603c3849
+Subproject commit 6f0680eb29a1737d704a1df26aafc00490cd34d8
diff --git a/m4/gnulib-cache.m4 b/m4/gnulib-cache.m4
index 552a393..d7aa3bb 100644
--- a/m4/gnulib-cache.m4
+++ b/m4/gnulib-cache.m4
@@ -15,7 +15,7 @@


 # Specification in the form of a command-line invocation:
-#   gnulib-tool --import --dir=. --local-dir=local --lib=libm4 
--source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests 
--aux-dir=build-aux --with-tests --with-c++-tests --avoid=lock-tests 
--avoid=tls-tests --makefile-name=gnulib.mk --no-libtool --macro-prefix=M4 
announce-gen assert autobuild avltree-oset binary-io c-stack clean-temp cloexec 
close-stream closein config-h dirname error execute fdl-1.3 fflush filenamecat 
fopen fopen-safer fseeko gendocs getopt-gnu git-version-gen gnu-web-doc-update 
gnumakefile gnupload gpl-3.0 ignore-value intprops maintainer-makefile 
manywarnings memchr2 mkstemp obstack progname regex sigaction spawn-pipe 
stdbool stdint stdlib-safer strsignal strstr strtod strtol unlocked-io 
update-copyright vc-list-files verror version-etc version-etc-fsf wait-process 
xalloc xoset xprintf xvasprintf-posix
+#   gnulib-tool --import --dir=. --local-dir=local --lib=libm4 
--source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests 
--aux-dir=build-aux --with-tests --with-c++-tests --avoid=lock-tests 
--avoid=tls-tests --makefile-name=gnulib.mk --no-libtool --macro-prefix=M4 
announce-gen assert autobuild avltree-oset binary-io c-stack clean-temp cloexec 
close-stream closein config-h dirname error execute fclose fdl-1.3 fflush 
filenamecat fopen fopen-safer fseeko gendocs getopt-gnu git-version-gen 
gnu-web-doc-update gnumakefile gnupload gpl-3.0 ignore-value intprops 
maintainer-makefile manywarnings memchr2 mkstemp obstack progname regex rename 
sigaction spawn-pipe stdbool stdint stdlib-safer strsignal strstr strtod strtol 
unlocked-io update-copyright vc-list-files verror version-etc version-etc-fsf 
wait-process xalloc xoset xprintf xvasprintf-posix

 # Specification in the form of a few gnulib-tool.m4 macro invocations:
 gl_LOCAL_DIR([local])
@@ -34,6 +34,7 @@ gl_MODULES([
   dirname
   error
   execute
+  fclose
   fdl-1.3
   fflush
   filenamecat
@@ -56,6 +57,7 @@ gl_MODULES([
   obstack
   progname
   regex
+  rename
   sigaction
   spawn-pipe
   stdbool
-- 
1.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]