added missing dependencies to fix failing unistr/ tests
[gnulib.git] / ChangeLog
index e2c0d06..20a5adc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,341 @@
+2010-08-17  Eric Blake  <eblake@redhat.com>
+
+       test-stddef: test for (some) offsetof bugs
+       * tests/test-stddef.c: Enhance test to ensure correct type of
+       offsetof.
+       * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
+       that we are not fixing at this time.
+
+2010-08-15  Bruno Haible  <bruno@clisp.org>
+
+       stpncpy: Allow stpncpy to be defined as a macro.
+       * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
+       if it's already correctly declared.
+       * lib/string.in.h (stpncpy): Undefine before redefining.
+       Reported by Jeremy Huddleston <jeremyhu@macports.org>.
+
+2010-08-14  Bruno Haible  <bruno@clisp.org>
+
+       Rename module 'memxfrm' to 'amemxfrm'.
+       * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
+       (amemxfrm): Renamed from memxfrm.
+       * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
+       (amemxfrm): Renamed from memxfrm.
+       * modules/amemxfrm: Renamed from modules/memxfrm. Update.
+       * NEWS: Mention the change.
+       * MODULES.html.sh (String handling <string.h>): Update.
+       * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
+       * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
+       * lib/unicase/u16-casexfrm.c: Likewise.
+       * lib/unicase/u32-casexfrm.c: Likewise.
+       * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
+       * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
+       * lib/uninorm/u16-normxfrm.c: Likewise.
+       * lib/uninorm/u32-normxfrm.c: Likewise.
+       * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
+       memxfrm.
+       * modules/unicase/u16-casexfrm (Depends-on): Likewise.
+       * modules/unicase/u32-casexfrm (Depends-on): Likewise.
+       * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
+       * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
+       * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
+       Suggested by Paul Eggert.
+
+2010-08-14  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'astrxfrm'.
+       * modules/astrxfrm-tests: New file.
+       * tests/test-astrxfrm.c: New file.
+
+       New module 'astrxfrm'.
+       * lib/astrxfrm.h: New file.
+       * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
+       * modules/astrxfrm: New file.
+
+2010-08-14  Reuben Thomas <rrt@sc3d.org>
+
+       regex: Tweak doc.
+       * doc/regex.texi (Overview): Don't mention regex.c.
+       (GNU Regular Expression Compiling): Likewise.
+       (Match-end-of-line Operator): Mention 'not_eol'.
+
+2010-08-14  Brian Gough  <bjg@gnu.org>
+            Bruno Haible  <bruno@clisp.org>
+
+       git-merge-changelog: add doc relating to use with bzr and hg.
+       * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
+
+2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
+
+       pthread: fix pthread.h creation for srcdir != builddir
+       * modules/pthread (Makefile.am): Fix the rule to work also in a
+       non-srcdir build.
+
+2010-08-13  Karl Berry  <karl@gnu.org>
+
+       * doc/regex.texi (Predefined Syntaxes): @smallexample.
+       * doc/posix-*/*: force line break before @url of POSIX
+       specifications.
+       Suggested by Werner Lemberg.
+
+2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       strtod: fix const diagnostic
+       * lib/strtod.c (strtod): Don't assign const char * to char *,
+       as this elicits a warning from GCC when warnings are enabled.
+
+2010-08-10  Pádraig Brady <P@draigbrady.com>
+       and Eric Blake  <eblake@redhat.com>
+
+       copy-acl: ignore ENOTSUP on HP-UX
+       * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
+       so that it is available for HP-UX.
+       * lib/copy-acl.c (qcopy_acl): Use it.
+       Reported by Patrick M. Callahan.
+
+2010-08-10  Eric Blake  <eblake@redhat.com>
+
+       open, chown: relax license
+       * modules/open (License): Change to LGPLv2+, with consent by all
+       authors, for use in augeas.
+       * modules/chown (License): Likewise.
+       * modules/lchown (Likewise): Likewise.
+       Requested by Adam Stokes.
+
+2010-08-09  Karl Berry  <karl@gnu.org>
+
+       * build-aux/ar-lib: new file, import from Automake.
+       * config/srclist.txt: autocheck for updates.
+
+2010-08-09  Eric Blake  <eblake@redhat.com>
+
+       readlinkat: adjust client modules
+       * modules/areadlinkat (Depends-on): Use readlinkat, not
+       symlinkat.
+       * modules/areadlinkat-with-size (Depends-on): Likewise.
+
+       mknod: be more vocal about danger of running tests as root
+       * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
+       root, since that is just asking for problems.
+       Suggested by Bruno Haible, based on a report by Rainer Tammer.
+
+       readlinkat: split into its own module
+       * modules/symlinkat: Split readlinkat...
+       * modules/readlinkat: ...into separate module.
+       * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
+       * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
+       * lib/symlinkat.c (readlinkat): Move...
+       * lib/readlinkat.c: ...into new file.
+       * modules/symlinkat-tests: Split readlinkat test...
+       * modules/readlinkat-tests: ...into separate module.
+       * tests/test-symlinkat.c: Split...
+       * tests/test-readlinkat.c: ...into new file.
+       * NEWS: Document the split.
+       * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
+       * lib/unistd.in.h (readlinkat): Likewise.
+       Suggested by Bruno Haible.
+
+2010-08-08  Bruno Haible  <bruno@clisp.org>
+
+       memxfrm: Speed up.
+       * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
+       that usually only one call to strxfrm is necessary for each string
+       part.
+       Reported by Paul Eggert <eggert@cs.ucla.edu>.
+
+2010-08-07  Karl Berry  <karl@gnu.org>
+
+       * doc/posix-headers/limits.texi,
+       * doc/posix-functions/malloc.texi,
+       * doc/posix-functions/strsignal.texi: missing @item.
+       * doc/ld-version-script.texi: spurious leading i.
+       * doc/regex.texi (Interval Operators): no commas inside @var.
+
+2010-08-01  Bruno Haible  <bruno@clisp.org>
+
+       Integrate the regex documentation.
+       * doc/gnulib.texi: Define 'cn' index.
+       (Regular expressions): New a chapter that includes regex.texi and
+       regexprops-generic.texi.
+       * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
+       syntax.
+
+       Whitespace cleanup.
+       * doc/regex.texi: Remove trailing spaces.
+
+       Add regex documentation.
+       * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
+       http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
+       Written by Kathy A. Hargreaves and Karl Berry.
+
+2010-08-01  Bruno Haible  <bruno@clisp.org>
+
+       link: Update documentation.
+       * doc/posix-functions/link.texi: Update regarding Solaris.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       Update modules list.
+       * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
+       (String handling <string.h>): Add memcmp2, memxfrm.
+       (Container data structures): Add xlist, xsublist, xoset.
+       (Core language properties): Add alignof, unused-parameter.
+       (Process control, Numeric conversion functions <stdlib.h>): Renamed
+       from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
+       (Unibyte characters <ctype.h>): New section.
+       (String handling <string.h>): New section.
+       (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
+       atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
+       fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
+       modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
+       tan, tanh, tanl, y0, y1, yn.
+       (Support for systems lacking POSIX:2008): Add alphasort, dirent,
+       dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
+       grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
+       ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
+       unlockpt, vdprintf, vdprintf-posix.
+       (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
+       (File system functions): Add concat-filename, sys_file, sys_ioctl,
+       xconcat-filename.
+       (File descriptor based Input/Output): Add dup3, fd-safer-flag,
+       getdtablesize, pipe2, pipe2-safer.
+       (Security): New section.
+       (Networking functions): Add accept4.
+       (Signal handling): Add sigpipe.
+       (Internationalization functions): Add xstriconveh, mbmemcasecmp,
+       mbmemcasecoll.
+       (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
+       unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
+       (Executing programs): Add findprog-lgpl, pipe-filter-gi,
+       pipe-filter-ii.
+       (Misc): Add argp-version-etc, login_tty, parse-duration.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       Improve doc in MODULES.html.
+       * modules/linkat (Description): Add the word "function".
+       * modules/mkfifo (Description): Likewise.
+       * modules/mknod (Description): Likewise.
+       * modules/remove (Description): Likewise.
+       * modules/renameat (Description): Likewise.
+       * modules/stat (Description): Likewise.
+       * modules/symlink (Description): Likewise.
+       * modules/unlink (Description): Likewise.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
+       * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
+       option --enable/disable-c++ instead of --enable/disable-cxx.
+       * NEWS: Mention the change.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       readlink, areadlink: Relax test a bit.
+       * tests/test-readlink.h (test_readlink): Accept EINVAL as an
+       alternative to ENOTDIR.
+       * tests/test-areadlink.h (test_areadlink): Likewise.
+       Reported by Rainer Tammer.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
+       * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
+       character, perform the search using U_STRCHR.
+       * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
+       * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
+       * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
+       * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
+       Suggested by Paolo Bonzini.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       unistr/u*-strstr: Fix dependencies.
+       * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
+       * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
+       * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
+       * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
+       the beginning of the loop.
+       * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
+       cases in 'switch' statement.
+
+       unistr/u8-strchr: Fix several bugs.
+       * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
+       the string. When not found, return NULL, not a pointer near the end.
+
+       More tests for unistr/u8-strchr.
+       * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
+       that the function does not read past the first occurrence of the byte
+       being searched.
+       * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
+       * tests/unistr/test-u16-strchr.c (main): New function.
+       * tests/unistr/test-u32-strchr.c (main): New function.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       posix-modules: Ignore backup files of documentation files.
+       * posix-modules: grep only through files named *.texi.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       symlinkat: Fix documentation.
+       * doc/posix-functions/readlinkat.texi: Fix module name.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       fchownat: Replace also when chown has the trailing slash bug.
+       * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
+       outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
+       introduced on 2010-04-10.
+       Reported by Rainer Tammer.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       linkat: Work around AIX 7.1 bug.
+       * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
+       whether linkat handles trailing slash correctly. If not, replace linkat
+       and define LINKAT_TRAILING_SLASH_BUG.
+       * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
+       check whether (fd1,file1) points to a directory if file1 or file2 ends
+       in a slash. Code taken from lib/link.c.
+       * doc/posix-functions/linkat.texi: Mention trailing slash bug.
+       Reported by Rainer Tammer.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       Correctly determine whether pow is available in libc on AIX 7 with xlc.
+       * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
+       This disables an xlc optimization that was causing wrong test results.
+       Reported by Rainer Tammer.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       iconv: Work around AIX 6.1..7.1 bug.
+       * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
+       * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
+       cross-compiling, guess no on all versions of AIX.
+       Reported by Rainer Tammer.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       readlink: Relax test a bit.
+       * tests/test-readlink.h (test_readlink): Allow different errno value
+       when readlink is called with a file name that ends in / and refers to
+       a file.
+       Suggested by Eric Blake.
+       Reported by Rainer Tammer.
+
+2010-07-31  Bruno Haible  <bruno@clisp.org>
+
+       copysign: Does not require -lm on glibc systems.
+       * modules/copysign (configure.ac): Use gl_MATHFUNC, not
+       gl_COMMON_DOUBLE_MATHFUNC.
+       * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
+
 2010-07-31  Bruno Haible  <bruno@clisp.org>
 
        duplocale: Work around AIX 7.1 bug.