Ian Beckwith [Thu, 1 Jul 2010 08:54:36 +0000 (10:54 +0200)]
idpriv-drop: Fix tests.
Bruno Haible [Wed, 30 Jun 2010 00:19:54 +0000 (02:19 +0200)]
string: Fix syntax error with g++ 2.96.
Ian Beckwith [Tue, 29 Jun 2010 08:51:34 +0000 (10:51 +0200)]
unitypes: Fix bug introduced on 2010-05-18.
Karl Berry [Wed, 23 Jun 2010 13:51:43 +0000 (06:51 -0700)]
autoupdate
Karl Berry [Tue, 22 Jun 2010 16:34:07 +0000 (09:34 -0700)]
autoupdates
Eric Blake [Mon, 21 Jun 2010 22:16:44 +0000 (16:16 -0600)]
memmem: slight optimization
For any needle, the factorization 0/n has a local period of 1, so it
is a critical factorization iff the entire needle consists only of a
single repeated byte, in which case 1/n-1 would also be critical.
Starting with a comparison of x[0] and x[1] in the maximal suffix
check will either find the 0/n case or move on to something else, so
we can optimize and start with the x[1] vs. x[2] case to begin with.
To avoid out-of-bounds references, we must then special case needles
of length two or less. However, for these cases, we can determine a
critical factorization without any probes of the needle (we already
require a non-empty needle; a 1-byte needle can factor as either 0/1
or 1/0 but the rest of our code assumes a non-empty suffix; and of the
two 2-byte needle patterns, "aa" can factor as either 0/2 or 1/1 but
with best performance for 1/1, and "ab" must be factored as 1/1).
* lib/str-two-way.h (critical_factorization): Update comments.
Reduce work during factorization phase.
Reported by Carlos Bueno <carlos@bueno.org>.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Mon, 21 Jun 2010 22:20:46 +0000 (00:20 +0200)]
Fix HAVE_CALLOC_POSIX misnomer.
Bruno Haible [Mon, 21 Jun 2010 22:16:26 +0000 (00:16 +0200)]
Use modern idiom for calloc() replacement.
Bruno Haible [Mon, 21 Jun 2010 22:11:19 +0000 (00:11 +0200)]
Fix HAVE_REALLOC_POSIX misnomer.
Bruno Haible [Mon, 21 Jun 2010 22:07:30 +0000 (00:07 +0200)]
Use modern idiom for realloc() replacement.
Bruno Haible [Mon, 21 Jun 2010 22:06:29 +0000 (00:06 +0200)]
Fix HAVE_MALLOC_POSIX misnomer.
Bruno Haible [Mon, 21 Jun 2010 21:58:08 +0000 (23:58 +0200)]
Use modern idiom for malloc() replacement.
Richard Lloyd [Sun, 20 Jun 2010 11:31:40 +0000 (13:31 +0200)]
stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
* lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
This macro takes 3 arguments, not 4.
Karl Berry [Thu, 17 Jun 2010 18:13:36 +0000 (11:13 -0700)]
update from texinfo
Karl Berry [Thu, 17 Jun 2010 00:30:50 +0000 (17:30 -0700)]
update from texinfo
Karl Berry [Wed, 16 Jun 2010 00:07:44 +0000 (17:07 -0700)]
update from texinfo
Giuseppe Scrivano [Tue, 15 Jun 2010 14:56:42 +0000 (16:56 +0200)]
ipv6: fix detection under mingw
this small patch fixes the detection of IPv6 under mingw. The header
<ws2tcpip.h> is already used by <sys/socket.h>.
* m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
in6_addr.
Signed-off-by: Eric Blake <eblake@redhat.com>
Ben Pfaff [Tue, 15 Jun 2010 00:15:41 +0000 (17:15 -0700)]
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff [Mon, 14 Jun 2010 23:52:25 +0000 (16:52 -0700)]
Factor out common code in gl_FUNC_STRTOD.
Bruno Haible [Tue, 15 Jun 2010 08:37:32 +0000 (10:37 +0200)]
strtod: Stop using AC_FUNC_STRTOD.
René Berber [Tue, 15 Jun 2010 08:29:07 +0000 (10:29 +0200)]
select: Correct timeout.
Thien-Thi Nguyen [Mon, 14 Jun 2010 20:25:42 +0000 (22:25 +0200)]
git-version-gen: init shell var to avoid env var influence
* build-aux/git-version-gen (v): Init shell var to empty.
Signed-off-by: Eric Blake <eblake@redhat.com>
Paul Eggert [Mon, 14 Jun 2010 19:20:22 +0000 (12:20 -0700)]
priv-set: Don't assume that priv.h exists merely because getppriv does.
See Jan Andersen's bug report about AIX 5L in
http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
* m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
* lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
* lib/priv-set.h: Likewise.
* tests/test-priv-set.c: Likewise.
Bruno Haible [Sun, 13 Jun 2010 23:53:49 +0000 (01:53 +0200)]
relocatable: Make it easier to test whether to install wrappers.
Bruno Haible [Sun, 13 Jun 2010 13:57:16 +0000 (15:57 +0200)]
gnulib-tool: Display specified modules and dependencies differently.
Bruno Haible [Sun, 13 Jun 2010 12:45:56 +0000 (14:45 +0200)]
gnulib-tool: Align code of func_import and func_create_testdir.
Jim Meyering [Sat, 12 Jun 2010 12:47:43 +0000 (14:47 +0200)]
test-inttostr: avoid spurious failure on Solaris 9
* tests/test-inttostr.c (main): Skip the test when snprintf fails
to accept "%ju". Reported by Bruno Haible.
Karl Berry [Sat, 12 Jun 2010 13:48:33 +0000 (06:48 -0700)]
update from texinfo
Jim Meyering [Fri, 11 Jun 2010 20:09:27 +0000 (22:09 +0200)]
test-sys_socket: mark variables as used more readably
* tests/test-sys_socket.c (main): Mark otherwise unused variables
as "used" explicitly via (void) statement casts. This is more
readable than using them in an artificial return expression.
Suggestion from Bruno Haible.
Bruno Haible [Fri, 11 Jun 2010 19:17:11 +0000 (21:17 +0200)]
Avoid some more warnings from "gcc -Wwrite-strings".
Ralf Wildenhues [Fri, 11 Jun 2010 17:03:33 +0000 (19:03 +0200)]
init.sh: change framework_failure_ to fail with status 99, not 1
* tests/init.sh (framework_failure_): Exit 99, not 1. This informs
automake's parallel-tests rule that this is an unexpected failure,
even if the test is listed in XFAIL_TESTS.
Jim Meyering [Fri, 11 Jun 2010 15:31:04 +0000 (17:31 +0200)]
test-inttostr: avoid warnings about 4-6KB literal strings
* tests/test-inttostr.c: Don't use <assert.h>. Instead, ...
Include "macros.h", for its definition of ASSERT.
(CK): s/assert/ASSERT/
* modules/inttostr-tests (Files): Add macros.h.
Jim Meyering [Fri, 11 Jun 2010 11:41:31 +0000 (13:41 +0200)]
init.sh: don't use $ME_ or skip_ before they are defined
* tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
their first uses. Also hoist their companions: warn_, fail_,
framework_failure_, $stderr_fileno. Prompted by a patch from
Stefano Lattarini.
Jim Meyering [Fri, 11 Jun 2010 09:26:31 +0000 (11:26 +0200)]
test-sys_socket: avoid set-but-not-used warnings from gcc
* tests/test-sys_socket.c (main): Use "i" and "x", in order to
avoid warning about set-but-not-used variables.
Jim Meyering [Fri, 11 Jun 2010 09:03:54 +0000 (11:03 +0200)]
test-xvasprintf: avoid 'const' discard warnings
* tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
"const" when assigning from literal strings.
(test_xasprintf): Add "void" in function argument list to placate
-Wstrict-prototypes and to be consistent with test_xvasprintf above.
Jim Meyering [Fri, 11 Jun 2010 07:50:29 +0000 (09:50 +0200)]
tests: avoid compilation warnings in argmatch and exclude tests...
in packages that define ARGMATCH_DIE_DECL, like coreutils.
* tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
Since it always exits, declare with the "noreturn" attribute.
* tests/test-argmatch.c: Likewise.
Jim Meyering [Fri, 11 Jun 2010 07:27:19 +0000 (09:27 +0200)]
tests: avoid 'const' discard warnings in mbsstr tests
* tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
* tests/test-mbsstr2.c (main): Likewise.
Jim Meyering [Fri, 11 Jun 2010 07:15:16 +0000 (09:15 +0200)]
test-verify: avoid warning from gcc's -Wmissing-declarations
* tests/test-verify.c (function): Declare to be static.
Jim Meyering [Fri, 11 Jun 2010 07:08:47 +0000 (09:08 +0200)]
test-inttostr.c: include <string.h> for use of strcmp
* tests/test-inttostr.c: Include <string.h> for strcmp declaration.
Jim Meyering [Fri, 11 Jun 2010 06:50:08 +0000 (08:50 +0200)]
test-linkat: avoid failed assertion on "other" architectures
* tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
lstat, mkdir. Patch by John Rigby, to fix FTBFS on armel, powerpc,
sparc: https://bugs.launchpad.net/bugs/591968
Jim Meyering [Thu, 10 Jun 2010 13:21:09 +0000 (15:21 +0200)]
printf.m4: avoid autoconf's "Expanded Before Required" warning
* m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
autoconf warning.
Ben Pfaff [Fri, 11 Jun 2010 03:11:05 +0000 (20:11 -0700)]
Replacement header templates are now named with ".in", not "_".
* doc/gnulib-intro.texi: Correct.
Jim Meyering [Thu, 10 Jun 2010 16:35:59 +0000 (18:35 +0200)]
inttostr-tests: depend on snprintf, not snprintf-posix
* modules/inttostr-tests (Depends-on): Depend on snprintf, not
snprintf-posix, to avoid this aclocal failure:
missing file gnulib-tests/vasnprintf.c
configure.ac:45: error: expected source file, required through \
AC_LIBSOURCES, not found
Karl Berry [Thu, 10 Jun 2010 13:22:36 +0000 (06:22 -0700)]
autoupdate
Jim Meyering [Wed, 9 Jun 2010 16:22:25 +0000 (18:22 +0200)]
inttostr: add a new function, inttostr, and tests
The namesake function was not available. The existence of the
template file, inttostr.c makes its addition nontrivial.
* lib/anytostr.c: Rename from inttostr.c.
(anytostr): Rename from inttostr.
* lib/inttostr.c: New file.
* modules/inttostr (Files): Add anytostr.c.
(Makefile.am): Set lib_SOURCES instead of ...
* m4/inttostr.m4: Remove uses of AC_LIBOBJ.
* lib/imaxtostr.c: Update use. s/inttostr/anytostr/
* lib/offtostr.c: Likewise.
* lib/uinttostr.c: Likewise.
* lib/umaxtostr.c: Likewise.
* modules/inttostr-tests: New file.
* tests/test-inttostr.c: New file. Test these functions.
Ben Pfaff [Thu, 10 Jun 2010 03:53:13 +0000 (20:53 -0700)]
Add "Extending Gnulib" chapter to manual.
* doc/gnulib.texi (Writing Modules): Add cross-reference to new chapter.
(Extending Gnulib): New chapter.
* doc/gnulib-intro.texi (Openness): Add cross-reference to new chapter.
Bruno Haible [Wed, 9 Jun 2010 13:30:40 +0000 (15:30 +0200)]
Avoid relocwrapper link errors due to gnulib replacement functions.
Bruno Haible [Wed, 9 Jun 2010 10:47:59 +0000 (12:47 +0200)]
Avoid relocwrapper link errors due to gnulib replacement functions.
Bruno Haible [Sat, 5 Jun 2010 01:46:32 +0000 (03:46 +0200)]
Prefer documented low-level autoconf macro names.
Martin Lambers [Sat, 5 Jun 2010 01:29:00 +0000 (03:29 +0200)]
havelib: Allow library names with '+' characters.
Bruno Haible [Wed, 9 Jun 2010 10:40:40 +0000 (12:40 +0200)]
Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
Peter Simons [Mon, 7 Jun 2010 13:24:21 +0000 (15:24 +0200)]
maint.mk: make the news-check rule more configurable
* top/maint.mk (news-check-lines-spec) New variable.
(news-check): Use "sed -n 1,10p" in place of "head".
Jim Meyering [Mon, 7 Jun 2010 07:06:42 +0000 (09:06 +0200)]
do-release-commit-and-tag: fix typo in --help
* build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
Jim Meyering [Mon, 7 Jun 2010 05:58:49 +0000 (07:58 +0200)]
regex: avoid new dead-code warning with gcc-4.6.0
* lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
if-block containing a while-loop. It's been unused for at least
5 years.
Bruno Haible [Sat, 5 Jun 2010 03:13:57 +0000 (05:13 +0200)]
Mention Solaris limitation.
Bruno Haible [Sat, 5 Jun 2010 00:03:43 +0000 (02:03 +0200)]
Update to GNU gettext 0.18.1.
Bruno Haible [Thu, 3 Jun 2010 22:21:14 +0000 (00:21 +0200)]
Don't use AC_LIBOBJ with file names in subdirectories.
Bruno Haible [Thu, 3 Jun 2010 21:54:36 +0000 (23:54 +0200)]
Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
Bruno Haible [Thu, 3 Jun 2010 19:46:41 +0000 (21:46 +0200)]
Reduce dependencies.
Bruno Haible [Thu, 3 Jun 2010 18:22:57 +0000 (20:22 +0200)]
Reduce dependencies.
Bruno Haible [Thu, 3 Jun 2010 14:25:01 +0000 (16:25 +0200)]
time: Undefine more broken macros.
Bruno Haible [Thu, 3 Jun 2010 11:55:01 +0000 (13:55 +0200)]
Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
Eric Blake [Wed, 2 Jun 2010 17:08:06 +0000 (11:08 -0600)]
time: work with mingw + pthreads-win32 library
When using the pthreads-win32 library with mingw, struct timespec
is available in <pthread.h>. Meanwhile, that header has some
rather buggy macros for localtime_r and gmtime_r that interfere
with proper gnulib replacement header actions.
Tested in a cross-compilation environment: Fedora 13 with mingw32-gcc
and mingw32-pthreads installed.
* m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
if timespec is defined only in pthread.h.
* modules/time (Makefile.am): Substitute it.
* lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
<pthread.h>, when needed.
(GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
from the library.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Mon, 31 May 2010 23:26:32 +0000 (01:26 +0200)]
Avoid expanding two macros in the wrong order.
Karl Berry [Mon, 31 May 2010 12:04:53 +0000 (05:04 -0700)]
autoupdate
Ludovic Courtès [Fri, 28 May 2010 10:15:23 +0000 (12:15 +0200)]
git-version-gen: take a sed script to transform the git tag
* build-aux/git-version-gen (tag_sed_script): New variable. Use it to
transform the output of "git describe" to the canonical form.
* top/GNUmakefile (_curr-ver): Pass $(git-version-gen-tag-sed-script) as
a second argument to `git-version-gen'.
Jim Meyering [Thu, 27 May 2010 11:33:04 +0000 (13:33 +0200)]
maint.mk: also prohibit "#undef" of always-defined symbols
* top/maint.mk (def_sym_regex): Handle #undef as well as #define.
Allow more than one space before the symbol name.
(sc_prohibit_always-defined_macros): Use grep's -E, now that
the regexp uses alternation.
Eric Blake [Wed, 26 May 2010 17:53:58 +0000 (11:53 -0600)]
correct ChangeLog
Eric Blake [Wed, 26 May 2010 17:47:22 +0000 (11:47 -0600)]
maint.mk: avoid echo -e
There are still other potentially non-portable uses of echo
throughout this file, if $(ME) contains \ or starts with -,
but this patch is a trivial step in the right direction.
* top/maint.mk (gzip_rsyncable): Convert all uses of echo -* to
printf.
Reported by Matthias Bolte.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Tue, 25 May 2010 19:37:23 +0000 (21:37 +0200)]
Oops, typo in ChangeLog entry.
Bruno Haible [Tue, 25 May 2010 19:35:22 +0000 (21:35 +0200)]
Update to GNU gettext 0.18, part 2.
Ralf Wildenhues [Tue, 25 May 2010 05:22:43 +0000 (07:22 +0200)]
Add missing include in test-pwrite.c.
* tests/test-pwrite.c: Include string.h, for strcmp.
Bruno Haible [Tue, 25 May 2010 00:26:15 +0000 (02:26 +0200)]
Mention requirement for Automake option 'subdir-objects'.
Bruno Haible [Mon, 24 May 2010 21:00:42 +0000 (23:00 +0200)]
Don't use conversion with transliteration in u{8,16,32}_strcoll.
Bruno Haible [Mon, 24 May 2010 20:06:22 +0000 (22:06 +0200)]
Avoid a test failure on NetBSD 5.0.
Karl Berry [Mon, 24 May 2010 13:56:22 +0000 (06:56 -0700)]
autoupdate
Bruno Haible [Mon, 24 May 2010 10:45:20 +0000 (12:45 +0200)]
Adjust #include directive style.
Bruno Haible [Mon, 24 May 2010 10:23:03 +0000 (12:23 +0200)]
regex: Don't require alloca.
Jim Meyering [Sun, 23 May 2010 19:57:32 +0000 (21:57 +0200)]
test-renameat.c: include <sys/stat.h>
* tests/test-renameat.c: Include <sys/stat.h>; required for
definition of S_IS* macros.
Ben Pfaff [Sun, 23 May 2010 19:02:39 +0000 (12:02 -0700)]
Update maintainer documentation for 'relocatable-prog' module.
Bruno Haible [Sun, 23 May 2010 16:03:16 +0000 (18:03 +0200)]
git-merge-changelog: Enable --split-merged-entry by default.
Jim Meyering [Sun, 23 May 2010 08:32:12 +0000 (10:32 +0200)]
test-pwrite: do not leave behind a test file named "out"
Revert commit
d8fa18472a54c1cb2674c296b3d82443f234d5f7.
The trivial-looking use of init.sh is really necessary.
It ensures that the temporary file, "out", is created in
a temporary directory, and removed upon termination.
* tests/test-pwrite.sh: Re-add file.
* modules/pwrite-tests: Reference it.
Ralf Wildenhues [Sun, 23 May 2010 08:05:31 +0000 (10:05 +0200)]
Fix output redirection buglet in init.sh.
* tests/init.sh: Fix redirection of stderr.
Karl Berry [Sun, 23 May 2010 00:38:21 +0000 (17:38 -0700)]
update from texinfo
Karl Berry [Fri, 21 May 2010 15:28:16 +0000 (08:28 -0700)]
autoupdate
Simon Josefsson [Thu, 20 May 2010 06:37:18 +0000 (08:37 +0200)]
modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
Simon Josefsson [Thu, 20 May 2010 06:29:56 +0000 (08:29 +0200)]
Add new module valgrind-tests.
Bruno Haible [Wed, 19 May 2010 21:30:18 +0000 (23:30 +0200)]
Clean up dead code in recent commit.
Bruno Haible [Wed, 19 May 2010 20:11:00 +0000 (22:11 +0200)]
Avoid valgrind error reports from libunistring.
Karl Berry [Wed, 19 May 2010 14:11:42 +0000 (07:11 -0700)]
autoupdate
Bruno Haible [Tue, 18 May 2010 18:11:42 +0000 (20:11 +0200)]
New module 'libunistring-optional'.
Richard Jones [Tue, 18 May 2010 15:52:12 +0000 (17:52 +0200)]
doc: users.txt: list hivex
* users.txt: Add hivex.
2010-05-18 Richard Jones <rjones@redhat.com>
Richard Jones [Tue, 18 May 2010 14:52:35 +0000 (16:52 +0200)]
doc: users.txt: list febootstrap
* users.txt: Add febootstrap.
Karl Berry [Tue, 18 May 2010 00:18:45 +0000 (17:18 -0700)]
update from texinfo
Bruno Haible [Mon, 17 May 2010 20:04:41 +0000 (22:04 +0200)]
Fix typo in ChangeLog entry.
Giuseppe Scrivano [Mon, 17 May 2010 13:26:42 +0000 (15:26 +0200)]
bootstrap: fix an error when gnulib is not used as a git submodule
* build-aux/bootstrap (gnulib_path): If its length is zero then
assign "gnulib" to it.
* build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
Bruno Haible [Sun, 16 May 2010 21:49:00 +0000 (23:49 +0200)]
Avoid autoconf warnings about AM_ICONV.
Bruno Haible [Sun, 16 May 2010 21:41:33 +0000 (23:41 +0200)]
absolute-header: Make the macro usable in more situations.
James Youngman [Sun, 16 May 2010 20:40:14 +0000 (22:40 +0200)]
doc: update users.txt
Jim Meyering [Sun, 16 May 2010 20:30:00 +0000 (22:30 +0200)]
init.sh: fix an error in the previous change; add more comments
* tests/init.sh: Compare exit code in loop against 9, not 2.
Patch by Bruno Haible.
Make the two tests more similar by adding an empty "then" clause.
Add comments.