X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=f3a5ffb3bca208f0c4e23f06618f1f82f644d76d;hb=e89eb70d8a04eb23eceafe72215f0f757cc99906;hp=c866e5010dd9b0d9c48dd715dd373c23f677126b;hpb=f99e41eda227dac3d35c779d0b9775063d85b561;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index c866e5010..f3a5ffb3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,413 @@ +2010-09-07 Eric Blake + + getopt: handle POSIXLY_CORRECT set but not exported + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing + export state of POSIXLY_CORRECT, due to bash set -o posix. + Reported by Dustin J. Mitchell. + +2010-09-05 Bruno Haible + + gnulib-tool: Highlight the changed options. + * gnulib-tool (func_usage): Display the --import, --add-import, + --remove-import explanations in bold font. + +2010-09-06 Karl Berry + + * doc/gnulib-tool.texi (Modified imports): doc tweaks. + +2010-09-05 Bruno Haible + + uniwidth/width: Update comment. + * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1. + Reported by Emanuele Giaquinta . + +2010-09-05 Bruno Haible + + isinf, isnan: Relax license. + * modules/isinf (License): Change from GPL to LGPL, with consent from + Ben Pfaff. + * modules/isnan (License): Likewise. + Requested by Ludovic Courtès. + +2010-09-04 Bruno Haible + + gnulib-tool: Help migration from --import to --add-import or --update. + * gnulib-tool: Emit a verbose error message when --import is used + without any module name. + +2010-09-04 Bruno Haible + + Update doc about gnulib-tool. + * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs. + 'gnulib-tool --update' in more detail. + Reported by Eric Blake. + +2010-09-04 Bruno Haible + + gnulib-tool: Change --import. New options --add/remove-import. + * gnulib-tool: New options --add-import, --remove-import. + (func_usage): Document them. + (have_associative): Define always. + (func_import): In import mode, don't merge the specified settings with + the cached settings. Implement remove-import mode. + * doc/gnulib-tool.texi (Modified imports): Mention the new options. + Explain when to use them versus --import. + (Simple update): Use --add-import instead of --import. + * NEWS: Mention the change. + +2010-09-04 Bruno Haible + + * doc/gnulib-tool.texi (Initial import): Update paragraph about + separate gnulib.mk. + +2010-09-04 Bruno Haible + + gnulib-tool: Don't talk about CVS any more. + * gnulib-tool (func_usage, func_import): Write "version control" + instead of CVS. + +2010-09-04 Jim Meyering + + maint.mk: avoid obscure sc_copyright_check failure in coreutils + * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid + false positives (whose names may be ill-chosen) when searching + non-VC'd files. Otherwise, a file named "a b/lib/version-etc.c" + would cause a false-positive. + + avoid coreutils "make distcheck" failure + Coreutils tests with an absolute build directory name that contains + a space. Not quoting this directory name caused a failure. + * tests/test-vc-list-files-git.sh: Quote PATH dir name. + * tests/test-vc-list-files-cvs.sh: Likewise. + +2010-09-04 Bruno Haible + + gnulib-tool: Avoid error when run in a package without Makefile.am. + * gnulib-tool: When collecting the m4dirs in a package that does not + have a Makefile.am, eliminate those directories that contain no + gnulib-cache.m4. Fix expression that counts these directories. + +2010-09-04 Bruno Haible + + update-copyright test: Improve output when perl is missing or too old. + * tests/test-update-copyright.sh: Move test of Perl version down after + the test whether Perl exists. Provide an explanation relating Perl's + error message to Automake's SKIP: message. + +2010-09-04 Bruno Haible + + Don't augment PATH in TESTS_ENVIRONMENT. + * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT, + set abs_aux_dir instead of augmenting PATH. + * modules/vc-list-files-tests (Makefile.am): Likewise. + * tests/test-update-copyright.sh: Augment PATH here. + * tests/test-vc-list-files-cvs.sh: Augment PATH here, through + path_prepend_. + * tests/test-vc-list-files-git.sh: Likewise. + +2010-09-04 Jim Meyering + + tests: prohibit augmenting PATH via TESTS_ENVIRONMENT + * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule. + +2010-09-04 Bruno Haible + + strdup: Fix compilation error in C++ mode. + * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine + the macro. + +2010-09-04 Bruno Haible + + dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX. + * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the + macro into a function. + Reported by Jarno Rajahalme . + +2010-09-04 Bruno Haible + + Set PATH_SEPARATOR the same way autoconf does. + * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine + the value of PATH_SEPARATOR the same way autoconf-generated configure + scripts do. + * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise. + * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise. + +2010-09-04 Stefano Lattarini (tiny change) + + Set PATH_SEPARATOR the same way autoconf does. + * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR + the same way autoconf-generated configure scripts do. + * posix-modules: Likewise. + +2010-09-02 Paul Eggert + + hash: fix safe_hasher const typo + * lib/hash.c (safe_hasher): Result is pointer, not pointer to + const; otherwise, there is a type error later. + +2010-09-02 Jim Meyering + + test-update-copyright.sh: require perl 5.8.0 + * tests/test-update-copyright.sh: Require 5.8.0, + which Tom G. Christensen has confirmed is adequate, + while 5.6.1 is not. + +2010-09-02 Eric Blake + + tests: init.sh improvements for re-exec'ing with zsh + * tests/init.sh: Borrow autoconf POSIX-mode sanitization. Pass + -vx through shell re-exec. + Reported by Tom G. Christensen. + + wctype: fix typo in previous commit + * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling. + Reported by Ludovic Courtès. + +2010-09-02 Jim Meyering + + test-update-copyright.sh: skip test if Perl is too old + * tests/test-update-copyright.sh: Exit 77 if Perl is too old. + Reported by Tom G. Christensen. + +2010-09-02 Bruno Haible + + wctype: Avoid compilation error on IRIX 6.5.30. + * lib/wctype.in.h (iswblank): Declare with a replacement if + REPLACE_ISWBLANK is set. + * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is + declared. Set REPLACE_ISWBLANK. + * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK. + * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem. + * doc/posix-headers/wctype.texi: Likewise. + Reported by Tom G. Christensen . + +2010-09-01 Bruno Haible + + New module 'socketlib'. + * modules/socketlib: New file. + * m4/socketlib.m4: New file, extracted from m4/sockets.m4. + * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB. + * modules/sockets (Depends-on): Add socketlib. + Suggested by Sam Steingold . + +2010-09-01 Paul Eggert + + fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable + + POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used + when one needs search access to a directory but not read access. + On systems where it is available, it works in some cases where + O_RDONLY does not, namely on directories that are searchable but + not readable, and which need only to be searchable. If O_SEARCH + is not available, fall back to the traditional method of using + O_RDONLY. + + * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined. + * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY, + when opening a directory that needs only to be searchable. + * lib/chdir-safer.c (chdir_no_follow): Likewise. + * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise. + * lib/openat-proc.c (openat_proc_name): Likewise. + * lib/openat.c (openat_needs_fchdir): Likewise. + * lib/save-cwd.c (save_cwd): Likewise. + * lib/savewd.c (savewd_save, savewd_chdir): Likewise. + +2010-08-28 Bruno Haible + + New module 'host-cpu-c-abi'. + * modules/host-cpu-c-abi: New file. + * m4/host-cpu-c-abi.m4: New file, based on part of + clisp/src/m4/general.m4. + Requested by Sam Steingold . + +2010-08-31 Eric Blake + and Jim Meyering + + hash: factor, and guard against misbehaving hasher function + * lib/hash.c (safe_hasher): New function, to encapsulate the checking + of table->hasher's return value. Also protect against a hash value + so large that adding it to table->bucket results in a NULL pointer. + (hash_lookup, hash_get_next, hash_find_entry, transfer_entries): + Use it in place of open-coded check-and-abort. + +2010-08-30 Bruno Haible + + hash: silence spurious clang warning + * lib/hash.c (hash_get_next): Remove unnecessary test against NULL. + Reported by Eric Blake. + +2010-08-30 Eric Blake + + strstr, memmem, strcasestr: avoid leaked shell message + * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from + FreeBSD. + * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise. + * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise. + + tests: silence clang warning + * tests/test-malloca.c (do_allocation): Avoid dead store. + +2010-08-29 Bruno Haible + + gettext: Fix recent mistake. + * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26. + +2010-08-29 Bruno Haible + + selinux-h: Offer a --without-selinux option. + * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If + --without-selinux was specified, skip all tests and define + HAVE_SELINUX_SELINUX_H to 0. + (gl_LIBSELINUX): Offer --without-selinux option. If it is specified, + set LIB_SELINUX to empty. + * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require + gl_LIBSELINUX. If --without-selinux was specified, replace + selinux/context.h. + Reported by Johan Hattne . + +2010-08-29 Ralf Wildenhues + Bruno Haible + + Make the module 'realloc-gnu' work again on AIX and OSF/1. + * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead + of HAVE_REALLOC. + * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when + GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU. + (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition. + * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR. + +2010-08-29 Ralf Wildenhues + Bruno Haible + + Make the module 'calloc-gnu' work again on AIX and OSF/1. + * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of + HAVE_CALLOC. + * lib/xmalloc.c: Update accordingly. + * lib/calloc.c (NEED_CALLOC_GNU): Enable also when + GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU. + * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR. + +2010-08-29 Ralf Wildenhues + Bruno Haible + + Make the module 'malloc-gnu' work again on AIX and OSF/1. + * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of + HAVE_MALLOC. + * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when + GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU. + * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR. + +2010-08-29 Bruno Haible + + Update modules list. + * MODULES.html.sh (Memory management functions ): Add + malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc. + (String handling ): Add astrxfrm. + (File system functions): Add readlinkat. + +2010-08-28 Ralf Wildenhues + + Tests for module 'realloc-gnu'. + * modules/realloc-gnu-tests: New file. + * tests/test-realloc-gnu.c: New file. + + Tests for module 'calloc-gnu'. + * modules/calloc-gnu-tests: New file. + * tests/test-calloc-gnu.c: New file. + + Tests for module 'malloc-gnu'. + * modules/malloc-gnu-tests: New file. + * tests/test-malloc-gnu.c: New file. + +2010-08-28 Bruno Haible + + Rename module 'realloc' -> 'realloc-gnu'. + * modules/realloc-gnu: New file, copied from modules/realloc. + * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as + obsolete. + * modules/mgetgroups (Depends-on): Update. + * doc/posix-functions/realloc.texi: Update. + * NEWS: Mention the change. + + Rename module 'calloc' -> 'calloc-gnu'. + * modules/calloc-gnu: New file, copied from modules/calloc. + * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as + obsolete. + * doc/posix-functions/calloc.texi: Update. + * NEWS: Mention the change. + + Rename module 'malloc' -> 'malloc-gnu'. + * modules/malloc-gnu: New file, copied from modules/malloc. + * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as + obsolete. + * modules/argp (Depends-on): Update. + * modules/regex (Depends-on): Update. + * doc/posix-functions/malloc.texi: Update. + * NEWS: Mention the change. + +2010-08-28 Eric Blake + + pread, pwrite: add missing dependency + * modules/pread (Depends-on): Add extensions. + * modules/pwrite (Depends-on): Likewise. + +2010-08-28 Bruno Haible + + unistr/u*-strchr: Fix tests dependencies. + * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8. + * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16. + Reported by Ian Beckwith . + +2010-08-28 Bruno Haible + + read-file: Don't occupy too much unused memory. + * lib/read-file.c (fread_file): Shrink the buffer at the end. + +2010-08-28 Giuseppe Scrivano + Eric Blake + Bruno Haible + + read-file: Avoid memory reallocations with regular files. + * lib/read-file.c: Include , , . + (fread_file): With regular files, use the remaining length as the + initial buffer size. Check against overflow. + * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint, + sys_stat. + +2010-08-28 Bruno Haible + + ftello: Relax license. + * modules/ftello (License): Relax to LGPLv2+. + Reported by Eric Blake. + +2010-08-28 Bruno Haible + + Avoid relocwrapper link errors due to gnulib replacement functions. + * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd + function. + Reported by Ben Pfaff . + +2010-08-28 Bruno Haible + + Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib. + * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is + defined. + * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise. + Suggested by Eric Blake. + +2010-08-28 Bruno Haible + + sys_socket, netdb: Ensure socklen_t gets defined. + * modules/sys_socket (Depends-on): Add socklen. + * modules/netdb (Depends-on): Likewise. + * modules/getaddrinfo (Depends-on): Remove socklen. + * modules/getsockopt (Depends-on): Likewise. + * modules/setsockopt (Depends-on): Likewise. + * tests/test-sys_socket.c: Check that socklen_t is defined. + * tests/test-netdb.c: Likewise. + * m4/socklen.m4: Update comments. + Reported by Ralf Wildenhues . + 2010-08-27 Eric Blake login_tty: add missing dependency