https://bugs.freedesktop.org/show_bug.cgi?id=86345
Bug ID: 86345
Summary: "We need touch with -h option support" but we don't
use $(TOUCH)
Product: LibreOffice
Version: 4.3.2.2 release
Hardware: Other
OS: Solaris
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Libreoffice
Assignee: [email protected]
Reporter: [email protected]
In configure.ac the following:
dnl ===================================================================
dnl We need touch with -h option support.
dnl ===================================================================
AC_PATH_PROG(TOUCH, touch)
test -z "$TOUCH" && AC_MSG_ERROR([touch is required])
touch warn
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],,)
fi
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.
========================>8==================================================
--- solenv/gbuild/Deliver.mk.orig 2014-04-30 19:49:45.000000000 +0000
+++ solenv/gbuild/Deliver.mk
@@ -51,7 +51,7 @@ endif
endef
define gb_Deliver__deliver
-$(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)
endef
ifneq ($(strip $(gb_Deliver_GNUCOPY)),)
========================>8==================================================
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!
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs