X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=7b6394d0e62d0408a1eb6ffa82e674cc84d3cd6c;hb=75ce01c4382e5acf45599baaade587f78ddfa956;hp=91f1cf153ab8a34f217d2def98c6731e605b0232;hpb=6092793de4f40942ebab22cc146de2de2ecb275f;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 91f1cf153..7b6394d0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,293 @@ +2010-06-11 Jim Meyering + + 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 + + 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 + + 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 + + test-inttostr: avoid warnings about 4-6KB literal strings + * tests/test-inttostr.c: Don't use . 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 for use of strcmp + * tests/test-inttostr.c: Include for strcmp declaration. + + test-linkat: avoid failed assertion on "other" architectures + * tests/test-linkat.c: Include , 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 + + 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 + + Replacement header templates are now named with ".in", not "_". + * doc/gnulib-intro.texi: Correct. + +2010-06-10 Jim Meyering + + 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 + + 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 + Bruno Haible + + 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 + + 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 . + +2010-06-09 Bruno Haible + + 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 . + +2010-06-04 Bruno Haible + + 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 + Bruno Haible + + 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 + + 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 + + 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 + + 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 + + * doc/posix-functions/strcoll.texi: Mention Solaris limitation. + Reported by River Tarnell via Eric Blake. + +2010-06-04 Bruno Haible + + Update to GNU gettext 0.18.1. + * modules/gettext (configure.ac): Require gettext infrastructure from + version 0.18.1. + +2010-06-03 Bruno Haible + + 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 + + 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 + + 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 . + (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 + + Reduce dependencies. + * modules/acl (Depends-on): Add gettext-h. Remove gettext. + +2010-06-03 Bruno Haible + + 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 + + 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 . + +2010-06-02 Eric Blake + + 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 + , when needed. + (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros + from the library. + +2010-05-31 Bruno Haible + + 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 . + +2010-05-27 Jim Meyering + + 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 maint.mk: avoid echo -e - * top/maint.mk (gzip_rsyncable): Convert all uses of echo -* to - printf. + * 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