mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Jon Ringle <jon@ringle.org>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: Re: [ptxdist] [PATCH] configure/Makefile: Check for touch --no-dereference support
Date: Tue, 21 Oct 2014 08:43:35 -0400	[thread overview]
Message-ID: <CAMwGMjzZJQe6NUtiwniz7mfd+CjHsuqhxpwAe1zsnRYF9Rp+8w@mail.gmail.com> (raw)
In-Reply-To: <1413322130-9678-1-git-send-email-jon@ringle.org>

ping...

On Tue, Oct 14, 2014 at 5:28 PM,  <jon@ringle.org> wrote:
> From: Jon Ringle <jringle@gridpoint.com>
>
> Install a wrapper touch that will strip --no-dereference from the args
> if the host installed touch does not support it
>
> Signed-off-by: Jon Ringle <jringle@gridpoint.com>
> ---
>  Makefile.in  | 14 ++++++++++++++
>  configure.ac |  8 ++++++++
>  2 files changed, 22 insertions(+)
>
> diff --git a/Makefile.in b/Makefile.in
> index 64dc808..5787699 100644
> --- a/Makefile.in
> +++ b/Makefile.in
> @@ -39,6 +39,18 @@ kconfig:
>                 conf mconf $(NCONF)
>         @echo "done."
>
> +define touch_wrapper
> +#!/bin/bash
> +
> +declare -a args
> +args=($${@})
> +
> +[ -n "@TOUCH_NO_DEREFERENCE@" ] || args=($${@//--no-dereference/})
> +
> +@GNU_touch@ $${args[*]}
> +endef
> +export touch_wrapper
> +
>  environment:
>         @echo -n "preparing PTXdist environment ..."
>         @ln -sf @AWK@ "$(abs_srcdir)/bin/awk"
> @@ -69,6 +81,8 @@ environment:
>         @ln -sf @BASH@  "$(abs_srcdir)/bin/bash"
>         @ln -sf @SYSCTL@ "$(abs_srcdir)/bin/sysctl"
>         @ln -sf @MAKE@ "$(abs_srcdir)/bin/make"
> +       @echo "$$touch_wrapper" > "$(abs_srcdir)/bin/touch"
> +       @chmod +x "$(abs_srcdir)/bin/touch"
>         @echo " done"
>
>  clean:
> diff --git a/configure.ac b/configure.ac
> index 22c8df0..5fed6c9 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -158,6 +158,7 @@ GNU_TOOL(sort, coreutils)
>  GNU_TOOL(cat, coreutils)
>  GNU_TOOL(tty, coreutils)
>  GNU_TOOL(readlink, coreutils)
> +GNU_TOOL(touch, coreutils)
>  GNU_TOOL(tar, tar)
>  GNU_TOOL(find, findutils)
>  GNU_TOOL(xargs, findutils)
> @@ -278,6 +279,13 @@ if test -z "$MSGFMT"; then
>         AC_MSG_ERROR([gettext could not be found, please install])
>  fi
>
> +dnl Check for touch --no-dereference support
> +AC_CACHE_CHECK([for touch that supports --no-dereference], [ac_cv_path_TOUCH_NO_DEREFERENCE],
> +                  [AC_PATH_PROGS_FEATURE_CHECK([TOUCH_NO_DEREFERENCE], [touch],
> +                    [[$ac_path_TOUCH_NO_DEREFERENCE --no-dereference /dev/null 2> /dev/null && \
> +                        ac_cv_path_TOUCH_NO_DEREFERENCE=$ac_path_TOUCH_NO_DEREFERENCE ac_path_TOUCH_NO_DEREFERENCE_found=:]])])
> +AC_SUBST([TOUCH_NO_DEREFERENCE], [$ac_cv_path_TOUCH_NO_DEREFERENCE])
> +
>  dnl
>  dnl Checks for Python, needed for ipkg-utils
>  dnl
> --
> 1.8.5.4
>

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-10-21 12:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 21:28 jon
2014-10-21 12:43 ` Jon Ringle [this message]
2014-10-30 14:37   ` Jon Ringle
2014-11-13 16:55 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMwGMjzZJQe6NUtiwniz7mfd+CjHsuqhxpwAe1zsnRYF9Rp+8w@mail.gmail.com \
    --to=jon@ringle.org \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox