Simon Josefsson [Thu, 15 Apr 2010 11:44:21 +0000 (13:44 +0200)]
top/maint.mk (sc_texinfo_acronym): Improve filename regexp.
Eric Blake [Wed, 14 Apr 2010 19:03:38 +0000 (13:03 -0600)]
strtok_r: relax license to LGPLv2+
strtok_r borrows from glibc, which is LGPLv2+; besides, the
only major changes since 2007-10, when LGPLv3 became the default,
were in commit
5985805, to work around a glibc header bug.
* modules/strtok_r (License): Relax license.
Reported by Matthias Bolte.
Signed-off-by: Eric Blake <eblake@redhat.com>
Karl Berry [Wed, 14 Apr 2010 17:05:19 +0000 (10:05 -0700)]
autoupdate
Simon Josefsson [Wed, 14 Apr 2010 13:23:28 +0000 (15:23 +0200)]
lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to version 1.4.4.
Eric Blake [Fri, 9 Apr 2010 22:34:16 +0000 (16:34 -0600)]
getopt-gnu: match recent glibc fixes and posix ruling
The POSIX folks admitted that codifying the behavior of GNU
getopt on a leading '+' in optstring is worthwhile, for writing
programs such as env(1) even when POSIXLY_CORRECT is not defined.
http://austingroupbugs.net/view.php?id=191
However, the ruling is an enhancement request for the next
version of POSIX, and is not binding on platforms that comply
with POSIX 2008, so it should only be enforced for getopt-gnu.
* tests/test-getopt.h (test_getopt): Strengthen tests of leading
'+' handling, when requesting extensions.
* tests/test-getopt_long.h (test_getopt_long): Strengthen test of
'W;' handling.
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
* doc/posix-functions/getopt.texi (getopt): Document this.
* doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
* doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
Likewise.
Eric Blake [Sat, 10 Apr 2010 17:56:34 +0000 (11:56 -0600)]
getopt: merge bug fixes from glibc
* lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
diagnostics. Honor '+:' correctly. Reject ';'.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Tue, 13 Apr 2010 20:30:37 +0000 (14:30 -0600)]
getopt-posix: detect MacOS bug
On MacOS 10.5 (Darwin 9.8.0), optind is incremented by 2 instead
of 1 in the case of a missing requirement on condensed options.
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
optind when missing a required argument.
* doc/posix-functions/getopt.texi (getopt): Document the bug.
* doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
* doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Tue, 13 Apr 2010 17:00:29 +0000 (11:00 -0600)]
getopt-posix: avoid spurious failure on Solaris
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
an indicator that setting optind=1 is sufficient for reset.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Tue, 13 Apr 2010 14:37:08 +0000 (08:37 -0600)]
getopt-posix: avoid spurious failure on FreeBSD
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
in POSIX mode, since the m4 test uses it.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Mon, 12 Apr 2010 23:03:08 +0000 (17:03 -0600)]
gnulib-tool: silence warning on BSD sh
FreeBSD /bin/sh issues warnings about commands not found prior
to redirecting stderr.
* gnulib-tool: Avoid leaking warning about unknown 'declare'.
Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering [Tue, 13 Apr 2010 07:27:02 +0000 (09:27 +0200)]
doc: users.txt: GNU patch now uses gnulib
* users.txt: Add patch.
Jim Meyering [Mon, 12 Apr 2010 20:15:19 +0000 (22:15 +0200)]
maint.mk: generate more concise timing data for syntax-check rules
* top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
" done" from each line that reports a syntax-check test duration.
Andreas Gruenbacher [Mon, 12 Apr 2010 15:56:27 +0000 (17:56 +0200)]
git-version-gen: use "git update-index..." rather than "git status"
* build-aux/git-version-gen: Use git update-index --refresh, not
"git status". With some versions of git, "git status" would fail
to update the index and result in an unwarranted "-dirty" suffix.
Karl Berry [Mon, 12 Apr 2010 17:21:32 +0000 (10:21 -0700)]
autoupdate
Jim Meyering [Sun, 11 Apr 2010 18:35:32 +0000 (20:35 +0200)]
openat: correct formatting (no semantic change)
* m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
Suggested by Bruno Haible.
Bruno Haible [Sun, 11 Apr 2010 17:21:20 +0000 (19:21 +0200)]
Stricter declaration checking in testdirs.
Bruno Haible [Sun, 11 Apr 2010 16:26:02 +0000 (18:26 +0200)]
libunistring: Improve configure output.
Bruno Haible [Sun, 11 Apr 2010 16:22:50 +0000 (18:22 +0200)]
libunistring: Correct value of $LTLIBUNISTRING.
Bruno Haible [Sun, 11 Apr 2010 16:06:48 +0000 (18:06 +0200)]
havelib: Add static libraries to LIBS in the right order.
Bruno Haible [Sun, 11 Apr 2010 16:01:52 +0000 (18:01 +0200)]
libunistring: Detect libunistring also when it depends on libiconv.
James Youngman [Sun, 11 Apr 2010 14:48:21 +0000 (16:48 +0200)]
close-stream: declare local scalars to be "const"
* lib/close-stream.c (close_stream): Make boolean variables const
to document the fact that we set but do not change them.
Bruno Haible [Sun, 11 Apr 2010 13:01:37 +0000 (15:01 +0200)]
Fix typo in comment.
Jim Meyering [Sun, 11 Apr 2010 11:54:35 +0000 (13:54 +0200)]
maint.mk: don't include dist-check.mk
* top/maint.mk: Remove bogus include directive.
Jim Meyering [Sun, 11 Apr 2010 11:35:33 +0000 (13:35 +0200)]
maint.mk: improve empty-line-at-EOF check
* top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
solution, rather than tail+Perl-based one. The latter would read
a few kilobytes from the end of each file, and did not handle empty
files properly.
Jim Meyering [Sun, 11 Apr 2010 08:26:52 +0000 (10:26 +0200)]
maint.mk: print the elapsed time for each syntax-check rule
* top/maint.mk (sc_m_rules_): Save start time in a file.
(sc_z_rules_): New rules: remove temp file and print elapsed time.
(local-check): Interpose the .z rules
Jim Meyering [Sun, 11 Apr 2010 08:37:31 +0000 (10:37 +0200)]
maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
* top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
empty file with one that ends in an empty line.
Bruno Haible [Sat, 10 Apr 2010 23:55:23 +0000 (01:55 +0200)]
Update comment.
Bruno Haible [Sat, 10 Apr 2010 22:25:21 +0000 (00:25 +0200)]
mkdir: Make it work on mingw64.
Bruno Haible [Sat, 10 Apr 2010 20:40:52 +0000 (22:40 +0200)]
Don't override improved macro from newer autoconf.
Jim Meyering [Sat, 10 Apr 2010 20:36:37 +0000 (22:36 +0200)]
maint.mk: new syntax-check rule: prohibit empty lines at end of file
* top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
Jim Meyering [Sat, 10 Apr 2010 20:30:46 +0000 (22:30 +0200)]
maint.mk: correct a diagnostic
* top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
in diagnostic; now use $prohibit.
Bruno Haible [Sat, 10 Apr 2010 20:30:16 +0000 (22:30 +0200)]
fchownat: Fix a C++ test error on Solaris 8.
Bruno Haible [Sat, 10 Apr 2010 20:26:56 +0000 (22:26 +0200)]
vasnprintf: Add more tests.
Bruno Haible [Sat, 10 Apr 2010 20:25:31 +0000 (22:25 +0200)]
vasnprintf: Correct handling of unconvertible wide string arguments.
Bruno Haible [Sat, 10 Apr 2010 20:17:02 +0000 (22:17 +0200)]
vasnprintf: Fix crash in %ls directive.
Bruno Haible [Sat, 10 Apr 2010 19:40:23 +0000 (21:40 +0200)]
vasnprintf: Fix multiple test failures on mingw.
Bruno Haible [Sat, 10 Apr 2010 19:11:00 +0000 (21:11 +0200)]
write: Fix a C++ test error on mingw.
Bruno Haible [Sat, 10 Apr 2010 16:41:20 +0000 (18:41 +0200)]
vasnprintf test: Reduce code duplication.
Bruno Haible [Sat, 10 Apr 2010 09:29:14 +0000 (11:29 +0200)]
strnlen: Fix warning in C++ mode on MacOS X.
James Youngman [Thu, 8 Apr 2010 02:02:12 +0000 (03:02 +0100)]
Add missing parenthesis in manywarnings example
Jim Meyering [Fri, 9 Apr 2010 20:36:26 +0000 (22:36 +0200)]
maint.mk: print better diagnostic when there is no $(_hv_file)
* top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
announce that when $(_hv_file) (aka help-version) does not exist.
Jim Meyering [Fri, 9 Apr 2010 18:53:49 +0000 (20:53 +0200)]
init.sh: run tr in the "C" locale to avoid multibyte interpretation
* tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
not try to interpret its random input bytes. Jarno Rajahalme reported
that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence"
on Darwin 10.3.0 with LC_CTYPE=UTF-8.
(mktempd_): Likewise, just in case.
Jim Meyering [Fri, 9 Apr 2010 17:14:37 +0000 (19:14 +0200)]
ftruncate: add two years to projected module removal date: 2012
* m4/ftruncate.m4: Adjust comments.
Bruno Haible [Fri, 9 Apr 2010 09:08:15 +0000 (11:08 +0200)]
Add attribution to a ChangeLog entry.
Jim Meyering [Fri, 9 Apr 2010 08:44:23 +0000 (10:44 +0200)]
ftruncate: mark module as obsolete; even MinGW provides it, now
* modules/ftruncate (Status): Obsolete.
(Notice): Say that.
* doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
Bruno Haible [Fri, 9 Apr 2010 00:02:15 +0000 (02:02 +0200)]
Fix side effects from tests-related modules.
Karl Berry [Wed, 7 Apr 2010 23:02:50 +0000 (16:02 -0700)]
doc fixes to srclist*
Jim Meyering [Wed, 7 Apr 2010 11:45:59 +0000 (13:45 +0200)]
maint.mk: add a PATH crosschecking syntax-check rule
* top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
Useful if you use a test like the one in help-version (coreutils,
diffutils, grep, gzip) that ensures $(VERSION) matches what is
printed by prog --version.
Bruno Haible [Tue, 6 Apr 2010 22:26:31 +0000 (00:26 +0200)]
Fix link error on mingw.
Bruno Haible [Tue, 6 Apr 2010 21:23:00 +0000 (23:23 +0200)]
Assume rmdir exists.
Giuseppe Scrivano [Tue, 6 Apr 2010 19:26:32 +0000 (21:26 +0200)]
doc: update users.txt
* users.txt: Add gcal.
Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering [Tue, 6 Apr 2010 17:24:57 +0000 (19:24 +0200)]
init.sh: simply unset TMPDIR rather than risking env -i
* tests/init.sh (mktempd_): Using env -i is rather harsh, and
although it probably works fine on all Unix-based systems, some
systems (Cygwin?) cannot tolerate a totally cleared environment.
Suggestion from Eric Blake.
2010-04-06 Jim Meyering <meyering@redhat.com>
Jim Meyering [Tue, 6 Apr 2010 15:33:51 +0000 (17:33 +0200)]
init.sh: portability fix: use env's POSIX-specified -i option not -u
* tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
than unportable env -u. Solaris 5.11's env lacks support for -u.
Bruno Haible [Mon, 5 Apr 2010 22:30:28 +0000 (00:30 +0200)]
btowc: Work around Cygwin 1.7.2 bug.
Bruno Haible [Mon, 5 Apr 2010 21:46:02 +0000 (23:46 +0200)]
Make the multithread modules work on Cygwin 1.7.2.
Bruno Haible [Mon, 5 Apr 2010 19:17:47 +0000 (21:17 +0200)]
Use the module 'strncat'.
Bruno Haible [Mon, 5 Apr 2010 19:17:09 +0000 (21:17 +0200)]
Tests for module 'strncat'.
Bruno Haible [Mon, 5 Apr 2010 19:14:58 +0000 (21:14 +0200)]
New module 'strncat'.
Jim Meyering [Mon, 5 Apr 2010 17:30:38 +0000 (19:30 +0200)]
xstrtoumax-tests: convert to use init.sh
* modules/xstrtoumax-tests (Files): Add tests/init.sh.
* tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.
Jim Meyering [Mon, 5 Apr 2010 16:27:15 +0000 (18:27 +0200)]
xstrtoimax-tests: convert to use init.sh
* modules/xstrtoimax-tests (Files): Add tests/init.sh.
* tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.
Jim Meyering [Mon, 5 Apr 2010 14:32:41 +0000 (16:32 +0200)]
xstrtol-tests: convert to use init.sh
* modules/xstrtol-tests (Files): Add tests/init.sh.
* tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.
Jim Meyering [Mon, 5 Apr 2010 14:12:55 +0000 (16:12 +0200)]
atexit-tests: convert to use init.sh
* modules/atexit-tests (Files): Add tests/init.sh.
* tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.
Bruno Haible [Mon, 5 Apr 2010 16:34:08 +0000 (18:34 +0200)]
sys_socket: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 5 Apr 2010 16:18:11 +0000 (18:18 +0200)]
fseeko: Fix C++ test error on mingw.
Bruno Haible [Mon, 5 Apr 2010 15:26:55 +0000 (17:26 +0200)]
duplocale: Improve test output.
Bruno Haible [Mon, 5 Apr 2010 15:27:26 +0000 (17:27 +0200)]
Assume rmdir exists.
Bruno Haible [Mon, 5 Apr 2010 14:58:01 +0000 (16:58 +0200)]
Assume rmdir exists.
Bruno Haible [Mon, 5 Apr 2010 14:14:47 +0000 (16:14 +0200)]
Fix link error on Solaris 8 with cc.
Bruno Haible [Mon, 5 Apr 2010 13:58:34 +0000 (15:58 +0200)]
frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
Bruno Haible [Mon, 5 Apr 2010 13:27:34 +0000 (15:27 +0200)]
vasprintf: Update documentation.
Bruno Haible [Mon, 5 Apr 2010 11:15:11 +0000 (13:15 +0200)]
ptsname: Improve test.
Bruno Haible [Mon, 5 Apr 2010 11:12:59 +0000 (13:12 +0200)]
memchr: Avoid a possible C++ test error.
Bruno Haible [Mon, 5 Apr 2010 10:53:27 +0000 (12:53 +0200)]
strtok_r: Improve idiom.
Bruno Haible [Mon, 5 Apr 2010 10:51:03 +0000 (12:51 +0200)]
strdup: Improve idiom.
Bruno Haible [Mon, 5 Apr 2010 10:24:52 +0000 (12:24 +0200)]
mbsinit, mbrtowc, wcrtomb: Improve idioms.
Bruno Haible [Mon, 5 Apr 2010 09:55:38 +0000 (11:55 +0200)]
ldexpl: Improve idiom.
Jim Meyering [Mon, 5 Apr 2010 14:10:05 +0000 (16:10 +0200)]
init.sh: fix typo
* tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
Karl Berry [Mon, 5 Apr 2010 13:42:37 +0000 (06:42 -0700)]
update from texinfo
Jim Meyering [Mon, 5 Apr 2010 08:01:07 +0000 (10:01 +0200)]
init.sh: make it easier for a test script to write to the tty, ...
when using automake's parallel-tests mode.
* tests/init.sh (stderr_fileno_): Define overridable variable.
(warn_): New function, to use it.
(fail_, skip_, framework_failure_): Use warn_.
Bruno Haible [Sun, 4 Apr 2010 23:37:37 +0000 (01:37 +0200)]
btowc: Avoid warning.
Hauke Fath [Sun, 4 Apr 2010 23:33:24 +0000 (01:33 +0200)]
wchar: Port to NetBSD 1.5.
Hauke Fath [Sun, 4 Apr 2010 23:13:18 +0000 (01:13 +0200)]
Port extended stdio to NetBSD 1.5.
Bruno Haible [Sun, 4 Apr 2010 21:41:29 +0000 (23:41 +0200)]
string: Remove unused substitution.
Bruno Haible [Sun, 4 Apr 2010 21:13:31 +0000 (23:13 +0200)]
strtod: Avoid a possible C++ test error.
Bruno Haible [Sun, 4 Apr 2010 21:07:50 +0000 (23:07 +0200)]
strerror: Update documentation.
Bruno Haible [Sun, 4 Apr 2010 20:42:59 +0000 (22:42 +0200)]
stdio: Fix some C++ test errors on Solaris 8 with GCC.
Bruno Haible [Sun, 4 Apr 2010 20:13:20 +0000 (22:13 +0200)]
frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
Bruno Haible [Sun, 4 Apr 2010 19:18:03 +0000 (21:18 +0200)]
math: Fix some C++ test errors on Solaris 8 and Cygwin.
Bruno Haible [Sun, 4 Apr 2010 18:49:44 +0000 (20:49 +0200)]
Implement nanosleep for native Windows.
Bruno Haible [Sun, 4 Apr 2010 18:15:21 +0000 (20:15 +0200)]
math: Fix some C++ test errors on Solaris 8.
Bruno Haible [Sun, 4 Apr 2010 17:59:32 +0000 (19:59 +0200)]
math: Fix some C++ test errors on Cygwin.
Karl Berry [Sun, 4 Apr 2010 16:30:18 +0000 (09:30 -0700)]
autoupdate
Bruno Haible [Sun, 4 Apr 2010 16:13:24 +0000 (18:13 +0200)]
Remove redundant AC_SUBST invocations.
Bruno Haible [Sun, 4 Apr 2010 15:40:20 +0000 (17:40 +0200)]
Remove redundant AC_SUBST invocation.
Bruno Haible [Sun, 4 Apr 2010 14:26:00 +0000 (16:26 +0200)]
Rename gl_TMPFILE.
Bruno Haible [Sun, 4 Apr 2010 13:37:40 +0000 (15:37 +0200)]
tmpfile: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 08:32:19 +0000 (10:32 +0200)]
ioctl: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 00:42:00 +0000 (02:42 +0200)]
wcwidth: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 00:12:01 +0000 (02:12 +0200)]
nanosleep: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 18:23:47 +0000 (20:23 +0200)]
strptime: Fix C++ test error on mingw.