In configure.ac the following:
dnl We need touch with -h option support.
test -z "$TOUCH" && AC_MSG_ERROR([touch is required])
if ! "$TOUCH" -h warn 2>/dev/null > /dev/null; then
AC_MSG_ERROR([touch version with -h option support is required to build, please install it and make sure it is the one found first in PATH],,)
great, for gnu platforms, but many Unix distros put gnu coreutils in, for example, /usr/gnu/bin and symlink (in this case)
/usr/bin/gtouch ==> /usr/gnu/bin/touch
The only place this seems to be used at the moment is in solenv/gbuild/Deliver.mk
but here, as in many places (though not all). So this patch initially created by pkgsrc developer Ryo ONODERA and updated by me seems to allow the special 'touch' ;-). BTW, up til now, replace '-hr' by simply '-r' has seemed to work.
--- solenv/gbuild/Deliver.mk.orig 2014-04-30 19:49:45.000000000 +0000
@@ -51,7 +51,7 @@ endif
-$(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) $(if $(gb_Deliver_HARDLINK),ln,cp -P -f) $(1) $(2) && touch -hr $(1) $(2)
+$(if $(gb_Deliver_CLEARONDELIVER),rm -f $(2) &&) $(if $(gb_Deliver_HARDLINK),ln,cp -P -f) $(1) $(2) && $(TOUCH) -hr $(1) $(2)
ifneq ($(strip $(gb_Deliver_GNUCOPY)),)
by the way, it would be nice for us bearded folks who don't habitually put /usr/gnu/bin into our PATH to allow a configure option like for '--with-gnu-cp' or '--with-gnu-patch'... '--with-gnu-touch' seems appropriate *IFF* this single use of 'touch' is really necessary!
(In reply to Richard PALO from comment #0)
> So this patch initially
> created by pkgsrc developer Ryo ONODERA and updated by me seems to allow the
> special 'touch' ;-). BTW, up til now, replace '-hr' by simply '-r' has
> seemed to work.
I had a quick chat with our Release Engineer, and he suggested that you submit another patch to gerrit.
I'm going to mark this as an enhancement and set it to NEW. Please resolve/close it when the underlying issue you raised has been addressed.
this apparently slipped by without notice, sorry:
This is now in master, so it can probably be closed:
Author: Richard PALO <richard@NetBSD.org>
Date: Fri Dec 26 17:47:20 2014 +0100
use special $(TOUCH) for touch -hr
Reviewed-by: Caolán McNamara <email@example.com>
Tested-by: Caolán McNamara <firstname.lastname@example.org>
But perhaps a cherry-pick to the 4-4 series is possible?