From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vc0-x22d.google.com ([2607:f8b0:400c:c03::22d]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XbKjX-0002EL-KS for ptxdist@pengutronix.de; Tue, 07 Oct 2014 04:42:40 +0200 Received: by mail-vc0-f173.google.com with SMTP id ij19so4092281vcb.32 for ; Mon, 06 Oct 2014 19:42:33 -0700 (PDT) From: jon@ringle.org Date: Mon, 6 Oct 2014 22:42:17 -0400 Message-Id: <1412649737-28949-2-git-send-email-jon@ringle.org> In-Reply-To: <1412649737-28949-1-git-send-email-jon@ringle.org> References: <1412649737-28949-1-git-send-email-jon@ringle.org> Subject: [ptxdist] [PATCH 2/2] host-coreutils: build touch Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Jon Ringle From: Jon Ringle As of commit ec2b023f4b5207eec76f711d8d8e5fe2854fee6c, ptxdist now depends upon touch having --no-dereference, but older versions of touch do not have this option, resulting int the following error message: touch: unrecognized option '--no-dereference' Try `touch --help' for more information. So, we will install one that does support --no-dereference Signed-off-by: Jon Ringle --- rules/host-coreutils.make | 6 +++--- rules/post/virtual.make | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rules/host-coreutils.make b/rules/host-coreutils.make index f6fe941..2bcd8a0 100644 --- a/rules/host-coreutils.make +++ b/rules/host-coreutils.make @@ -25,7 +25,7 @@ HOST_COREUTILS_SKIP := \ nohup nproc numfmt od paste pathchk pinky pr printenv printf ptx \ pwd readlink realpath rm rmdir runcon seq sha1sum sha224sum \ sha256sum sha384sum sha512sum shred shuf sleep sort split stat \ - stdbuf stty sum sync tac tail tee test [ timeout touch tr true \ + stdbuf stty sum sync tac tail tee test [ timeout tr true \ truncate tsort tty uname unexpand uniq unlink uptime users vdir \ wc who whoami yes @@ -42,7 +42,7 @@ HOST_COREUTILS_CONF_OPT := \ --disable-libsmack \ --disable-xattr \ --disable-libcap \ - --enable-install-program=ln \ + --enable-install-program=ln,touch \ --enable-no-install-program=$(subst $(space),$(comma),$(strip $(HOST_COREUTILS_SKIP))) \ --disable-nls \ --without-openssl \ @@ -55,7 +55,7 @@ HOST_COREUTILS_CONF_OPT := \ $(STATEDIR)/host-coreutils.install: @$(call targetinfo) @$(call world/install, HOST_COREUTILS) - @find $(HOST_COREUTILS_PKGDIR) -type f -executable ! -name ln | xargs rm + @find $(HOST_COREUTILS_PKGDIR) -type f -executable ! \( -name ln -o -name touch \) | xargs rm @$(call touch) # vim: syntax=make diff --git a/rules/post/virtual.make b/rules/post/virtual.make index 2d5a2b5..5bc7232 100644 --- a/rules/post/virtual.make +++ b/rules/post/virtual.make @@ -41,6 +41,10 @@ ifdef PTXCONF_HOST_CHRPATH $(STATEDIR)/virtual-host-tools.install: $(STATEDIR)/host-chrpath.install.post endif +ifdef PTXCONF_HOST_COREUTILS +$(STATEDIR)/virtual-host-tools.install: $(STATEDIR)/host-coreutils.install.post +endif + $(STATEDIR)/virtual-host-tools.install: @$(call targetinfo) @$(call touch) -- 1.8.5.4 -- ptxdist mailing list ptxdist@pengutronix.de