X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=2449e0093ac75c93fdf8595b10778c294a50249d;hb=dc14031ee642f973cc7a96968d822d6f8c5f1bb2;hp=d85e99aac7b1800fbd9ed24a66a108fe6ea5f49c;hpb=2c0e4c5dc88b2161bd53617a02c36e87954c7b5e;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index d85e99aac..2449e0093 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,559 @@ +2012-02-04 Bruno Haible + + nonblocking-socket tests: Fix a NULL program name in a diagnostic. + * tests/test-nonblocking-socket-main.c: Include progname.h. + (main): Invoke set_program_name. + * modules/nonblocking-socket-tests (Depends-on): Add progname. + + nonblocking-pipe tests: Fix a NULL program name in a diagnostic. + * tests/test-nonblocking-pipe-main.c: Include progname.h. + (main): Invoke set_program_name. + * modules/nonblocking-pipe-tests (Depends-on): Add progname. + +2012-02-04 Eric Blake + + canonicalize-lgpl: fix // handling + * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //. + + canonicalize: fix // handling + * lib/canonicalize.c (canonicalize_filename_mode): Don't convert + /// to //, since only // is special. + +2012-02-04 Bruno Haible + + ioctl: Fix test failure on native Windows. + * lib/ioctl.c: Include msvc-nothrow.h. + (primary_ioctl): If fd is not a valid handle, set errno to EBADF. + +2012-02-04 Bruno Haible + + fsync: Avoid test failure on native Windows. + * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely + read-only. + +2012-02-04 Bruno Haible + + sys_select: Avoid syntax error on OpenBSD 5.0. + * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is + currently being included, just include the system's . + +2012-02-04 Bruno Haible + + sys_select: Avoid syntax error on OpenBSD 5.0. + * lib/sys_select.in.h: Include only after the include_next + , not before. + Reported by Jiri B . + +2012-02-04 Bruno Haible + + get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7. + * tests/test-get-rusage-as.c (main): Assign the malloc() results to + global variables. + * tests/test-get-rusage-data.c (main): Likewise. + Reported by Jim Meyering. + +2012-02-04 Bruno Haible + + stdioext: Fix last commit. + * lib/fwritable.c [EPLAN9]: Include . + +2012-02-03 Bruno Haible + + stdioext: Add tentative support for Plan9. + * lib/stdio-impl.h: Include . + * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code. + * lib/freadable.c (freadable): Likewise. + * lib/fwritable.c (fwritable): Likewise. + * lib/fbufmode.c (fbufmode): Likewise. + * lib/freading.c (freading): Likewise. + * lib/fwriting.c (fwriting): Likewise. + * lib/freadptr.c (freadptr): Likewise. + * lib/freadseek.c (freadptrinc): Likewise. + * lib/freadahead.c (freadahead): Likewise. + * lib/fpurge.c (fpurge): Likewise. + * lib/fseeko.c (rpl_fseeko): Likewise. + * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9. + Reported by Jens Staal . + +2012-02-02 Jim Meyering + + file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const + * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs) + would evoke a new gcc warning. Given all of the #ifdefs, it is better + not even to try to add the attribute. Instead, add a pragma to suppress + the suggestion/warning. + +2012-01-31 Karl Berry + + setstate doc: typo. + * doc/posix-functions/setstate.texi (setstate): { not (. + +2012-01-31 Bruno Haible + + popen: Make more robust on Windows. + * lib/popen.c: On native Windows, use the _popen based code even if + HAVE_POPEN is set. + * doc/posix-functions/popen.texi: Mention necessity of COMSPEC + environment variable on native Windows. + +2012-01-30 Bruno Haible + + pclose: Fix typo. + * lib/stdio.in.h (pclose): Fix typo in warning message. + +2012-01-30 Bruno Haible + + doc about getlogin_r, setstate. + * doc/posix-functions/getlogin_r.texi: List the incompatible + declaration problem under "not fixed by gnulib". + * doc/posix-functions/setstate.texi: Mention incompatible declaration + problem on Solaris 11 and other platforms. + +2012-01-30 Chuanchang Jia (tiny change) + Bruno Haible + + poll tests: Make test more robust. + * tests/test-poll.c: Include macros.h. + (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify + return value of various I/O operations. + * modules/poll-tests (Files): Add tests/macros.h. + +2012-01-30 Bruno Haible + + sys_stat: Fix support for mingw64 and MSVC. + * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system + header files already do it. + (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not + stat itself. + Reported by Marc-André Lureau . + +2012-01-30 Bruno Haible + + wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0. + * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0. + * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug. + +2012-01-29 Bruno Haible + + quotearg: Fix test failure on MacOS X 10.5. + * tests/test-quotearg-simple.c: Include localcharset.h. + (main): If the locale encoding is not ASCII, bypass the tests of + locale_quoting_style and clocale_quoting_style. + * modules/quotearg-tests (Depends-on): Add 'localcharset'. + +2012-01-29 Jim Meyering + + maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive + * top/maint.mk (sc_prohibit_canonicalize_without_use): Also + detect uses of canonicalize_file_name. + +2012-01-28 Bruno Haible + + test-framework-sh: Fix test failure with AIX 7.1 diff. + * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space + in column 1, like 'diff -c' does. + * tests/test-init.sh (test_compare): Don't repeat the test from init.sh + whether 'diff -u' is used. Instead, test whether the output contains + some '@' character. + +2012-01-28 Paul Eggert + + strtoimax: eliminate need for stdint.h, inttypes.h checks + * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use + gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H. This reduces + the prerequisites for a recently-introduced strtoimax test. + I guess this might cause strtoimax to be replaced when not + strictly necessary on older hosts, but this shouldn't introduce + any bugs and it should make Emacs 'configure' faster on typical + modern hosts. Problem discovered when importing the latest gnulib + to an Emacs test version. + * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4. + +2012-01-28 Bruno Haible + + sys_time: Override 'struct timeval' on some native Windows platforms. + * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec + has the right type. Set REPLACE_STRUCT_TIMEVAL if not. + (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL. + * lib/sys_time.in.h: Include also when 'struct timeval' + needs to be overridden. + (timeval): Override if REPLACE_STRUCT_TIMEVAL is set. + * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL. + * tests/test-sys_select.c: Check that the tv_sec member has the same + size as a 'time_t'. + * tests/test-sys_time.c: Likewise. + * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL + is set, set also REPLACE_GETTIMEOFDAY. + * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden, + convert the resulting 'struct timeval' before returning. + * lib/select.c: Include . + (select, timeval): Undefine at the right place. + * modules/select (Depends-on): Add sys_time. + * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on + some Windows platforms. + Reported by Marc-André Lureau . + +2012-01-28 Marc-André Lureau (tiny change) + + accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64. + * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to + an integer. + * lib/fcntl.c (dupfd): Likewise. + * lib/w32sock.h (SOCKET_TO_FD): Likewise. + +2012-01-28 Bruno Haible + + fcntl: Avoid compilation error on native Windows. + * modules/fcntl (Depends-on): Add 'close'. + +2012-01-28 Marc-André Lureau (tiny change) + + select, poll, isatty: Avoid warnings on x86_64 mingw64. + * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle + pointer to an integer. + * lib/poll.c (IsConsoleHandle): Likewise. + * lib/isatty.c (IsConsoleHandle): Likewise. + +2012-01-28 Jim Meyering + + doc: clarify README-release + * top/README-release: Clarify: you should make a point to have + the latest stable versions of build tools in your PATH, and the + reference to buildreq is solely for its list of tool names, not + for its minimal-functional version numbers. + Prompted by discussion with Reuben Thomas and Gary V. Vaughan. + + maint.mk: use more readable (yet functionally equivalent) quoting + It is common to quote a single quote in a single quoted string like + this: '...'\''...'. Unless you know the idiom, that looks like + gibberish, so prefer to double-quote the string when possible. + Then you can use a more readable, lone single quote: "...'..." + * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this + "don't" is more readable than the equivalent 'don'\''t'. + (sc_cast_of_x_alloc_return_value): Likewise. + (sc_cast_of_alloca_return_value): Likewise. + (sc_makefile_path_separator_check): Similar: use ":" in '...', + rather than '\'':'\''. + +2012-01-27 Paul Eggert + + stdalign: relax _Alignof and tighten _Alignas test + * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test, + as it was too strict: alignof must divide offsetof, but it need + not equal offsetof. Inspired by Joseph S. Myers's comment + . + Conversely, tighten the _Alignas test a bit, as the resulting + alignment must be exactly 8. + +2012-01-27 Bruno Haible + + stdalign: Document the last change. + * doc/posix-headers/stdalign.texi: Mention GCC bug 52023. + +2012-01-27 Paul Eggert + + stdalign: check that alignof and offsetof are consistent + * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023. + Problem reported for gnulib by Richard W.M. Jones in + . + +2012-01-27 Jim Meyering + + update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2 + * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2, + convert a sequence with gaps to the minimal containing range. + For example, convert 2000, 2004-2007, 2009 to 2000-2009. + * tests/test-update-copyright.sh: Test for this. + The FSF confirmed it is ok to do this, assuming there is at + least one significant change per year in the affected range: + http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860 + +2012-01-26 Bruno Haible + + pipe2: refine doc about thread-safety + * doc/glibc-functions/pipe2.texi: Clarify the extent of the + multithread-safety problem. + * doc/glibc-functions/accept4.texi: Likewise. + +2012-01-26 Bruno Haible + + posix_spawn_file_actions_addopen: Fix 2012-01-08 commit. + * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): + In the test program, include , for O_RDONLY. + +2012-01-26 Eric Blake + + pipe2: document lack of thread-safety in replacement + * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety + issue in replacement. + * doc/glibc-functions/accept4.texi (accept4): Likewise. + Based on a report by Eric Wong. + +2012-01-24 Marc-André Lureau (tiny change) + Bruno Haible + + malloca: Avoid warnings on x86_64 mingw64. + * lib/malloca.c: Include . + (mmalloca, freea): Use uintptr_t to convert pointers to integers. + * modules/malloca (Depends-on): Add stdint. + * modules/relocatable-prog-wrapper (Depends-on): Likewise. + +2012-01-25 Paul Eggert + + obstack: remove __STDC__ conditionals + * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph + S. Myers in . + This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in + m4/include_next.m4 as the only gnulib-maintained places that still + refer to __STDC__. + +2012-01-24 Bruno Haible + + havelib: Modern quoting. + * build-aux/config.rpath: Quote 'like this', not `like this', as per + the recent change to the GNU coding standards. + +2012-01-24 Bruno Haible + + stdint: Improve support for Android. + * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__. + Reported by Simon Josefsson . + +2012-01-23 Paul Eggert + + doc: omit trailing empty lines from INSTALL etc. + * doc/Makefile (INSTALL): Omit trailing empty lines. + (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also + omit trailing empty lines. This simplifies the build procedure. + +2012-01-23 Jim Meyering + + tests: avoid spurious warnings about gl_sockets_startup + Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value + would warn about every use of "gl_sockets_startup (SOCKETS_1_1);" + reporting a "statement with no effect". + * tests/test-accept.c (main): Mark as "(void)". + * tests/test-accept4.c (main): Likewise. + * tests/test-bind.c (main): Likewise. + * tests/test-connect.c (main): Likewise. + * tests/test-getpeername.c (main): Likewise. + * tests/test-getsockname.c (main): Likewise. + * tests/test-getsockopt.c (main): Likewise. + * tests/test-listen.c (main): Likewise. + * tests/test-recv.c (main): Likewise. + * tests/test-recvfrom.c (main): Likewise. + * tests/test-send.c (main): Likewise. + * tests/test-sendto.c (main): Likewise. + * tests/test-setsockopt.c (main): Likewise. + * tests/test-shutdown.c (main): Likewise. + +2012-01-21 Bruno Haible + + locale-fr.m4: Fix for Android. + * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation + failure of the test program on Bionic libc. + +2012-01-21 Jim Meyering + + bootstrap: fail when bootstrap_post_import_hook fails + Otherwise, it's far too easy to miss diagnostics emitted + between gnulib-tool's output and that of running configure. + * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails. + +2012-01-17 Jim Meyering + + maint: enable sc_trailing_blank + * build-aux/pmccabe.css: Remove trailing blanks. + * doc/acl-cygwin.txt: Likewise. + * doc/gnu-oids.texi: Likewise + * cfg.mk: Enable sc_trailing_blank. + Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual. + +2012-01-17 Jim Meyering + + maint: enable sc_prohibit_openat_without_use + * cfg.mk: Enable sc_prohibit_openat_without_use. + Exempt lib/selinux-at.c. + +2012-01-17 Jim Meyering + + maint: enable sc_prohibit_cloexec_without_use + * cfg.mk: Enable sc_prohibit_cloexec_without_use. + * lib/dup-safer-flag.c: Don't include "cloexec.h". Not needed. + +2012-01-17 Jim Meyering + + maint: enable sc_prohibit_intprops_without_use + * cfg.mk: Enable sc_prohibit_intprops_without_use + * tests/test-nanosleep.c: Don't include "intprops.h". Not needed. + +2012-01-17 Jim Meyering + + maint: enable sc_prohibit_hash_pjw_without_use + * cfg.mk: Enable sc_prohibit_hash_pjw_without_use. + * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp + to match any use of \, i.e., not necessarily with a + following " (". + +2012-01-17 Jim Meyering + + maint: enable double-word-prohibiting rule + * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word. + Exempt three files. + +2012-01-17 Jim Meyering + + maint: remove empty lines at EOF, but excluding modules/* + Apply syntax rules at home as well as abroad. Most changes + were induced by running this: + make srcdir=. _build-aux=build-aux -f top/maint.mk \ + sc_prohibit_empty_lines_at_EOF | grep -v modules/ \ + | xargs perl -pi -0777 -e 's/\n\n+$/\n/' + * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF. + Exempt modules/* and two binary files. + Also exempt doc/INSTALL*, per request from Bruno Haible. + * doc/regexprops-generic.texi: *Add* a newline at EOF. There was none. + * doc/Copyright/assign.translation.manual: Remove empty lines at EOF. + * doc/Copyright/request-assign.future: Likewise. + * doc/Copyright/request-disclaim.changes: Likewise. + * doc/INSTALL: Likewise. + * doc/INSTALL.ISO: Likewise. + * doc/INSTALL.UTF-8: Likewise. + * doc/acl-cygwin.txt: Likewise. + * doc/acl-resources.txt: Likewise. + * doc/fdl-1.2.texi: Likewise. + * doc/fdl-1.3.texi: Likewise. + * doc/fdl.texi: Likewise. + * lib/argp-pin.c: Likewise. + * lib/round.c: Likewise. + * lib/unicase/u16-totitle.c: Likewise. + * lib/unictype/block_test.c: Likewise. + * lib/uninorm/canonical-decomposition.c: Likewise. + * m4/README: Likewise. + * m4/relocatable-lib.m4: Likewise. + * tests/test-isnand-nolibm.c: Likewise. + * tests/test-isnand.c: Likewise. + * tests/uninorm/NormalizationTest.txt: Likewise. + +2012-01-17 Jim Meyering + + maint: add framework to run syntax-check rules against gnulib sources + * cfg.mk: New file, to disable all currently-failing tests. + We'll enable them one by one, as they are made to pass. + * Makefile (sc_maint): New rule. + +2012-01-21 Bruno Haible + + stdint: Add support for Android. + * lib/stdint.in.h: When included from Bionic , just + include the system's . + Reported by Simon Josefsson . + +2012-01-19 Jim Meyering + + bootstrap: add bootstrap_post_import_hook + Bison does still need something like the gnulib_mk_hook whose + invocation I had to remove along with slurp in commit 767ccd40. + Technically, we could get along without it, but doing so would + have required living with a warning and a mandatory post-bootstrap + automake rerun. + * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too. + (bootstrap_post_import_hook): New function. + Invoke it after gnulib-tool --import and before autoreconf. + +2012-01-18 Jim Meyering + + gitlog-to-changelog: don't use "no_"-prefixed variable name + * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute + to enable both --cluster and --no-cluster. Change variable name, + s/\$no_cluster/$cluster/, and reverse usage to match. + + gitlog-to-changelog: use "||", not "or" in expressions + * build-aux/gitlog-to-changelog (main): Use "||", not "or" in + expressions. + +2012-01-17 Joel E. Denny + + gitlog-to-changelog: new option --no-cluster + * build-aux/gitlog-to-changelog: New option --no-cluster, disables + clustering of adjacent commit messages. + +2012-01-17 Jim Meyering + + maint: spell file systems with two words, not one + * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with + two words, not one. + +2012-01-16 Jim Meyering + + bootstrap: add a FIXME comment to ensure we eventually remove the hack + * build-aux/bootstrap (gnulib_tool_options): Add comment. + +2012-01-16 Eric Blake + + bootstrap: cater to autoconf 2.59 + * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive + is not available. + + bootstrap: properly check for libtool + * build-aux/bootstrap (libtoolize): Also run libtool when older + usage is detected. + +2012-01-15 Bruno Haible + + Improve support for MSVC 9. + * lib/unistd.in.h: Include when needed to avoid redefinition + clashes on MSVC. + * lib/fcntl.in.h: Likewise. + * lib/stdlib.in.h: Likewise. + * lib/sys_stat.in.h: Likewise. + +2011-01-15 Stefano Lattarini + + gnupload: we hold the master copy of this script now + For motivation and more information, see: + + * build-aux/gnupload: Make it clear in the heading comments that the + master copy of this file is maintained by gnulib. Since we are at + it, bump its copyright year and ... + ($scriptversion): ... the date in its version. + ($usage): Patches and bug reports should be sent to the gnulib list, + not the automake one. + * config/srclist.txt: Don't try to sync 'gnupload' from automake + anymore. + +2012-01-15 Bruno Haible + + Fix module 'random'. + * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom, + initstate, setstate are declared. + +2012-01-14 Bruno Haible + + Tests for module 'random'. + * modules/random-tests: New file. + * tests/test-random.c: New file, based on tests/test-random_r.c. + + New module 'random'. + * lib/stdlib.in.h (random, srandom, initstate, setstate): New + declarations. + * lib/random.c: New file, based on glibc/stdlib/random.c. + * m4/random.m4: New file. + * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM, + HAVE_RANDOM. + * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM. + * modules/random: New file. + * config/srclist.txt: Add an entry for random.c. + * doc/posix-functions/random.texi: Mention the 'random' module. + * doc/posix-functions/initstate.texi: Likewise. + * doc/posix-functions/setstate.texi: Likewise. + * doc/posix-functions/srandom.texi: Likewise. + 2012-01-12 Bruno Haible + random_r: Use common idioms. + * lib/random_r.c: Include first. + random_r: Override incompatible API on AIX, OSF/1. * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r): Override the system function if REPLACE_RANDOM_R is 1.