mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] configure.ac: Check for GNU find
@ 2012-04-07 19:04 Bernhard Walle
  2012-04-08  7:43 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Walle @ 2012-04-07 19:04 UTC (permalink / raw)
  To: ptxdist

One of the specialities of GNU find over BSD find is that you can omit
the path before providing options. This means that "find -name bla" is
equivalent with "find . -name bla". Busybox exposes that behaviour.

So check for GNU find to be on the safe side, and also add the symlink
in the installation directory once we found it.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 Makefile.in  |    1 +
 configure.ac |    1 +
 2 files changed, 2 insertions(+)

diff --git a/Makefile.in b/Makefile.in
index 17a6ce6..8382402 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -54,6 +54,7 @@ environment:
 	@ln -sf @GNU_stat@ "$(abs_srcdir)/bin/stat"
 	@ln -sf @GNU_mknod@ "$(abs_srcdir)/bin/mknod"
 	@ln -sf @GNU_tar@ "$(abs_srcdir)/bin/tar"
+	@ln -sf @GNU_find@ "$(abs_srcdir)/bin/find"
 	@ln -sf @GNU_readlink@ "$(abs_srcdir)/bin/readlink"
 	@ln -sf @PYTHON@ "$(abs_srcdir)/bin/python"
 	@ln -sf @SED@ "$(abs_srcdir)/bin/sed"
diff --git a/configure.ac b/configure.ac
index 78597cc..44c2448 100755
--- a/configure.ac
+++ b/configure.ac
@@ -148,6 +148,7 @@ GNU_TOOL(stat, coreutils)
 GNU_TOOL(mknod, coreutils)
 GNU_TOOL(readlink, coreutils)
 GNU_TOOL(tar, tar)
+GNU_TOOL(find, findutils)
 
 dnl Check for egrep
 AC_PROG_EGREP
-- 
1.7.9.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCH] configure.ac: Check for GNU find
  2012-04-07 19:04 [ptxdist] [PATCH] configure.ac: Check for GNU find Bernhard Walle
@ 2012-04-08  7:43 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2012-04-08  7:43 UTC (permalink / raw)
  To: ptxdist

On Sat, Apr 07, 2012 at 09:04:58PM +0200, Bernhard Walle wrote:
> One of the specialities of GNU find over BSD find is that you can omit
> the path before providing options. This means that "find -name bla" is
> equivalent with "find . -name bla". Busybox exposes that behaviour.
> 
> So check for GNU find to be on the safe side, and also add the symlink
> in the installation directory once we found it.

Thanks, applied.

Michael

> Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
> ---
>  Makefile.in  |    1 +
>  configure.ac |    1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/Makefile.in b/Makefile.in
> index 17a6ce6..8382402 100644
> --- a/Makefile.in
> +++ b/Makefile.in
> @@ -54,6 +54,7 @@ environment:
>  	@ln -sf @GNU_stat@ "$(abs_srcdir)/bin/stat"
>  	@ln -sf @GNU_mknod@ "$(abs_srcdir)/bin/mknod"
>  	@ln -sf @GNU_tar@ "$(abs_srcdir)/bin/tar"
> +	@ln -sf @GNU_find@ "$(abs_srcdir)/bin/find"
>  	@ln -sf @GNU_readlink@ "$(abs_srcdir)/bin/readlink"
>  	@ln -sf @PYTHON@ "$(abs_srcdir)/bin/python"
>  	@ln -sf @SED@ "$(abs_srcdir)/bin/sed"
> diff --git a/configure.ac b/configure.ac
> index 78597cc..44c2448 100755
> --- a/configure.ac
> +++ b/configure.ac
> @@ -148,6 +148,7 @@ GNU_TOOL(stat, coreutils)
>  GNU_TOOL(mknod, coreutils)
>  GNU_TOOL(readlink, coreutils)
>  GNU_TOOL(tar, tar)
> +GNU_TOOL(find, findutils)
>  
>  dnl Check for egrep
>  AC_PROG_EGREP
> -- 
> 1.7.9.5
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-08  7:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-07 19:04 [ptxdist] [PATCH] configure.ac: Check for GNU find Bernhard Walle
2012-04-08  7:43 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox