Fix compilation error on most platforms.
[gnulib.git] / ChangeLog
index ec484dc..7f09e84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,291 @@
+2009-12-30  Bruno Haible  <bruno@clisp.org>
+
+       Fix compilation error on most platforms.
+       * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
+       Reported by Simon Josefsson <simon@josefsson.org>
+       and Nelson H. F. Beebe <beebe@math.utah.edu>.
+
+2009-12-30  Eric Blake  <ebb9@byu.net>
+
+       futimens, utimensat: work around ntfs-3g bug
+       * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
+       a ctime bug is present, and expand workaround to cover ntfs-3g.
+       * lib/utimens.c (fdutimens, lutimens): Likewise.
+       (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
+       (validate_timespec): Adjust return value.
+       * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
+       * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
+       Reported by ctrn3e8 <ctrn3e8@gmail.com>.
+
+2009-12-29  Eric Blake  <ebb9@byu.net>
+
+       link-warning: make usage consistent
+       * modules/ctype (Depends-on): Add link-warning.
+       (Makefile.am): Update rules accordingly.
+       * modules/langinfo (Depends-on, Makefile.am): Likewise.
+       * modules/locale (Depends-on, Makefile.am): Likewise.
+       * modules/sys_file (Makefile.am): Likewise.
+       * modules/getopt-posix (Makefile.am): Delete unused link warning
+       efforts.
+       * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
+       * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
+       * lib/locale.in.h (GL_LINK_WARNING): Likewise.
+       * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
+
+       stdio: remove unused variables
+       * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
+       * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
+       * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
+
+       tests: test more substitute headers
+       * modules/ctype-tests: New file.
+       * modules/dirent-tests: Likewise.
+       * modules/spawn-tests: Likewise.
+       * modules/sys_file-tests: Likewise.
+       * modules/sys_ioctl-tests: Likewise.
+       * modules/sys_wait-tests: Likewise.
+       * tests/test-ctype.c: Likewise.
+       * tests/test-dirent.c: Likewise.
+       * tests/test-spawn.c: Likewise.
+       * tests/test-sys_file.c: Likewise.
+       * tests/test-sys_ioctl.c: Likewise.
+       * tests/test-sys_wait.c: Likewise.
+       * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
+       * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
+       whether or not flock is in use.
+
+       tests: remove License section from module
+       * modules/arpa_inet-tests: Remove unneeded section.
+       * modules/byteswap-tests: Likewise.
+       * modules/ceilf-tests: Likewise.
+       * modules/ceill-tests: Likewise.
+       * modules/crypto/des-tests: Likewise.
+       * modules/crypto/gc-arcfour-tests: Likewise.
+       * modules/crypto/gc-arctwo-tests: Likewise.
+       * modules/crypto/gc-des-tests: Likewise.
+       * modules/crypto/gc-hmac-md5-tests: Likewise.
+       * modules/crypto/gc-hmac-sha1-tests: Likewise.
+       * modules/crypto/gc-md2-tests: Likewise.
+       * modules/crypto/gc-md4-tests: Likewise.
+       * modules/crypto/gc-md5-tests: Likewise.
+       * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
+       * modules/crypto/gc-rijndael-tests: Likewise.
+       * modules/crypto/gc-sha1-tests: Likewise.
+       * modules/crypto/gc-tests: Likewise.
+       * modules/crypto/md2-tests: Likewise.
+       * modules/crypto/md4-tests: Likewise.
+       * modules/fcntl-h-tests: Likewise.
+       * modules/floorf-tests: Likewise.
+       * modules/floorl-tests: Likewise.
+       * modules/frexp-nolibm-tests: Likewise.
+       * modules/frexp-tests: Likewise.
+       * modules/frexpl-nolibm-tests: Likewise.
+       * modules/frexpl-tests: Likewise.
+       * modules/getaddrinfo-tests: Likewise.
+       * modules/inttypes-tests: Likewise.
+       * modules/isfinite-tests: Likewise.
+       * modules/isinf-tests: Likewise.
+       * modules/ldexpl-tests: Likewise.
+       * modules/locale-tests: Likewise.
+       * modules/math-tests: Likewise.
+       * modules/netdb-tests: Likewise.
+       * modules/netinet_in-tests: Likewise.
+       * modules/printf-frexp-tests: Likewise.
+       * modules/printf-frexpl-tests: Likewise.
+       * modules/priv-set-tests: Likewise.
+       * modules/random_r-tests: Likewise.
+       * modules/round-tests: Likewise.
+       * modules/roundf-tests: Likewise.
+       * modules/roundl-tests: Likewise.
+       * modules/search-tests: Likewise.
+       * modules/select-tests: Likewise.
+       * modules/signal-tests: Likewise.
+       * modules/stdbool-tests: Likewise.
+       * modules/stddef-tests: Likewise.
+       * modules/stdint-tests: Likewise.
+       * modules/stdio-tests: Likewise.
+       * modules/stdlib-tests: Likewise.
+       * modules/string-tests: Likewise.
+       * modules/strings-tests: Likewise.
+       * modules/sys_select-tests: Likewise.
+       * modules/sys_socket-tests: Likewise.
+       * modules/sys_stat-tests: Likewise.
+       * modules/sys_time-tests: Likewise.
+       * modules/sys_utsname-tests: Likewise.
+       * modules/sysexits-tests: Likewise.
+       * modules/time-tests: Likewise.
+       * modules/trunc-tests: Likewise.
+       * modules/truncf-tests: Likewise.
+       * modules/truncl-tests: Likewise.
+       * modules/tsearch-tests: Likewise.
+       * modules/unistd-tests: Likewise.
+       * modules/wchar-tests: Likewise.
+       * modules/wctype-tests: Likewise.
+
+       tests: fix license on several tests
+       * tests/test-des.c: Update to GPLv3+.
+       * tests/test-flock.c: Likewise.
+       * tests/test-fsync.c: Likewise.
+       * tests/test-futimens.h: Likewise.
+       * tests/test-gc-arcfour.c: Likewise.
+       * tests/test-gc-arctwo.c: Likewise.
+       * tests/test-gc-des.c: Likewise.
+       * tests/test-gc-hmac-md5.c: Likewise.
+       * tests/test-gc-hmac-sha1.c: Likewise.
+       * tests/test-gc-md2.c: Likewise.
+       * tests/test-gc-md4.c: Likewise.
+       * tests/test-gc-md5.c: Likewise.
+       * tests/test-gc-pbkdf2-sha1.c: Likewise.
+       * tests/test-gc-rijndael.c: Likewise.
+       * tests/test-gc-sha1.c: Likewise.
+       * tests/test-gc.c: Likewise.
+       * tests/test-getcwd.c: Likewise.
+       * tests/test-link.c: Likewise.
+       * tests/test-link.h: Likewise.
+       * tests/test-lutimens.h: Likewise.
+       * tests/test-md2.c: Likewise.
+       * tests/test-md4.c: Likewise.
+       * tests/test-mkdir.h: Likewise.
+       * tests/test-rename.c: Likewise.
+       * tests/test-rename.h: Likewise.
+       * tests/test-safe-alloc.c: Likewise.
+       * tests/test-utimens-common.h: Likewise.
+       * tests/test-utimens.h: Likewise.
+
+       maint: sync license texts
+       * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
+       * doc/gpl-3.0.texi: Revert copyright year update.
+       * doc/lgpl-3.0.texi: Likewise.
+
+2009-12-29  Jim Meyering  <meyering@redhat.com>
+
+       update nearly all FSF copyright year lists to include 2009
+       The files named by the following are exempted:
+           grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
+             test -f "$dst" && { echo "$dst"; continue; }
+             test -d "$dst" || continue
+             echo "$dst"/$(basename "$src")
+           done > exempt
+           git ls-files tests/unictype >> exempt
+       In the remaining files, convert to all-interval notation if
+       - there is already at least one year interval like 2000-2003
+       - the file is maintained by me
+       - the file is in lib/uni*/, where that style already prevails
+       Otherwise, use update-copyright's default.
+
+2009-12-29  Simon Josefsson  <simon@josefsson.org>
+       and Eric Blake  <ebb9@byu.net>
+
+       tests: don't require debug system() to pass
+       * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
+       * tests/test-rmdir.h (test_rmdir_func): Likewise.
+       * tests/test-unlink.h (test_unlink_func): Likewise.
+       * tests/test-fstatat.c (main): ...into callers.
+       * tests/test-lstat.c (main): Likewise.
+       * tests/test-rmdir.c (main): Likewise.
+       * tests/test-unlink.c (main): Likewise.
+       * tests/test-unlinkat.c (main): Likewise.
+       * tests/test-areadlink-with-size.c (main): Don't require a
+       debug-only system call to pass, aiding cross-testing to mingw.
+       * tests/test-areadlink.c (main): Likewise.
+       * tests/test-areadlinkat-with-size.c (main): Likewise.
+       * tests/test-areadlinkat.c (main): Likewise.
+       * tests/test-canonicalize-lgpl.c (main): Likewise.
+       * tests/test-canonicalize.c (main): Likewise.
+       * tests/test-chown.c (main): Likewise.
+       * tests/test-fchownat.c (main): Likewise.
+       * tests/test-lchown.c (main): Likewise.
+       * tests/test-fdutimensat.c (main): Likewise.
+       * tests/test-futimens.c (main): Likewise.
+       * tests/test-link.c (main): Likewise.
+       * tests/test-linkat.c (main): Likewise.
+       * tests/test-mkdir.c (main): Likewise.
+       * tests/test-mkdirat.c (main): Likewise.
+       * tests/test-mkfifo.c (main): Likewise.
+       * tests/test-mkfifoat.c (main): Likewise.
+       * tests/test-mknod.c (main): Likewise.
+       * tests/test-readlink.c (main): Likewise.
+       * tests/test-remove.c (main): Likewise.
+       * tests/test-rename.c (main): Likewise.
+       * tests/test-renameat.c (main): Likewise.
+       * tests/test-symlink.c (main): Likewise.
+       * tests/test-symlinkat.c (main): Likewise.
+       * tests/test-utimens.c (main): Likewise.
+       * tests/test-utimensat.c (main): Likewise.
+
+2009-12-29  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
+       on $(UNUSED_PARAMETER_H) to avoid build failure.
+
+2009-12-28  Jim Meyering  <meyering@redhat.com>
+
+       update-copyright: you may specify a max. line length other than 72
+       * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
+
+       maint: use consistent FSF copyright line syntax
+       * lib/posixtm.c: Add missing comma in FSF copyright line.
+       * lib/posixtm.h: Likewise.
+       * lib/getugroups.c: Add missing ", Inc.".
+
+       pmccabe2html: emit consistent FSF copyright; remove trailing blanks
+       * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
+       FSF copyright line.  Remove trailing blanks.
+
+2009-12-28  Eric Blake  <ebb9@byu.net>
+
+       test-dup2: reduce dependencies
+       * modules/cloexec (Configure.ac): Set witness.
+       * modules/dup2-tests (Depends-on): Drop cloexec.
+       * tests/test-dup2.c (main): Skip portion of test if cloexec module
+       not present.
+       Suggested by Bruno Haible.
+
+2009-12-26  Bruno Haible  <bruno@clisp.org>
+
+       Remove an unneeded dependency.
+       * modules/fseterr (Depends-on): Remove dup2.
+
+2009-12-26  Eric Blake  <ebb9@byu.net>
+
+       tests: use macros.h in more places
+       * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
+       (ASSERT_STREAM): Provide default of stderr.
+       * tests/test-dirent-safer.c: Include macros.h, using alternate
+       stream for assertions.
+       * tests/test-dup-safer.c: Likewise.
+       * tests/test-freopen-safer.c: Likewise.
+       * tests/test-getopt.c: Likewise.
+       * tests/test-openat-safer.c: Likewise.
+       * tests/test-pipe.c: Likewise.
+       * tests/test-popen-safer.c: Likewise.
+       * modules/dirent-safer-tests (Files): Include macros.h.
+       * modules/unistd-safer-tests (Files): Likewise.
+       * modules/freopen-safer-tests (Files): Likewise.
+       * modules/getopt-posix-tests (Files): Likewise.
+       * modules/openat-safer-tests (Files): Likewise.
+       * modules/pipe-tests (Files): Likewise.
+
+2009-12-26  Bruno Haible  <bruno@clisp.org>
+
+       javacomp: Portability fix.
+       * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
+       that it also works on Solaris.
+
+2009-12-26  Bruno Haible  <bruno@clisp.org>
+
+       localename: Fix storage allocation of gl_locale_name_thread's result.
+       * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
+       HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
+       all platforms that have 'uselocale'.
+       (gl_locale_name_thread_unsafe): New function, extracted from
+       gl_locale_name_thread.
+       (gl_locale_name_thread): Call struniq on all platforms that have
+       'uselocale'.
+       * tests/test-localename.c (test_locale_name_thread): Check that the
+       resulting strings are permanently allocated.
+       * modules/localename-tests (Depends-on): Add strdup.
+
 2009-12-26  Bruno Haible  <bruno@clisp.org>
 
        * tests/test-localename.c (categories): Fill in the strings.