Jim Meyering [Thu, 4 Mar 2010 14:36:51 +0000 (15:36 +0100)]
utime: remove obsolete module
This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
unnecessary for years, and has been marked as obsolete for 10 months.
* modules/utime: Remove file.
* lib/utime.c: Remove file.
* m4/utime.m4: Remove file.
* m4/utimes-null.m4: Remove file.
* doc/posix-functions/utime.texi (utime): Remove reference to
the module. Move the sole "fixed by gnulib" item into the
"problems not fixed by Gnulib" list.
* MODULES.html.sh (func_all_modules): Remove reference to "utime".
Ben Walton [Fri, 12 Feb 2010 13:32:00 +0000 (08:32 -0500)]
copy-acl: enhance Solaris ACL error handling
Gracefully handle EOPNOTSUPP in qcopy_acl and qset_acl. These
functions, as used in coreutils, were causing the test suite to fail
on Solaris 8 i386 with ZFS-backed NFSv3 mounts. The failures included
errors such as:
FAIL: cp/backup-dir
cp: preserving permissions for `y/x': Operation not supported on
transport endpoint
* lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
* lib/set-mode-acl.c (qset_acl): Likewise.
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca> Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Tue, 23 Feb 2010 17:57:38 +0000 (10:57 -0700)]
warn-on-use: work with old autoconf
Before autoconf documented the AS_VAR_* interfaces, it used to
require the user to pre-expand the pushed macro name. Newer
autoconf can see through macros, but this is one case where
breaking the rule of thumb and underquoting does not hurt.
* m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
AS_VAR semantics of autoconf 2.60.
Reported by Bruno Haible.
Eric Blake [Tue, 23 Feb 2010 15:22:04 +0000 (08:22 -0700)]
gettimeofday: provide correct function
* lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
when replacement is declared, otherwise provide gettimeofday.
Reported by Michael Goffioul.
Eric Blake [Mon, 22 Feb 2010 22:28:38 +0000 (15:28 -0700)]
bootstrap: support non-FSF copyright holder
Allow non-FSF projects, like libvirt, to make full use of bootstrap.
* build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
bootstrap.conf override of COPYRIGHT_HOLDER.
(MSGID_BUGS_ADDRESS): Allow URL rather than email.
Eric Blake [Mon, 22 Feb 2010 15:46:42 +0000 (08:46 -0700)]
bootstrap: use GNULIB_SRCDIR to reduce disk usage
This slightly changes the semantics of GNULIB_SRCDIR; previously,
it was a way to change the contents of .gitmodules to actually
point to a new location, which meant that running:
GNULIB_SRCDIR=~/gnulib ./bootstrap
would result in a dirty tree. The new semantics are nicer; the
submodule is cloned as normal, but the clone uses the original
$GNULIB_SRCDIR as an object reference to reduce download time
and disk space.
* build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
rather than reconfiguring where the submodule points.
Eric Blake [Mon, 22 Feb 2010 16:00:06 +0000 (09:00 -0700)]
gettimeofday: restore support for platforms that lack function
Fixes a regression from 2010-02-04, commit de4d0a3.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
replacement if function is missing.
* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
* modules/sys_time (Makefile.am): Substitute it.
* lib/sys_time.in.h (gettimeofday): Check it.
Reported by Michael Goffioul.
Jim Meyering [Sun, 21 Feb 2010 16:47:43 +0000 (17:47 +0100)]
init.sh: fix EXEEXT shims to work also for names like test-prog
* tests/init.sh: Re-exec a better shell, when needed.
If the current shell lacks support for posix $(...), an init.sh-using
test will now try to find a shell that supports that. If EXEEXT is
nonempty, we also require support for hyphen-in-alias-name and shell
substitutions like ${var#glob}. Failure to find such a shell results
in a skipped test.
Jim Meyering [Sat, 13 Feb 2010 14:51:37 +0000 (15:51 +0100)]
init.sh: improve portability and efficiency
* tests/init.sh (find_exe_basenames_): Remove unnecessary use of
"dummy" in a for loop.
Use '!', not '^' to select the complement of a character set used
in a "case" statement.
Use shell variable manipulation, a la ${...%.exe}, rather than sed.
Suggestions from Eric Blake.
Jim Meyering [Mon, 18 Jan 2010 07:08:18 +0000 (08:08 +0100)]
init.sh: automatically accommodate programs with the .exe suffix
Automatically arrange for an invocation of "prog" to execute the
program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
may use the simpler "prog", yet still work when built on a system
that requires specifying the added suffix.
Do this by constructing a function named "prog" that invokes
"prog.exe" for each .exe file in selected directories.
* tests/init.sh (find_exe_basenames_): New function.
(create_exe_shim_functions_): New function.
(path_prepend_): Use it.
Jim Meyering [Sun, 14 Feb 2010 15:42:22 +0000 (16:42 +0100)]
maint.mk: allow the default upload destination dir to be overridden
* top/maint.mk (upload_dest_dir_): Define with a default that
preserves the status quo.
(emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
Reported by Peter Simons.