bootstrap: fix handling of various perl --version formats
[gnulib.git] / ChangeLog
index 5988bcf..3d04361 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,307 @@
+2009-11-29  Jim Meyering  <meyering@redhat.com>
+
+       bootstrap: handle perl-5.11's changed --version output
+       * build-aux/bootstrap (get_version): Handle perl separately,
+       since perl-5.11's --version output is different.
+
+2009-11-28  Jim Meyering  <meyering@redhat.com>
+
+       userspec: depend on the inttostr module, too
+       * modules/userspec (Depends-on): Add inttostr.
+
+       userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
+       * lib/userspec.c (parse_with_separator): Do not accept a user ID
+       number of MAXUID when it evaluates to (uid_t) -1.
+       Likewise for group ID.  Reported by Matt McCutchen in
+       <http://savannah.gnu.org/bugs/?28113>
+
+       userspec: reformat to use spaces, not TABs
+       * lib/userspec.c: Expand TABs to spaces.
+       Add Emacs' "indent-tabs-mode: nil" hint.
+
+2009-11-27  Eric Blake  <ebb9@byu.net>
+
+       getopt-gnu: flush out another BSD bug
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
+       * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
+       flush out BSD bug.
+       * tests/test-getopt.h (test_getopt): End lists with NULL.
+       * tests/test-getopt_long.h (test_getopt_long): Likewise.
+       (test_getopt_long_posix): Enhance test.
+       * modules/getopt-posix-tests (Depends-on): Add stdbool.
+       * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
+       getopt-gnu.
+       * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
+       Likewise.
+
+2009-11-27  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/idpriv-droptemp-tests (Notice): Fix text.
+
+2009-11-27  Jim Meyering  <meyering@redhat.com>
+
+       test-xalloc-die: avoid spurious failure due to libtool argv difference
+       In a libtool-enabled project, this test would fail due to a difference
+       in the emitted program name, e.g.,
+       -test-xalloc-die: memory exhausted
+       +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
+       Use program to avoid that.
+       * modules/xalloc-die-tests (Depends-on): Add progname.
+       * tests/test-xalloc-die.c: Include progname.h".
+       (program_name): Remove decl.
+       (main): Call set_program_name.
+       * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
+
+2009-11-26  Richard Jones  <rjones@redhat.com>
+
+       w32sock: leave win32 error in place.
+       * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
+
+2009-11-26  Eric Blake  <ebb9@byu.net>
+
+       init.sh: suggest to use skip_ and fail_ functions in comments
+       * tests/init.sh: Add a sentence.
+
+2009-11-25  Bruno Haible  <bruno@clisp.org>
+
+       init.sh: add documentation in comments
+       * tests/init.sh: Add some developer and user documentation.
+
+2009-11-26  Jim Meyering  <meyering@redhat.com>
+
+       init.sh: accommodate even those who specify bogus srcdir manually
+       * tests/init.sh: Normally, srcdir is guaranteed by automake and
+       configure-time tests to be sanitized, so that there is no need to
+       use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
+       (with no double quotes) suffices.  However, since tests may be
+       invoked manually, and since you may explicitly set srcdir to the
+       name of a directory containing spaces, do quote its uses here.
+       * tests/test-pread.sh: Likewise.
+       Suggested by Bruno Haible.
+
+       test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
+       * tests/test-pread.sh: Write no data into the pipe, because
+       test-pread actually reads none.  This avoids a diagnostic,
+       "bash: echo: write error: Broken pipe", that arises in the unusual
+       event something is ignoring SIGPIPE, and might be interpreted
+       as some sort of failure.  Reported by Bruno Haible.
+
+2009-11-25  Jim Meyering  <meyering@redhat.com>
+
+       test-pread: cover failure with ESPIPE and EINVAL
+       * tests/test-pread.c (main): Test for failure, too.
+       * tests/test-pread.sh: Invoke with stdin on a pipe.
+       Suggested by Eric Blake.
+
+       pread: improvement and fix
+       * modules/pread (Depends-on): Depend on lseek, for portability to
+       e.g., mingw.  Suggested by Eric Blake.
+       * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
+
+       unistd.in.h: correct declaration of pread
+       * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
+       Reported by Richard W.M. Jones.
+
+       test-pread.sh: distribute the test script
+       * modules/pread-tests (Files): Include test-pread.sh.
+
+       test-pread.sh: clean up
+       * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
+       * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
+       That is unnecessary, since it's always ".".
+       Suggestion from Eric Blake.
+
+       test-pread.sh: make executable
+       * tests/test-pread.sh: Set executable bit.
+       Reported by Eric Blake.
+
+       correct typo in test-pread.sh
+       * tests/test-pread.sh: Add #! line.
+
+       test pread
+       * tests/test-pread.c: New file.
+       * tests/test-pread.sh: Likewise.
+       * modules/pread-tests: Likewise.
+
+       pread: new module
+       * modules/pread: New file.
+       * lib/unistd.in.h (pread): Define/declare.
+       * lib/pread.c (pread): New file.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
+       * modules/unistd (Makefile.am): Substitute witnesses.
+       * doc/posix-functions/pread.texi (pread): Update.
+       * MODULES.html.sh: Add pread.
+
+2009-11-25  Jim Meyering  <meyering@redhat.com>
+
+       tests/init.sh: new file to be used via most *.sh tests
+       * tests/init.sh: New file.
+
+2009-11-25  Eric Blake  <ebb9@byu.net>
+
+       utimens: work around older Linux failure with symlinks
+       * lib/utimens.c (lutimensat_works_really): New variable.
+       (fdutimens, lutimens): Use it to manage kernels that support
+       nanosecond times on files, but not on symlinks.
+       Reported by Ondřej Vašík.
+
+       utimes: fix configure grammar
+       * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
+
+2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
+
+       regex: Fix fastmap for multibyte character ranges.
+       * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
+       characters when a multibyte character range is included.
+
+2009-11-22  Andy Wingo  <wingo@pobox.com>
+
+       version-etc: work also with AM_INIT_AUTOMAKE's no-define option
+       * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
+
+2009-11-24  Bruno Haible  <bruno@clisp.org>
+
+       doc: Most *_l functions exist in MacOS X 10.5.
+       * doc/posix-functions/duplocale.texi: Update platforms list.
+       * doc/posix-functions/freelocale.texi: Likewise.
+       * doc/posix-functions/newlocale.texi: Likewise.
+       * doc/posix-functions/uselocale.texi: Likewise.
+       * doc/posix-functions/isalnum_l.texi: Likewise.
+       * doc/posix-functions/isalpha_l.texi: Likewise.
+       * doc/posix-functions/isblank_l.texi: Likewise.
+       * doc/posix-functions/iscntrl_l.texi: Likewise.
+       * doc/posix-functions/isdigit_l.texi: Likewise.
+       * doc/posix-functions/isgraph_l.texi: Likewise.
+       * doc/posix-functions/islower_l.texi: Likewise.
+       * doc/posix-functions/isprint_l.texi: Likewise.
+       * doc/posix-functions/ispunct_l.texi: Likewise.
+       * doc/posix-functions/isspace_l.texi: Likewise.
+       * doc/posix-functions/isupper_l.texi: Likewise.
+       * doc/posix-functions/iswalnum_l.texi: Likewise.
+       * doc/posix-functions/iswalpha_l.texi: Likewise.
+       * doc/posix-functions/iswblank_l.texi: Likewise.
+       * doc/posix-functions/iswcntrl_l.texi: Likewise.
+       * doc/posix-functions/iswctype_l.texi: Likewise.
+       * doc/posix-functions/iswdigit_l.texi: Likewise.
+       * doc/posix-functions/iswgraph_l.texi: Likewise.
+       * doc/posix-functions/iswlower_l.texi: Likewise.
+       * doc/posix-functions/iswprint_l.texi: Likewise.
+       * doc/posix-functions/iswpunct_l.texi: Likewise.
+       * doc/posix-functions/iswspace_l.texi: Likewise.
+       * doc/posix-functions/iswupper_l.texi: Likewise.
+       * doc/posix-functions/iswxdigit_l.texi: Likewise.
+       * doc/posix-functions/isxdigit_l.texi: Likewise.
+       * doc/posix-functions/nl_langinfo_l.texi: Likewise.
+       * doc/posix-functions/strcasecmp_l.texi: Likewise.
+       * doc/posix-functions/strcoll_l.texi: Likewise.
+       * doc/posix-functions/strfmon_l.texi: Likewise.
+       * doc/posix-functions/strftime_l.texi: Likewise.
+       * doc/posix-functions/strncasecmp_l.texi: Likewise.
+       * doc/posix-functions/strxfrm_l.texi: Likewise.
+       * doc/posix-functions/tolower_l.texi: Likewise.
+       * doc/posix-functions/toupper_l.texi: Likewise.
+       * doc/posix-functions/towctrans_l.texi: Likewise.
+       * doc/posix-functions/towlower_l.texi: Likewise.
+       * doc/posix-functions/towupper_l.texi: Likewise.
+       * doc/posix-functions/wcscoll_l.texi: Likewise.
+       * doc/posix-functions/wcsxfrm_l.texi: Likewise.
+       * doc/posix-functions/wctrans_l.texi: Likewise.
+       * doc/posix-functions/wctype_l.texi: Likewise.
+       * doc/glibc-functions/strptime_l.texi: Likewise.
+       * doc/glibc-functions/strtod_l.texi: Likewise.
+       * doc/glibc-functions/strtof_l.texi: Likewise.
+       * doc/glibc-functions/strtol_l.texi: Likewise.
+       * doc/glibc-functions/strtold_l.texi: Likewise.
+       * doc/glibc-functions/strtoll_l.texi: Likewise.
+       * doc/glibc-functions/strtoul_l.texi: Likewise.
+       * doc/glibc-functions/strtoull_l.texi: Likewise.
+       * doc/glibc-functions/wcsftime_l.texi: Likewise.
+       * doc/glibc-functions/wcstod_l.texi: Likewise.
+       * doc/glibc-functions/wcstof_l.texi: Likewise.
+       * doc/glibc-functions/wcstol_l.texi: Likewise.
+       * doc/glibc-functions/wcstold_l.texi: Likewise.
+       * doc/glibc-functions/wcstoll_l.texi: Likewise.
+       * doc/glibc-functions/wcstoul_l.texi: Likewise.
+       * doc/glibc-functions/wcstoull_l.texi: Likewise.
+
+2009-11-24  Bruno Haible  <bruno@clisp.org>
+
+       duplocale: Fix logic bug.
+       * lib/duplocale.c: Don't include <langinfo.h>.
+       (_NL_LOCALE_NAME): Remove macro.
+       (rpl_duplocale): Use setlocale instead of nl_langinfo.
+       * tests/test-duplocale.c (main): Also test duplocale after uselocale.
+
+2009-11-23  Jim Meyering  <meyering@redhat.com>
+
+       test-update-copyright: don't hard-code /usr/bin/perl
+       * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
+       perl to print the current year.  Gilles Espinasse reported that
+       the replaced use of perl was hard-coded as /usr/bin/perl.
+
+2009-11-23  Bruno Haible  <bruno@clisp.org>
+
+       duplocale: Add support for glibc 2.3.x.
+       * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Tiny optimization.
+       * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
+       MacOS X.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'duplocale'.
+       * modules/duplocale-tests: New file.
+       * tests/test-duplocale.c: New file.
+
+       New module 'duplocale'.
+       * m4/duplocale.m4: New file.
+       * lib/locale.in.h (duplocale): New declaration.
+       * lib/duplocale.c: New file.
+       * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
+       gl_LOCALE_H_DEFAULTS): New macros.
+       (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
+       gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
+       * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
+       REPLACE_DUPLOCALE.
+       * modules/duplocale: New file.
+       * doc/posix-functions/duplocale.texi: Mention the glibc bug.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       * modules/locale-tests (configure.ac): Test for newlocale function.
+       * tests/test-locale.c: When the system has extended locale functions,
+       verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
+
+       locale: Make locale_t available when possible.
+       * lib/locale.in.h: Include <xlocale.h> when it exists.
+       * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
+       replace <locale.h> if it does not define locale_t but <xlocale.h> does.
+       * modules/locale (Depends-on): Add extensions.
+       (Makefile.am): Also substitute HAVE_XLOCALE_H.
+       * doc/posix-headers/locale.texi: Document the problem with locale_t.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       Add comments.
+       * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
+       invocation.
+       * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
+       * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
+       * m4/wchar.m4 (gl_WCHAR_H): Likewise.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       error: account for the possibility of freopen (stdout).
+       * lib/error.c: Include <unistd.h>.
+       (flush_stdout): New function, extracted from error and error_at_line.
+       Determine stdout's fd dynamically.
+       (error, error_at_line): Invoke flush_stdout.
+       * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
+       * modules/error (Depends-on): Add unistd.
+
 2009-11-22  Bruno Haible  <bruno@clisp.org>
 
        diffseq: Add comment.