gnulib-tool: Change --import. New options --add/remove-import.
[gnulib.git] / ChangeLog
index 97f40d8..11684bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,383 @@
+2010-09-04  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       * doc/gnulib-tool.texi (Initial import): Update paragraph about
+       separate gnulib.mk.
+
+2010-09-04  Bruno Haible  <bruno@clisp.org>
+
+       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  <meyering@redhat.com>
+
+       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  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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  <meyering@redhat.com>
+
+       tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
+       * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
+
+2010-09-04  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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 <jarno.rajahalme@nsn.com>.
+
+2010-09-04  Bruno Haible  <bruno@clisp.org>
+
+       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  <stefano.lattarini@gmail.com>  (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  <eggert@cs.ucla.edu>
+
+       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  <meyering@redhat.com>
+
+       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  <eblake@redhat.com>
+
+       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  <meyering@redhat.com>
+
+       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  <bruno@clisp.org>
+
+       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 <tgc@jupiterrise.com>.
+
+2010-09-01  Bruno Haible  <bruno@clisp.org>
+
+       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 <sds@gnu.org>.
+
+2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <bruno@clisp.org>
+
+       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 <sds@gnu.org>.
+
+2010-08-31  Eric Blake  <eblake@redhat.com>
+       and Jim Meyering  <meyering@redhat.com>
+
+       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  <bruno@clisp.org>
+
+       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  <eblake@redhat.com>
+
+       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  <bruno@clisp.org>
+
+       gettext: Fix recent mistake.
+       * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
+
+2010-08-29  Bruno Haible  <bruno@clisp.org>
+
+       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 <johan.hattne@utsouthwestern.edu>.
+
+2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       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 <Ralf.Wildenhues@gmx.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       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 <Ralf.Wildenhues@gmx.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       Update modules list.
+       * MODULES.html.sh (Memory management functions <stdlib.h>): Add
+       malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
+       (String handling <string.h>): Add astrxfrm.
+       (File system functions): Add readlinkat.
+
+2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       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  <bruno@clisp.org>
+
+       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  <eblake@redhat.com>
+
+       pread, pwrite: add missing dependency
+       * modules/pread (Depends-on): Add extensions.
+       * modules/pwrite (Depends-on): Likewise.
+
+2010-08-28  Bruno Haible  <bruno@clisp.org>
+
+       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 <ianb@erislabs.net>.
+
+2010-08-28  Bruno Haible  <bruno@clisp.org>
+
+       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  <gscrivano@gnu.org>
+            Eric Blake  <eblake@redhat.com>
+            Bruno Haible  <bruno@clisp.org>
+
+       read-file: Avoid memory reallocations with regular files.
+       * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
+       (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  <bruno@clisp.org>
+
+       ftello: Relax license.
+       * modules/ftello (License): Relax to LGPLv2+.
+       Reported by Eric Blake.
+
+2010-08-28  Bruno Haible  <bruno@clisp.org>
+
+       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 <blp@cs.stanford.edu>.
+
+2010-08-28  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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 <Ralf.Wildenhues@gmx.de>.
+
+2010-08-27  Eric Blake  <eblake@redhat.com>
+
+       login_tty: add missing dependency
+       * modules/login_tty (Depends-on): Add pty.
+
 2010-08-26  Eric Blake  <eblake@redhat.com>
 
+       lib-symbol-versions: fix m4 quoting
+       * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
+       format for AC_LINK_IFELSE.
+
+       glob: fix compile test
+       * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
+
        btowc: fix missing file
        * modules/btowc (Files): Also ship locale-fr.m4.