X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=9cdd83a51c5bbb7887bf7f21752b355ee291ba70;hb=64ee0bacb33ac4112f353a0d0771ff4f497d8fe3;hp=59cec392f9ff57b3589a69810297be4f9ccd8273;hpb=584308368830f70c1b7b4b129d82457f7a9ca24f;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 59cec392f..9cdd83a51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,569 @@ +2010-04-25 Bruno Haible + + ttyname_r: Make it work on Solaris 10. + * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R + if the system function has the POSIX declaration. Test whether the + function fails if the buffer is less than 128 bytes large. + * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the + system's ttyname_r function. Provide a reasonably large buffer. + * modules/ttyname_r (Depends-on): Add extensions. + * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem. + +2010-04-25 Bruno Haible + + Use the 'extensions' module for some more functions on Solaris. + * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions' + module. + * doc/posix-functions/ctime_r.texi: Likewise. + * doc/posix-functions/getgrgid_r.texi: Likewise. + * doc/posix-functions/getgrnam_r.texi: Likewise. + * doc/posix-functions/getpwnam_r.texi: Likewise. + * doc/posix-functions/getpwuid_r.texi: Likewise. + * doc/posix-functions/readdir_r.texi: Likewise. + * doc/posix-functions/sigwait.texi: Likewise. + * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment. + * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed. + +2010-04-25 Bruno Haible + + ttyname_r: Make it work on MacOS X 10.4 and Solaris 10. + * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function + has the POSIX declaration. Set REPLACE_TTYNAME_R if not. + * lib/ttyname_r.c: Include . + (ttyname_r): Define using the system's ttyname_r function, if it exists + and not on Solaris. + * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is + set. + * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R. + * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R. + * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed. + Reported by Simon Josefsson. + +2010-04-25 Bruno Haible + + Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris. + * doc/posix-functions/asctime_r.texi: Mention the Solaris problem. + * doc/posix-functions/ctime_r.texi: Likewise. + * doc/posix-functions/getgrgid_r.texi: Likewise. + * doc/posix-functions/getgrnam_r.texi: Likewise. + * doc/posix-functions/getlogin_r.texi: Likewise. + * doc/posix-functions/getpwnam_r.texi: Likewise. + * doc/posix-functions/getpwuid_r.texi: Likewise. + * doc/posix-functions/readdir_r.texi: Likewise. + * doc/posix-functions/sigwait.texi: Likewise. + * doc/posix-functions/ttyname_r.texi: Likewise. + Reported by Simon Josefsson. + +2010-04-25 Bruno Haible + + gnulib-tool: Don't include hairy tests of dependencies in testdirs. + * gnulib-tool (func_usage): Document that --with-*-tests options apply + also to --create-testdir. + (func_acceptable): Don't consider the status of *-tests modules here. + (func_modules_transitive_closure): Consider it here, before including a + test module. + (func_import, func_create_testdir): Set inc_all_direct_tests, + inc_all_indirect_tests. + * doc/gnulib.texi (Extra tests modules): Document new behaviour of + --create-testdir and --create-megatestdir. + +2010-04-25 Bruno Haible + + gnulib-tool: Add --without-*-tests options. + * gnulib-tool (func_usage): Document the --without-*-tests options. + (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests, + excl_unportable_tests): New variables. + Fail if they are specified with --import or --update. + (func_acceptable): Respect the excl_*_tests variables. + (func_import): Set the excl_*_tests variables to empty. + +2010-04-25 Simon Josefsson + Bruno Haible + + Work around a MacOS X 10.4 bug with openpty. + * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug. + * tests/test-openpty.c (main): Close the master side explicitly. + +2010-04-25 Bruno Haible + + strnlen: Fix a C++ test error on MacOS X and Solaris. + * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if + the function is not declared. + Reported by Jarno Rajahalme and + Simon Josefsson. + +2010-04-24 Bruno Haible + + Avoid a gcc warning. + * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument + of correct type for %08lx directive. + Reported by Eric Blake. + +2010-04-24 Bruno Haible + + vasnprintf: Correct errno value in case of out-of-memory. + * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF + or sprintf. Use the errno value from SNPRINTF or sprintf. + Reported by Ian Beckwith . + +2010-04-24 Bruno Haible + + ansi-c++-opt: Find correct compiler when cross-compiling. + * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of + AC_CHECK_PROGS. + Reported by Simon Josefsson. + +2010-04-24 Giuseppe Scrivano + + vc-list-files: Add support for subversion + * build-aux/vc-list-files: Use "svn list" to generate the list of + files controlled by subversion. + +2010-04-23 Jim Meyering + + vc-list-files tests: convert to use init.sh + * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and + path_prepend_. + Use Exit, not exit. + Use skip_ rather than open coding it. + Remove trap set-up and compare definitions. + * tests/test-vc-list-files-git.sh: Likewise. + * modules/vc-list-files-tests (Files): Add tests/init.sh. + +2010-04-22 Simon Josefsson + + * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in + backup files. + +2010-04-21 Simon Josefsson + + * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx. + +2010-04-20 Eric Blake + + tests: be robust to ignored SIGPIPE + * tests/test-select-in.sh: Consume all output. + * tests/test-lseek.sh: Check correct exit status, while avoiding + EPIPE. + +2010-04-20 Simon Josefsson + Bruno Haible + + visibility: Don't use -fvisibility if it leads to a warning. + * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If + yes, don't pretend that visibility works if it leads to a warning. + Reported by Mike Gran . + +2010-04-20 Andreas Gruenbacher + + * build-aux/bootstrap: Use "git -h" for testing for supported options + instead of "git --help". The short-form option only shows a summary, + and doesn't layout the full man page. Grep for the full option name + in the summary, too. + +2010-04-19 Bruno Haible + + relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am. + * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP. + * doc/relocatable-maint.texi (Supporting Relocation): Remove the + mention of RELOCATABLE_STRIP. + Reported by Sylvain Beucler . + +2010-04-19 Bruno Haible + + * lib/diffseq.h: Fix typo in comment. + Reported by Eric Blake. + +2010-04-19 Bruno Haible + + ioctl: Move autoconf macro to a .m4 file. + * m4/ioctl.m4: New file, extracted from modules/ioctl. + * modules/ioctl (Files): Add it. + (configure.ac): Simply invoke gl_FUNC_IOCTL. + Reported by Ian Beckwith . + +2010-04-18 Andreas Gruenbacher + Bruno Haible + + diffseq: Accommodate use-case with abstract arrays. + * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT + is not defined. + (diag, compareseq): Remove local variables xv, yv if ELEMENT is not + defined. Use local macro XREF_YREF_EQUAL instead of EQUAL. + +2010-04-18 Bruno Haible + + * doc/posix-headers/stdbool.texi: More precise wording. + +2010-04-17 Jim Meyering + + maint.mk: use gnu-style indentation in an embedded perl script + * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting. + Rename variable: s/two/last_two_bytes/ + +2010-04-16 Eric Blake + + test-stdbool: skip test that fails with Solaris CC + * tests/test-stdbool.c (f): Skip test that causes compilation + error under buggy C++ compiler. + * lib/stdbool.in.h: Document the limitation. + * doc/posix-headers/stdbool.texi (stdbool.h): Likewise. + + setenv: allow compilation with C++ + * lib/setenv.c (__add_to_environ): Add a cast. Also, drop use of + register keyword. + + stdint: allow test to pass with C++ + * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc. + + getopt: allow compilation with C++ + * lib/getopt_int.h (__ordering): Hoist enum declaration outside + struct. + * lib/getopt.c (_getopt_internal_r): Use correct type. + Reported by Dagobert Michelson, via Joel E. Denny. + +2010-04-16 Bruno Haible + + Override netdb.h always. + * modules/netdb (Makefile.am): Augment BUILT_SOURCES always. + * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H. + Reported by Ludovic Courtès . + +2010-04-15 Bruno Haible + + openpty: Fix mistake from 2010-03-21. + * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists. + Reported by Simon Josefsson. + +2010-04-15 Eric Blake + + test-forkpty: fix expected signature + * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const. + Reported by Simon Josefsson. + +2010-04-15 Jim Meyering + + maint.mk: texinfo_suffix_re_: correct the default regexp + * top/maint.mk (texinfo_suffix_re_): Fix default regexp. + + * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and + make it configurable via texinfo_suffix_re_. + +2010-04-14 Eric Blake + + strtok_r: relax license to LGPLv2+ + * modules/strtok_r (License): Relax license. + Reported by Matthias Bolte. + +2010-04-14 Simon Josefsson + + * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to + version 1.4.4 by default instead of requiring the libgcrypt + version used during build. This makes it possible to use the + application with older but still binary compatible libgcrypt + versions. + +2010-04-13 Eric Blake + + getopt-gnu: match recent glibc fixes and posix ruling + * tests/test-getopt.h (test_getopt): Strengthen tests of leading + '+' handling, when requesting extensions. + * tests/test-getopt_long.h (test_getopt_long): Strengthen test of + 'W;' handling. + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug. + * doc/posix-functions/getopt.texi (getopt): Document this. + * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise. + * doc/glibc-functions/getopt_long_only.texi (getopt_long_only): + Likewise. + + getopt: merge bug fixes from glibc + * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;' + diagnostics. Honor '+:' correctly. Reject ';'. + + getopt-posix: detect MacOS bug + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of + optind when missing a required argument. + * doc/posix-functions/getopt.texi (getopt): Document the bug. + * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise. + * doc/glibc-functions/getopt_long_only.texi (getopt_long_only): + Likewise. + + getopt-posix: avoid spurious failure on Solaris + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as + an indicator that setting optind=1 is sufficient for reset. + + getopt-posix: avoid spurious failure on FreeBSD + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even + in POSIX mode, since the m4 test uses it. + + gnulib-tool: silence warning on BSD sh + * gnulib-tool: Avoid leaking warning about unknown 'declare'. + +2010-04-13 Jim Meyering + + doc: users.txt: GNU patch now uses gnulib + * users.txt: Add patch. + +2010-04-12 Jim Meyering + + maint.mk: generate more concise timing data for syntax-check rules + * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and + " done" from each line that reports a syntax-check test duration. + +2010-04-12 Andreas Gruenbacher + + git-version-gen: use "git update-index..." rather than "git status" + * build-aux/git-version-gen: Use git update-index --refresh, not + "git status". With some versions of git, "git status" would fail + to update the index and result in an unwarranted "-dirty" suffix. + +2010-04-11 Jim Meyering + + openat: correct formatting (no semantic change) + * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE. + Suggested by Bruno Haible. + +2010-04-11 Bruno Haible + + Stricter declaration checking in testdirs. + * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): + If for_tests is true, augment AM_CPPFLAGS to define + GNULIB_STRICT_CHECKING. + * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When + GNULIB_STRICT_CHECKING is defined, verify that the function is + declared. + +2010-04-11 Paolo Bonzini + Bruno Haible + + libunistring: Improve configure output. + * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first. + Don't say "consider installing GNU libunistring" when checking again + with libiconv. + +2010-04-11 Bruno Haible + + libunistring: Correct value of $LTLIBUNISTRING. + * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv, + correct the value of $LTLIBUNISTRING. + +2010-04-11 Bruno Haible + + havelib: Add static libraries to LIBS in the right order. + * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no + -l options, prepend it to $LIBS, instead of appending it to $LIBS. + +2010-04-11 Bruno Haible + + libunistring: Detect libunistring also when it depends on libiconv. + * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before + the second AC_LIB_HAVE_LINKFLAGS invocation. + +2010-04-11 James Youngman + + close-stream: declare local scalars to be "const" + * lib/close-stream.c (close_stream): Make boolean variables const + to document the fact that we set but do not change them. + +2010-04-11 Bruno Haible + + * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment. + +2010-04-11 Jim Meyering + + maint.mk: don't include dist-check.mk + * top/maint.mk: Remove bogus include directive. + + maint.mk: improve empty-line-at-EOF check + * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based + solution, rather than tail+Perl-based one. The latter would read + a few kilobytes from the end of each file, and did not handle empty + files properly. + + maint.mk: print the elapsed time for each syntax-check rule + * top/maint.mk (sc_m_rules_): Save start time in a file. + (sc_z_rules_): New rules: remove temp file and print elapsed time. + (local-check): Interpose the .z rules + +2010-04-11 Jim Meyering + + maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file + * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an + empty file with one that ends in an empty line. + +2010-04-10 Bruno Haible + + mkdir: Make it work on mingw64. + * lib/sys_stat.in.h: Include together with . + * lib/mkdir.c: Update comment. + Reported by Roman Donchenko (Роман Донченко) . + +2010-04-10 Bruno Haible + + Don't override improved macro from newer autoconf. + * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for + autoconf >= 2.62. + Reported by Joel E. Denny . + +2010-04-10 Jim Meyering + + maint.mk: new syntax-check rule: prohibit empty lines at end of file + * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule. + + maint.mk: correct a diagnostic + * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re + in diagnostic; now use $prohibit. + +2010-04-10 Bruno Haible + + fchownat: Fix a C++ test error on Solaris 8. + * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if + the function does not exist. + +2010-04-10 Bruno Haible + + vasnprintf: Add more tests. + * tests/test-vasnprintf-posix.c: Include . + (test_function): Test converting an invalid wide string. + + vasnprintf: Correct handling of unconvertible wide string arguments. + * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from + VASNPRINTF. + (VASNPRINTF): Use it. After snprintf failed, allocate more memory only + if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is + smaller than the expected maximum need for the directive. Set errno to + EILSEQ, not EINVAL, when the directive is 'c' or 's'. + (local_strnlen, local_wcslen, local_wcsnlen): Update conditions. + * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and + gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99. + * modules/vasnprintf (Files): Add m4/printf.m4. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix crash in %ls directive. + * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide + string is passed as argument to %ls, with no precision and no width. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix multiple test failures on mingw. + * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not + _snprintf, or snwprintf, not _snwprintf. + +2010-04-10 Bruno Haible + + write: Fix a C++ test error on mingw. + * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST. + +2010-04-10 Bruno Haible + + vasnprintf test: Reduce code duplication. + * tests/test-vasnprintf.c (test_function): New function, extracted from + test_vasnprintf. + (test_vasnprintf, test_asnprintf): Invoke it. + +2010-04-10 Bruno Haible + + strnlen: Fix warning in C++ mode on MacOS X. + * lib/string.in.h (strnlen): Use the modern idiom. + * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of + defining strnlen as a macro already in . + * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize + REPLACE_STRNLEN. + * modules/string (Makefile.am): Substitute REPLACE_STRNLEN. + Reported by Jarno Rajahalme . + +2010-04-08 James Youngman + + * doc/manywarnings.texi (manywarnings): Add missing parenthesis in + the example. + +2010-04-09 Jim Meyering + + maint.mk: print better diagnostic when there is no $(_hv_file) + * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and + announce that when $(_hv_file) (aka help-version) does not exist. + + init.sh: run tr in the "C" locale to avoid multibyte interpretation + * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does + not try to interpret its random input bytes. Jarno Rajahalme reported + that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence". + on Darwin 10.3.0 with LC_CTYPE=UTF-8. + (mktempd_): Likewise, just in case. + + ftruncate: add two years to projected module removal date: 2012 + * m4/ftruncate.m4: Adjust comments. + + ftruncate: mark module as obsolete; even MinGW provides it, now + * modules/ftruncate (Status): Obsolete. + (Notice): Say that. + * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it. + http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203 + +2010-04-08 Bruno Haible + + Fix side effects from tests-related modules. + * modules/dprintf-posix (Comment): New section. + * modules/fprintf-posix (Comment): Likewise. + * modules/obstack-printf-posix (Comment): Likewise. + * modules/printf-posix (Comment): Likewise. + * modules/snprintf-posix (Comment): Likewise. + * modules/sprintf-posix (Comment): Likewise. + * modules/vasnprintf-posix (Comment): Likewise. + * modules/vasprintf-posix (Comment): Likewise. + * modules/vdprintf-posix (Comment): Likewise. + * modules/vfprintf-posix (Comment): Likewise. + * modules/vprintf-posix (Comment): Likewise. + * modules/vsnprintf-posix (Comment): Likewise. + * modules/vsprintf-posix (Comment): Likewise. + * modules/xprintf-posix (Comment): Likewise. + * modules/xvasprintf-posix (Comment): Likewise. + * modules/ceilf-tests (Depends-on): Remove fprintf-posix. + * modules/floorf-tests (Depends-on): Likewise. + * modules/round-tests (Depends-on): Likewise. + * modules/roundf-tests (Depends-on): Likewise. + * modules/trunc-tests (Depends-on): Likewise. + * modules/truncf-tests (Depends-on): Likewise. + * tests/test-ceilf2.c (check): Don't invoke fprintf if the + 'fprintf-posix' module is not present. + * tests/test-floorf2.c (check): Likewise. + * tests/test-trunc2.c (check): Likewise. + * tests/test-truncf2.c (check): Likewise. + * tests/test-round2.c (equal): Likewise. + Reported by Jarno Rajahalme . + +2010-04-07 Karl Berry + + * config/srclist.txt, + * config/srclistvars.sh, + * config/srclist-update: doc fixes. + +2010-04-07 Jim Meyering + + maint.mk: add a PATH crosschecking syntax-check rule + * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule. + Useful if you use a test like the one in help-version (coreutils, + diffutils, grep, gzip) that ensures $(VERSION) matches what is + printed by prog --version. + +2010-04-06 Bruno Haible + + Fix link error on mingw. + * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET. + * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise. + +2010-04-06 Bruno Haible + + Assume rmdir exists. + * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program. + +2010-04-06 Giuseppe Scrivano + + doc: update users.txt + * users.txt: Add gcal. + 2010-04-06 Jim Meyering init.sh: simply unset TMPDIR rather than risking env -i