mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Make PTXdist more OS independent
@ 2012-06-13 15:23 Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 01/14] Core CPU count detection: do not rely on a fixed path to the 'sysctl' tool Juergen Beisert
                   ` (14 more replies)
  0 siblings, 15 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

While my tests to get PTXdist work on FreeBSD some issues came up. This
patch series fixes most of these issues (hopefully) and also clean up some
other things to get the configure and make step more robust on non
Linux/GNU systems.

Testers and comments are welcome.

Note: with these patches PTXdist itself can be built. Nothing else yet :(

Juergen


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 01/14] Core CPU count detection: do not rely on a fixed path to the 'sysctl' tool
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 02/14] Sed: prefer the GNU sed tool to do the configure job Juergen Beisert
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Using a fix path is a bad idea. Lets 'configure' search for the tool and use
it as is.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile.in  |    1 +
 bin/ptxdist  |    2 +-
 configure.ac |    3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 8382402..f041814 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -59,6 +59,7 @@ environment:
 	@ln -sf @PYTHON@ "$(abs_srcdir)/bin/python"
 	@ln -sf @SED@ "$(abs_srcdir)/bin/sed"
 	@ln -sf @XARGS@ "$(abs_srcdir)/bin/xargs"
+	@ln -sf @SYSCTL@ "$(abs_srcdir)/bin/sysctl"
 	@echo " done"
 
 clean:
diff --git a/bin/ptxdist b/bin/ptxdist
index e10c03d..e96201e 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2140,7 +2140,7 @@ setup_config() {
 			cpus=1
 		fi
 	# and this one is tested on Darwin and should work on BSDs
-	elif ! cpus="$(/usr/sbin/sysctl -n hw.ncpu)" 2> /dev/null; then
+	elif ! cpus="$(sysctl -n hw.ncpu)" 2> /dev/null; then
 		cpus=1
 	fi
 	local pmf_intern="-j$(( ${cpus} * 2 ))"
diff --git a/configure.ac b/configure.ac
index 44c2448..1723ef9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -182,6 +182,9 @@ case "$AWK_VERSION" in
 esac
 AC_MSG_RESULT([$AWK_VERSION])
 
+# fall back to 'false' for systems which do not provide a 'sysctl' tool
+AC_PATH_PROGS(SYSCTL, sysctl false,, $PATH)
+
 dnl Check for lex
 AC_PROG_LEX
 AC_PATH_PROGS(LEX, ${LEX},, $PATH)
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 02/14] Sed: prefer the GNU sed tool to do the configure job
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 01/14] Core CPU count detection: do not rely on a fixed path to the 'sysctl' tool Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 03/14] Don't check for 'find' twice Juergen Beisert
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 1723ef9..526fa55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -110,7 +110,7 @@ fi
 
 
 dnl Check for sed >= 4.0
-AC_PATH_PROGS(SED, sed,, $PATH)
+AC_PATH_PROGS(SED, gsed sed,, $PATH)
 if test -z "$SED"; then
 	AC_MSG_ERROR([sed could not be found, please install])
 fi
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 03/14] Don't check for 'find' twice
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 01/14] Core CPU count detection: do not rely on a fixed path to the 'sysctl' tool Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 02/14] Sed: prefer the GNU sed tool to do the configure job Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 04/14] Fix: use the 'find' utility which was already detected as the correct one Juergen Beisert
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 configure.ac |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 526fa55..b054145 100644
--- a/configure.ac
+++ b/configure.ac
@@ -272,12 +272,6 @@ if test -z "$CAT"; then
 	AC_MSG_ERROR([cat could not be found, please install])
 fi
 
-dnl Check for find
-AC_PATH_PROGS(FIND, find,, $PATH)
-if test -z "$FIND"; then
-	AC_MSG_ERROR([find could not be found, please install])
-fi
-
 AC_MSG_CHECKING([find version])
 FIND_VERSION=`$FIND --version 2>/dev/null | $SED -ne "s/.*\s\+\([[0-9]]\+\.[[0-9]]\+\.[[0-9]]\+\).*$/\1/p"`
 case "$FIND_VERSION" in
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 04/14] Fix: use the 'find' utility which was already detected as the correct one
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (2 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 03/14] Don't check for 'find' twice Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 05/14] Don't check for 'install' twice Juergen Beisert
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index b054145..956fefd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -273,7 +273,7 @@ if test -z "$CAT"; then
 fi
 
 AC_MSG_CHECKING([find version])
-FIND_VERSION=`$FIND --version 2>/dev/null | $SED -ne "s/.*\s\+\([[0-9]]\+\.[[0-9]]\+\.[[0-9]]\+\).*$/\1/p"`
+FIND_VERSION=`$GNU_find --version 2>/dev/null | $SED -ne "s/.*\s\+\([[0-9]]\+\.[[0-9]]\+\.[[0-9]]\+\).*$/\1/p"`
 case "$FIND_VERSION" in
 4.*) ;;
 *)   AC_MSG_ERROR([we need at least GNU find 4.x]) ;;
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 05/14] Don't check for 'install' twice
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (3 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 04/14] Fix: use the 'find' utility which was already detected as the correct one Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 06/14] Don't check for 'readlink' twice Juergen Beisert
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 configure.ac |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 956fefd..9e73005 100644
--- a/configure.ac
+++ b/configure.ac
@@ -153,12 +153,6 @@ GNU_TOOL(find, findutils)
 dnl Check for egrep
 AC_PROG_EGREP
 
-dnl Check for install
-AC_PROG_INSTALL
-if test -z "${INSTALL}"; then
-	AC_MSG_ERROR([install could not be found, please install e.g.: GNU coreutils])
-fi
-
 dnl Check for gcc
 AC_PROG_CC
 if test -z "$CC"; then
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 06/14] Don't check for 'readlink' twice
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (4 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 05/14] Don't check for 'install' twice Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 07/14] 'sort' is from coreutils. So, handle it like all other coreutil tools Juergen Beisert
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 configure.ac |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 9e73005..2a4d75d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -236,12 +236,6 @@ if test -z "$UNZIP"; then
 	AC_MSG_ERROR([unzip could not be found, please install])
 fi
 
-dnl Check for readlink
-AC_PATH_PROGS(READLINK, readlink,, $PATH)
-if test -z "$READLINK"; then
-	AC_MSG_ERROR([readlink could not be found, please install])
-fi
-
 dnl Check for mktemp
 AC_PATH_PROGS(MKTEMP, mktemp,, $PATH)
 if test -z "$MKTEMP"; then
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 07/14] 'sort' is from coreutils. So, handle it like all other coreutil tools
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (5 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 06/14] Don't check for 'readlink' twice Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 08/14] 'dirname' " Juergen Beisert
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile.in  |    1 +
 configure.ac |    7 +------
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index f041814..0326bf0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -56,6 +56,7 @@ environment:
 	@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 @GNU_sort@ "$(abs_srcdir)/bin/sort"
 	@ln -sf @PYTHON@ "$(abs_srcdir)/bin/python"
 	@ln -sf @SED@ "$(abs_srcdir)/bin/sed"
 	@ln -sf @XARGS@ "$(abs_srcdir)/bin/xargs"
diff --git a/configure.ac b/configure.ac
index 2a4d75d..187e8bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,6 +146,7 @@ GNU_TOOL(mkdir, coreutils)
 GNU_TOOL(install, coreutils)
 GNU_TOOL(stat, coreutils)
 GNU_TOOL(mknod, coreutils)
+GNU_TOOL(sort, coreutils)
 GNU_TOOL(readlink, coreutils)
 GNU_TOOL(tar, tar)
 GNU_TOOL(find, findutils)
@@ -281,12 +282,6 @@ if test $? -ne 0; then
 fi
 AC_MSG_RESULT([ok])
 
-dnl Check for sort
-AC_PATH_PROGS(SORT, sort,, $PATH)
-if test -z "$SORT"; then
-	AC_MSG_ERROR([sort could not be found, please install])
-fi
-
 dnl Check for make
 AC_PATH_PROGS(MAKE, gmake gnumake make,, $PATH)
 if test -z "$MAKE"; then
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 08/14] 'dirname' is from coreutils. So, handle it like all other coreutil tools
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (6 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 07/14] 'sort' is from coreutils. So, handle it like all other coreutil tools Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 09/14] 'cat' " Juergen Beisert
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile.in  |    1 +
 configure.ac |    7 +------
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 0326bf0..c810f4e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -55,6 +55,7 @@ environment:
 	@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_dirname@ "$(abs_srcdir)/bin/dirname"
 	@ln -sf @GNU_readlink@ "$(abs_srcdir)/bin/readlink"
 	@ln -sf @GNU_sort@ "$(abs_srcdir)/bin/sort"
 	@ln -sf @PYTHON@ "$(abs_srcdir)/bin/python"
diff --git a/configure.ac b/configure.ac
index 187e8bb..d50b24c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,6 +146,7 @@ GNU_TOOL(mkdir, coreutils)
 GNU_TOOL(install, coreutils)
 GNU_TOOL(stat, coreutils)
 GNU_TOOL(mknod, coreutils)
+GNU_TOOL(dirname, coreutils)
 GNU_TOOL(sort, coreutils)
 GNU_TOOL(readlink, coreutils)
 GNU_TOOL(tar, tar)
@@ -249,12 +250,6 @@ if test -z "$WGET"; then
 	AC_MSG_ERROR([wget could not be found, please install])
 fi
 
-dnl Check for dirname
-AC_PATH_PROGS(DIRNAME, dirname,, $PATH)
-if test -z "$DIRNAME"; then
-	AC_MSG_ERROR([dirname could not be found, please install])
-fi
-
 dnl Check for cat
 AC_PATH_PROGS(CAT, cat,, $PATH)
 if test -z "$CAT"; then
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 09/14] 'cat' is from coreutils. So, handle it like all other coreutil tools
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (7 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 08/14] 'dirname' " Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 10/14] 'xargs' is from findutils. So, handle it like all other findutils tools Juergen Beisert
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile.in  |    1 +
 configure.ac |    7 +------
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index c810f4e..2d13444 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -55,6 +55,7 @@ environment:
 	@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_cat@ "$(abs_srcdir)/bin/cat"
 	@ln -sf @GNU_dirname@ "$(abs_srcdir)/bin/dirname"
 	@ln -sf @GNU_readlink@ "$(abs_srcdir)/bin/readlink"
 	@ln -sf @GNU_sort@ "$(abs_srcdir)/bin/sort"
diff --git a/configure.ac b/configure.ac
index d50b24c..defa1b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,6 +148,7 @@ GNU_TOOL(stat, coreutils)
 GNU_TOOL(mknod, coreutils)
 GNU_TOOL(dirname, coreutils)
 GNU_TOOL(sort, coreutils)
+GNU_TOOL(cat, coreutils)
 GNU_TOOL(readlink, coreutils)
 GNU_TOOL(tar, tar)
 GNU_TOOL(find, findutils)
@@ -250,12 +251,6 @@ if test -z "$WGET"; then
 	AC_MSG_ERROR([wget could not be found, please install])
 fi
 
-dnl Check for cat
-AC_PATH_PROGS(CAT, cat,, $PATH)
-if test -z "$CAT"; then
-	AC_MSG_ERROR([cat could not be found, please install])
-fi
-
 AC_MSG_CHECKING([find version])
 FIND_VERSION=`$GNU_find --version 2>/dev/null | $SED -ne "s/.*\s\+\([[0-9]]\+\.[[0-9]]\+\.[[0-9]]\+\).*$/\1/p"`
 case "$FIND_VERSION" in
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 10/14] 'xargs' is from findutils. So, handle it like all other findutils tools
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (8 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 09/14] 'cat' " Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 11/14] Find: ensure the 'file' command is always found Juergen Beisert
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile.in  |    2 +-
 configure.ac |   14 +-------------
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 2d13444..83bd4bc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -61,7 +61,7 @@ environment:
 	@ln -sf @GNU_sort@ "$(abs_srcdir)/bin/sort"
 	@ln -sf @PYTHON@ "$(abs_srcdir)/bin/python"
 	@ln -sf @SED@ "$(abs_srcdir)/bin/sed"
-	@ln -sf @XARGS@ "$(abs_srcdir)/bin/xargs"
+	@ln -sf @GNU_xargs@ "$(abs_srcdir)/bin/xargs"
 	@ln -sf @SYSCTL@ "$(abs_srcdir)/bin/sysctl"
 	@echo " done"
 
diff --git a/configure.ac b/configure.ac
index defa1b4..e76f60c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,6 +152,7 @@ GNU_TOOL(cat, coreutils)
 GNU_TOOL(readlink, coreutils)
 GNU_TOOL(tar, tar)
 GNU_TOOL(find, findutils)
+GNU_TOOL(xargs, findutils)
 
 dnl Check for egrep
 AC_PROG_EGREP
@@ -259,19 +260,6 @@ case "$FIND_VERSION" in
 esac
 AC_MSG_RESULT([$FIND_VERSION])
 
-dnl Check for xargs
-AC_PATH_PROGS(XARGS, xargs,, $PATH)
-if test -z "$XARGS"; then
-	AC_MSG_ERROR([xargs could not be found, please install])
-fi
-
-AC_MSG_CHECKING([if xargs -r works as expected])
-echo | ${XARGS} -r false
-if test $? -ne 0; then
-	AC_MSG_ERROR([xargs with "-r" support needed, please install GNU xargs (unsually located in the "findutils" package])
-fi
-AC_MSG_RESULT([ok])
-
 dnl Check for make
 AC_PATH_PROGS(MAKE, gmake gnumake make,, $PATH)
 if test -z "$MAKE"; then
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 11/14] Find: ensure the 'file' command is always found
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (9 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 10/14] 'xargs' is from findutils. So, handle it like all other findutils tools Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 12/14] 'tty' is from coreutils. So, handle it like all other coreutil tools Juergen Beisert
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile.in  |    1 +
 configure.ac |    1 +
 2 files changed, 2 insertions(+)

diff --git a/Makefile.in b/Makefile.in
index 83bd4bc..a5c5ad4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -55,6 +55,7 @@ environment:
 	@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 @PTXDIST_FILE@ "$(abs_srcdir)/bin/file"
 	@ln -sf @GNU_cat@ "$(abs_srcdir)/bin/cat"
 	@ln -sf @GNU_dirname@ "$(abs_srcdir)/bin/dirname"
 	@ln -sf @GNU_readlink@ "$(abs_srcdir)/bin/readlink"
diff --git a/configure.ac b/configure.ac
index e76f60c..3d027b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -280,6 +280,7 @@ AC_PATH_PROGS(FILE, file,, $PATH)
 if test -z "$FILE"; then
 	AC_MSG_ERROR([file could not be found, please install])
 fi
+AC_SUBST([PTXDIST_FILE], [$FILE])
 
 dnl Check for msgfmt
 AC_PATH_PROGS(MSGFMT, msgfmt,, $PATH)
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 12/14] 'tty' is from coreutils. So, handle it like all other coreutil tools
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (10 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 11/14] Find: ensure the 'file' command is always found Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 13/14] Bash: ensure the bash is always found Juergen Beisert
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile.in  |    1 +
 configure.ac |    7 +------
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index a5c5ad4..ebddea5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -53,6 +53,7 @@ environment:
 	@ln -sf @GNU_install@ "$(abs_srcdir)/bin/install"
 	@ln -sf @GNU_stat@ "$(abs_srcdir)/bin/stat"
 	@ln -sf @GNU_mknod@ "$(abs_srcdir)/bin/mknod"
+	@ln -sf @GNU_tty@ "$(abs_srcdir)/bin/tty"
 	@ln -sf @GNU_tar@ "$(abs_srcdir)/bin/tar"
 	@ln -sf @GNU_find@ "$(abs_srcdir)/bin/find"
 	@ln -sf @PTXDIST_FILE@ "$(abs_srcdir)/bin/file"
diff --git a/configure.ac b/configure.ac
index 3d027b0..0715df0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -149,6 +149,7 @@ GNU_TOOL(mknod, coreutils)
 GNU_TOOL(dirname, coreutils)
 GNU_TOOL(sort, coreutils)
 GNU_TOOL(cat, coreutils)
+GNU_TOOL(tty, coreutils)
 GNU_TOOL(readlink, coreutils)
 GNU_TOOL(tar, tar)
 GNU_TOOL(find, findutils)
@@ -288,12 +289,6 @@ if test -z "$MSGFMT"; then
 	AC_MSG_ERROR([gettext could not be found, please install])
 fi
 
-dnl Check for tty
-AC_PATH_PROGS(TTY, tty,, $PATH)
-if test -z "$TTY"; then
-	AC_MSG_ERROR([tty could not be found, please install])
-fi
-
 dnl Check for gcc
 AC_PATH_PROGS(GCC, gcc,, $PATH)
 
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 13/14] Bash: ensure the bash is always found
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (11 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 12/14] 'tty' is from coreutils. So, handle it like all other coreutil tools Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 15:23 ` [ptxdist] [PATCH 14/14] Make: ensure the GNU make " Juergen Beisert
  2012-06-13 16:41 ` [ptxdist] Make PTXdist more OS independent Bernhard Walle
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile.in |    1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.in b/Makefile.in
index ebddea5..c027625 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -64,6 +64,7 @@ environment:
 	@ln -sf @PYTHON@ "$(abs_srcdir)/bin/python"
 	@ln -sf @SED@ "$(abs_srcdir)/bin/sed"
 	@ln -sf @GNU_xargs@ "$(abs_srcdir)/bin/xargs"
+	@ln -sf @BASH@  "$(abs_srcdir)/bin/bash"
 	@ln -sf @SYSCTL@ "$(abs_srcdir)/bin/sysctl"
 	@echo " done"
 
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 14/14] Make: ensure the GNU make is always found
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (12 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 13/14] Bash: ensure the bash is always found Juergen Beisert
@ 2012-06-13 15:23 ` Juergen Beisert
  2012-06-13 16:41 ` [ptxdist] Make PTXdist more OS independent Bernhard Walle
  14 siblings, 0 replies; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 15:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
---
 Makefile.in |    1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.in b/Makefile.in
index c027625..e171045 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -66,6 +66,7 @@ environment:
 	@ln -sf @GNU_xargs@ "$(abs_srcdir)/bin/xargs"
 	@ln -sf @BASH@  "$(abs_srcdir)/bin/bash"
 	@ln -sf @SYSCTL@ "$(abs_srcdir)/bin/sysctl"
+	@ln -sf @MAKE@ "$(abs_srcdir)/bin/make"
 	@echo " done"
 
 clean:
-- 
1.7.10


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Make PTXdist more OS independent
  2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
                   ` (13 preceding siblings ...)
  2012-06-13 15:23 ` [ptxdist] [PATCH 14/14] Make: ensure the GNU make " Juergen Beisert
@ 2012-06-13 16:41 ` Bernhard Walle
  2012-06-13 17:22   ` Juergen Beisert
  14 siblings, 1 reply; 18+ messages in thread
From: Bernhard Walle @ 2012-06-13 16:41 UTC (permalink / raw)
  To: ptxdist

Am 13.06.12 17:23, schrieb Juergen Beisert:
> Testers and comments are welcome.

Do you have a git tree with the patches? Then I could just check if
everything still works on Mac OS. But I'm too lazy to save 14 patches in
Thunderbird and apply them (and too lazy to write a script :D).


Regards,
Bernhard

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Make PTXdist more OS independent
  2012-06-13 16:41 ` [ptxdist] Make PTXdist more OS independent Bernhard Walle
@ 2012-06-13 17:22   ` Juergen Beisert
  2012-06-13 17:26     ` Michael Olbrich
  0 siblings, 1 reply; 18+ messages in thread
From: Juergen Beisert @ 2012-06-13 17:22 UTC (permalink / raw)
  To: ptxdist; +Cc: Bernhard Walle

Hi Bernhard,

Bernhard Walle wrote:
> Am 13.06.12 17:23, schrieb Juergen Beisert:
> > Testers and comments are welcome.
>
> Do you have a git tree with the patches? Then I could just check if
> everything still works on Mac OS. But I'm too lazy to save 14 patches in
> Thunderbird and apply them (and too lazy to write a script :D).

Try this one:

git://git.pengutronix.de/git/jbe/ptxdist, branch bsd_fixes

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Make PTXdist more OS independent
  2012-06-13 17:22   ` Juergen Beisert
@ 2012-06-13 17:26     ` Michael Olbrich
  0 siblings, 0 replies; 18+ messages in thread
From: Michael Olbrich @ 2012-06-13 17:26 UTC (permalink / raw)
  To: ptxdist

On Wed, Jun 13, 2012 at 07:22:18PM +0200, Juergen Beisert wrote:
> Bernhard Walle wrote:
> > Am 13.06.12 17:23, schrieb Juergen Beisert:
> > > Testers and comments are welcome.
> >
> > Do you have a git tree with the patches? Then I could just check if
> > everything still works on Mac OS. But I'm too lazy to save 14 patches in
> > Thunderbird and apply them (and too lazy to write a script :D).
> 
> Try this one:
> 
> git://git.pengutronix.de/git/jbe/ptxdist, branch bsd_fixes

Or ptxdist master. I've applied the patches.

Michael

-- 
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] 18+ messages in thread

end of thread, other threads:[~2012-06-13 17:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 15:23 [ptxdist] Make PTXdist more OS independent Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 01/14] Core CPU count detection: do not rely on a fixed path to the 'sysctl' tool Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 02/14] Sed: prefer the GNU sed tool to do the configure job Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 03/14] Don't check for 'find' twice Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 04/14] Fix: use the 'find' utility which was already detected as the correct one Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 05/14] Don't check for 'install' twice Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 06/14] Don't check for 'readlink' twice Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 07/14] 'sort' is from coreutils. So, handle it like all other coreutil tools Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 08/14] 'dirname' " Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 09/14] 'cat' " Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 10/14] 'xargs' is from findutils. So, handle it like all other findutils tools Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 11/14] Find: ensure the 'file' command is always found Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 12/14] 'tty' is from coreutils. So, handle it like all other coreutil tools Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 13/14] Bash: ensure the bash is always found Juergen Beisert
2012-06-13 15:23 ` [ptxdist] [PATCH 14/14] Make: ensure the GNU make " Juergen Beisert
2012-06-13 16:41 ` [ptxdist] Make PTXdist more OS independent Bernhard Walle
2012-06-13 17:22   ` Juergen Beisert
2012-06-13 17:26     ` Michael Olbrich

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