strtod: Assume strtod() works when cross-compiling to new-enough glibc.
[gnulib.git] / ChangeLog
index b0088b2..48b37aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,393 @@
+2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
+
+       * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
+       that strtod() works when cross-compiling to a glibc version known
+       to work.
+
+2010-06-15  Bruno Haible  <bruno@clisp.org>
+
+       * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
+
+2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
+
+       select: Correct timeout.
+       * lib/select.c (rpl_select): Compute wait_timeout correctly.
+
+2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
+
+       git-version-gen: init shell var to avoid env var influence
+       * build-aux/git-version-gen (v): Init shell var to empty.
+
+2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+       priv-set: Don't assume that priv.h exists merely because getppriv does.
+       See Jan Andersen's bug report about AIX 5L in
+       http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
+       * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
+       * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
+       * lib/priv-set.h: Likewise.
+       * tests/test-priv-set.c: Likewise.
+
+2010-06-13  Bruno Haible  <bruno@clisp.org>
+
+       relocatable: Make it easier to test whether to install wrappers.
+       * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
+       RELOCATABLE_VIA_WRAPPER.
+
+2010-06-13  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool: Display specified modules and dependencies differently.
+       * gnulib-tool (func_show_module_list): New function.
+       (func_import, func_create_testdir): Invoke it.
+       Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
+
+2010-06-13  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool: Align code of func_import and func_create_testdir.
+       * gnulib-tool (func_create_testdir): Rename variable saved_modules to
+       specified_modules.
+
+2010-06-12  Jim Meyering  <meyering@redhat.com>
+
+       test-inttostr: avoid spurious failure on Solaris 9
+       * tests/test-inttostr.c (main): Skip the test when snprintf fails
+       to accept "%ju".  Reported by Bruno Haible.
+
+2010-06-11  Jim Meyering  <meyering@redhat.com>
+
+       test-sys_socket: mark variables as used more readably
+       * tests/test-sys_socket.c (main): Mark otherwise unused variables
+       as "used" explicitly via (void) statement casts.  This is more
+       readable than using them in an artificial return expression.
+       Suggestion from Bruno Haible.
+
+2010-06-11  Bruno Haible  <bruno@clisp.org>
+
+       Avoid some more warnings from "gcc -Wwrite-strings".
+       * tests/test-argp.c (test_optional): Change 5th and 6th argument type
+       to 'const char *'.
+       * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
+       * tests/test-c-strcasestr.c (main): Likewise.
+       * tests/test-mbscasestr1.c (main): Likewise.
+       * tests/test-mbscasestr2.c (main): Likewise.
+       * tests/test-memmem.c (main): Likewise.
+       * tests/test-strstr.c (main): Likewise.
+       * tests/test-strcasestr.c (main): Likewise.
+
+2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       init.sh: change framework_failure_ to fail with status 99, not 1
+       * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
+       automake's parallel-tests rule that this is an unexpected failure,
+       even if the test is listed in XFAIL_TESTS.
+
+2010-06-11  Jim Meyering  <meyering@redhat.com>
+
+       test-inttostr: avoid warnings about 4-6KB literal strings
+       * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
+       Include "macros.h", for its definition of ASSERT.
+       (CK): s/assert/ASSERT/
+       * modules/inttostr-tests (Files): Add macros.h.
+
+       init.sh: don't use $ME_ or skip_ before they are defined
+       * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
+       their first uses.  Also hoist their companions: warn_, fail_,
+       framework_failure_, $stderr_fileno.  Prompted by a patch from
+       Stefano Lattarini.
+
+       test-sys_socket: avoid set-but-not-used warnings from gcc
+       * tests/test-sys_socket.c (main): Use "i" and "x", in order to
+       avoid warning about set-but-not-used variables.
+
+       test-xvasprintf: avoid 'const' discard warnings
+       * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
+       "const" when assigning from literal strings.
+       (test_xasprintf): Add "void" in function argument list to placate
+       -Wstrict-prototypes and to be consistent with test_xvasprintf above.
+
+       tests: avoid compilation warnings in argmatch and exclude tests...
+       in packages that define ARGMATCH_DIE_DECL, like coreutils.
+       * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
+       Since it always exits, declare with the "noreturn" attribute.
+       * tests/test-argmatch.c: Likewise.
+
+       tests: avoid 'const' discard warnings in mbsstr tests
+       * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
+       * tests/test-mbsstr2.c (main): Likewise.
+
+       test-verify: avoid warning from gcc's -Wmissing-declarations
+       * tests/test-verify.c (function): Declare to be static.
+
+       test-inttostr.c: include <string.h> for use of strcmp
+       * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
+
+       test-linkat: avoid failed assertion on "other" architectures
+       * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
+       lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
+       sparc: https://bugs.launchpad.net/bugs/591968
+
+2010-06-11  Jim Meyering  <meyering@redhat.com>
+
+       printf.m4: avoid autoconf's "Expanded Before Required" warning
+       * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
+       rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
+       autoconf warning.
+
+2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
+
+       Replacement header templates are now named with ".in", not "_".
+       * doc/gnulib-intro.texi: Correct.
+
+2010-06-10  Jim Meyering  <meyering@redhat.com>
+
+       inttostr-tests: depend on snprintf, not snprintf-posix
+       * modules/inttostr-tests (Depends-on): Depend on snprintf, not
+       snprintf-posix, to avoid this aclocal failure:
+         missing file gnulib-tests/vasnprintf.c
+         configure.ac:45: error: expected source file, required through \
+         AC_LIBSOURCES, not found
+
+2010-06-10  Jim Meyering  <meyering@redhat.com>
+
+       inttostr: add a new function, inttostr, and tests
+       The namesake function was not available.  The existence of the
+       template file, inttostr.c makes its addition nontrivial.
+       * lib/anytostr.c: Rename from inttostr.c.
+       (anytostr): Rename from inttostr.
+       * lib/inttostr.c: New file.
+       * modules/inttostr (Files): Add anytostr.c.
+       (Makefile.am): Set lib_SOURCES instead of ...
+       * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
+       * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
+       * lib/offtostr.c: Likewise.
+       * lib/uinttostr.c: Likewise.
+       * lib/umaxtostr.c: Likewise.
+       * modules/inttostr-tests: New file.
+       * tests/test-inttostr.c: New file.  Test these functions.
+
+2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
+            Bruno Haible  <bruno@clisp.org>
+
+       Add "Extending Gnulib" chapter to manual.
+       * doc/gnulib.texi (Writing Modules): Add cross-reference to new
+       chapter.
+       (Extending Gnulib): New chapter.
+       * doc/gnulib-intro.texi (Openness): Add cross-reference to new
+       chapter.
+
+2010-06-09  Bruno Haible  <bruno@clisp.org>
+
+       Avoid relocwrapper link errors due to gnulib replacement functions.
+       * lib/areadlink.c: Use the system's malloc, realloc functions.
+       (areadlink): Set errno to ENOMEM explicitly.
+       * modules/areadlink (Depends-on): Remove malloc-posix.
+       Reported by Ben Pfaff <blp@cs.stanford.edu>.
+
+2010-06-09  Bruno Haible  <bruno@clisp.org>
+
+       Avoid relocwrapper link errors due to gnulib replacement functions.
+       * lib/canonicalize-lgpl.c: Use the system's malloc function.
+       * lib/malloca.c: Likewise.
+       * lib/relocatable.c: Likewise.
+       * lib/progreloc.c: Use the system's malloc, sprintf functions.
+       * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
+       * lib/setenv.c: Use the system's malloc, realloc functions.
+       * lib/strerror.c: Use the system's sprintf function.
+       Reported by Ben Pfaff <blp@cs.stanford.edu>.
+
+2010-06-04  Bruno Haible  <bruno@clisp.org>
+
+       Prefer documented low-level autoconf macro names.
+       * m4/lib-link.m4: Use m4_translit instead of translit.
+       * m4/environ.m4: Likewise.
+       * m4/mathfunc.m4: Likewise.
+       * m4/onceonly.m4: Likewise.
+       * m4/stdint.m4: Likewise.
+       Suggested by Eric Blake.
+
+2010-06-04  Martin Lambers  <marlam@marlam.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       havelib: Allow library names with '+' characters.
+       * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
+       AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
+
+2010-06-09  Bruno Haible  <bruno@clisp.org>
+
+       Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
+       * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
+       realloc failed.
+
+2010-06-08  Peter Simons  <simons@cryp.to>
+
+       maint.mk: make the news-check rule more configurable
+       * top/maint.mk (news-check-lines-spec) New variable.
+       (news-check): Use "sed -n 1,10p" in place of "head".
+
+2010-06-07  Jim Meyering  <meyering@redhat.com>
+
+       do-release-commit-and-tag: fix typo in --help
+       * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
+
+       regex: avoid new dead-code warning with gcc-4.6.0
+       * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
+       if-block containing a while-loop.  It's been unused for at least
+       5 years.
+
+2010-06-05  Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
+       Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
+
+2010-06-04  Bruno Haible  <bruno@clisp.org>
+
+       Update to GNU gettext 0.18.1.
+       * modules/gettext (configure.ac): Require gettext infrastructure from
+       version 0.18.1.
+
+2010-06-03  Bruno Haible  <bruno@clisp.org>
+
+       Don't use AC_LIBOBJ with file names in subdirectories.
+       * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
+       gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
+       name. Define an automake conditional. Don't invoke AC_LIBOBJ.
+       * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
+       * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
+       gl_LIBUNISTRING_LIBSOURCE.
+       (Makefile.am): Augment lib_SOURCES here, conditionally.
+       * NEWS: Drop requirement for Automake option 'subdir-objects'.
+
+2010-06-03  Bruno Haible  <bruno@clisp.org>
+
+       Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
+       * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
+       expansion does not end with a newline.
+       (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
+       unnecessary newline.
+
+2010-06-03  Bruno Haible  <bruno@clisp.org>
+
+       Reduce dependencies.
+       * tests/test-quotearg.h: New file, extracted from
+       tests/test-quotearg.c.
+       * tests/test-quotearg-simple.c: New file, extracted from
+       tests/test-quotearg.c.
+       * tests/test-quotearg.c: Don't include <ctype.h>.
+       (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
+       RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
+       use_quote_double_quotes, use_quotearg_colon): Moved to
+       tests/test-quotearg.h.
+       (results_g, flag_results, custom_quotes, custom_results): Moved
+       to tests/test-quotearg-simple.c.
+       (main): Moved the part that does not depend on gettext to
+       tests/test-quotearg-simple.c. Return 77 if the test cannot be
+       performed.
+       * modules/quotearg-simple: New file.
+       * modules/quotearg-simple-tests: New file.
+       * modules/quotearg (Depends-on): Add quotearg-simple.
+       * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
+       (Files): Add tests/test-quotearg.h.
+       Reported by Paolo Bonzini.
+
+2010-06-03  Bruno Haible  <bruno@clisp.org>
+
+       Reduce dependencies.
+       * modules/acl (Depends-on): Add gettext-h. Remove gettext.
+
+2010-06-03  Bruno Haible  <bruno@clisp.org>
+
+       time: Undefine more broken macros.
+       * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
+       for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
+       Reported by Eric Blake.
+
+2010-06-03  Bruno Haible  <bruno@clisp.org>
+
+       Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
+       * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
+       (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
+       * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
+       (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
+       Reported by Ludovic Courtès <ludo@gnu.org>.
+
+2010-06-02  Eric Blake  <eblake@redhat.com>
+
+       time: work with mingw + pthreads-win32 library
+       * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
+       if timespec is defined only in pthread.h.
+       * modules/time (Makefile.am): Substitute it.
+       * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
+       <pthread.h>, when needed.
+       (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
+       from the library.
+
+2010-05-31  Bruno Haible  <bruno@clisp.org>
+
+       Avoid expanding two macros in the wrong order.
+       * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
+       gl_LIBUNISTRING if it is defined.
+       * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
+       autoconf >= 2.64.
+       Reported by Ludovic Courtès <ludo@gnu.org>.
+
+2010-05-27  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: also prohibit "#undef" of always-defined symbols
+       * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
+       Allow more than one space before the symbol name.
+       (sc_prohibit_always-defined_macros): Use grep's -E, now that
+       the regexp uses alternation.
+
+2010-05-26  Eric Blake  <eblake@redhat.com>
+
+       maint.mk: avoid echo -e
+       * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
+       Convert all uses of echo -* to printf.
+       Reported by Matthias Bolte.
+
+2010-05-25  Bruno Haible  <bruno@clisp.org>
+
+       Update to GNU gettext 0.18, part 2.
+       * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
+       Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
+
+2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Add missing include in test-pwrite.c.
+       * tests/test-pwrite.c: Include string.h, for strcmp.
+
+2010-05-24  Bruno Haible  <bruno@clisp.org>
+
+       * NEWS: Mention requirement for Automake option 'subdir-objects'.
+
+2010-05-24  Bruno Haible  <bruno@clisp.org>
+
+       Don't use conversion with transliteration in u{8,16,32}_strcoll.
+       * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
+       iconveh_error argument.
+       * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
+       U_STRCONV_TO_LOCALE.
+       * lib/unistr/u16-strcoll.c: Likewise.
+       * lib/unistr/u32-strcoll.c: Likewise.
+       * modules/unistr/u8-strcoll (Depends-on): Add
+       uniconv/u8-strconv-to-enc, localcharset. Remove
+       uniconv/u8-strconv-to-locale.
+       (configure.ac): Bump version number.
+       * modules/unistr/u16-strcoll (Depends-on): Add
+       uniconv/u16-strconv-to-enc, localcharset. Remove
+       uniconv/u16-strconv-to-locale.
+       (configure.ac): Bump version number.
+       * modules/unistr/u32-strcoll (Depends-on): Add
+       uniconv/u32-strconv-to-enc, localcharset. Remove
+       uniconv/u32-strconv-to-locale.
+       (configure.ac): Bump version number.
+
+2010-05-24  Bruno Haible  <bruno@clisp.org>
+
+       Avoid a test failure on NetBSD 5.0.
+       * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
+       an iconv() bug.
+
 2010-05-24  Bruno Haible  <bruno@clisp.org>
 
        Adjust #include directive style.
 
 2010-05-09  Bruno Haible  <bruno@clisp.org>
 
-       Update to GNU gettext 0.18.
-       * m4/gettext.m4: Update to GNU gettext 0.17.
+       Update to GNU gettext 0.18, part 1.
+       * m4/gettext.m4: Update to GNU gettext 0.18.
        * m4/intl.m4: Likewise.
        * m4/po.m4: Likewise.
        * modules/gettext (Files): Add m4/fcntl-o.m4.