Bruno Haible [Sun, 25 Apr 2010 21:08:38 +0000 (23:08 +0200)]
Use the 'extensions' module for some more functions on Solaris.
Bruno Haible [Sun, 25 Apr 2010 18:57:52 +0000 (20:57 +0200)]
ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
Bruno Haible [Sun, 25 Apr 2010 17:50:16 +0000 (19:50 +0200)]
Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
Bruno Haible [Sun, 25 Apr 2010 16:26:49 +0000 (18:26 +0200)]
gnulib-tool: Don't include hairy tests of dependencies in testdirs.
Bruno Haible [Sun, 25 Apr 2010 11:35:31 +0000 (13:35 +0200)]
gnulib-tool: Add --without-*-tests options.
Simon Josefsson [Sun, 25 Apr 2010 10:59:22 +0000 (12:59 +0200)]
Work around a MacOS X 10.4 bug with openpty.
Bruno Haible [Sun, 25 Apr 2010 10:27:21 +0000 (12:27 +0200)]
strnlen: Fix a C++ test error on MacOS X and Solaris.
Bruno Haible [Sat, 24 Apr 2010 16:02:56 +0000 (18:02 +0200)]
Avoid a gcc warning.
Bruno Haible [Sat, 24 Apr 2010 15:18:48 +0000 (17:18 +0200)]
vasnprintf: Correct errno value in case of out-of-memory.
Bruno Haible [Sat, 24 Apr 2010 14:14:16 +0000 (16:14 +0200)]
ansi-c++-opt: Find correct compiler when cross-compiling.
Giuseppe Scrivano [Fri, 23 Apr 2010 22:46:29 +0000 (00:46 +0200)]
vc-list-files: add subversion support
* build-aux/vc-list-files: Use "svn list" to generate the list of
files controlled by subversion.
Karl Berry [Fri, 23 Apr 2010 13:56:59 +0000 (06:56 -0700)]
update from texinfo
Jim Meyering [Fri, 23 Apr 2010 09:38:35 +0000 (11:38 +0200)]
vc-list-files tests: convert to use init.sh
* tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
path_prepend_.
Use Exit, not exit.
Use skip_ rather than open coding it.
Remove trap set-up and compare definitions.
* tests/test-vc-list-files-git.sh: Likewise.
* modules/vc-list-files-tests (Files): Add tests/init.sh.
Karl Berry [Thu, 22 Apr 2010 16:25:24 +0000 (09:25 -0700)]
update from texinfo
Simon Josefsson [Thu, 22 Apr 2010 09:04:21 +0000 (11:04 +0200)]
top/maint.mk (sc_prohibit_backup_files): Prohibit checked in backup files.
Simon Josefsson [Wed, 21 Apr 2010 11:18:32 +0000 (13:18 +0200)]
tests/test-vasprintf.c: Test %08lx.
Eric Blake [Tue, 20 Apr 2010 15:34:04 +0000 (09:34 -0600)]
tests: be robust to ignored SIGPIPE
Noticed during a libvirt test run with trap '' SIGPIPE.
* tests/test-select-in.sh: Consume all output.
* tests/test-lseek.sh: Check correct exit status, while avoiding
EPIPE.
Signed-off-by: Eric Blake <eblake@redhat.com>
Simon Josefsson [Tue, 20 Apr 2010 09:31:26 +0000 (11:31 +0200)]
visibility: Don't use -fvisibility if it leads to a warning.
Andreas Gruenbacher [Mon, 19 Apr 2010 22:30:51 +0000 (00:30 +0200)]
bootstrap: use "git -h" instead of "git --help"
Use "git -h" for testing for supported options instead of "git --help".
The short-form option only shows a summary, and doesn't layout the full
man page, which is much faster and saves a dependency.
(We found out that git uses man in a build environment of
http://hydra.nixos.org/, which by default doesn't have man installed.)
Grep for the full option name in the summary, too.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Bruno Haible [Mon, 19 Apr 2010 22:45:54 +0000 (00:45 +0200)]
relocatable: Simplify doc.
Bruno Haible [Mon, 19 Apr 2010 22:24:35 +0000 (00:24 +0200)]
relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
Bruno Haible [Mon, 19 Apr 2010 22:02:14 +0000 (00:02 +0200)]
Fix typo in comment.
Bruno Haible [Mon, 19 Apr 2010 20:24:13 +0000 (22:24 +0200)]
ioctl: Move autoconf macro to a .m4 file.
Karl Berry [Mon, 19 Apr 2010 15:50:09 +0000 (08:50 -0700)]
autupdate
Bruno Haible [Sun, 18 Apr 2010 22:01:18 +0000 (00:01 +0200)]
diffseq: Accommodate use-case with abstract arrays.
Bruno Haible [Sun, 18 Apr 2010 20:01:05 +0000 (22:01 +0200)]
Doc tweak.
Jim Meyering [Sat, 17 Apr 2010 20:13:41 +0000 (22:13 +0200)]
maint.mk: use gnu-style indentation in an embedded perl script
* top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
Rename variable: s/two/last_two_bytes/
Eric Blake [Fri, 16 Apr 2010 23:04:58 +0000 (17:04 -0600)]
test-stdbool: skip test that fails with Solaris CC
Solaris 9 CC has a bug; it allows (int)0.0 and (bool)0 in constant
expressions, but not (bool)0.0. Our replacement stdbool cannot
provide that guarantee of C99 for this particular compiler, but
since use of that feature causes compilation failure rather than
silent mis-compilation, we just skip the test.
* tests/test-stdbool.c (f): Skip test that causes compilation
error under buggy C++ compiler.
* lib/stdbool.in.h: Document the limitation.
* doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Fri, 16 Apr 2010 20:21:29 +0000 (14:21 -0600)]
setenv: allow compilation with C++
* lib/setenv.c (__add_to_environ): Add a cast. Also, drop use of
register keyword.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Fri, 16 Apr 2010 20:11:08 +0000 (14:11 -0600)]
stdint: allow test to pass with C++
__STDC_LIMIT_MACROS is only half the battle.
* tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Fri, 16 Apr 2010 20:08:15 +0000 (14:08 -0600)]
getopt: allow compilation with C++
A C++ compiler complains that REQUIRE_ORDER is unknown if it is
buried inside the struct.
* lib/getopt_int.h (__ordering): Hoist enum declaration outside
struct.
* lib/getopt.c (_getopt_internal_r): Use correct type.
Reported by Dagobert Michelson, via Joel E. Denny.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Fri, 16 Apr 2010 16:43:00 +0000 (18:43 +0200)]
Override netdb.h always.
Bruno Haible [Fri, 16 Apr 2010 00:38:16 +0000 (02:38 +0200)]
openpty: Fix mistake from 2010-03-21.
Eric Blake [Thu, 15 Apr 2010 13:54:02 +0000 (07:54 -0600)]
test-forkpty: fix expected signature
* tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
Reported by Simon Josefsson.
Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering [Thu, 15 Apr 2010 11:50:16 +0000 (13:50 +0200)]
maint.mk: texinfo_suffix_re_: correct the default regexp
* top/maint.mk (texinfo_suffix_re_): Fix default regexp.
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.