Commit d35a034a99d4bd6053dfe4bd9b1e2169b951430e broke ptxdist on machines with
BSD mktemp in $PATH. The introduced -t switch is different in BSD variants and
therefore the resulting path is somethink like

---8<---
% mktemp -t -d ptxdist.XXXXXX
/var/folders/mp/g80tgyd55bbc9vqjp9zd20600000gp/T/-d.bQehko2k
ptxdist.gaZrCM
--->8---

which is obviously wrong. Prevent that by providing always the GNU mktemp
variant in $PATH.

Also remove the now redundant check for installed mktemp.

Signed-off-by: Andreas Bießmann <[email protected]>
---

 Makefile.in  | 1 +
 configure.ac | 7 +------
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 72509a2..0c8098d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -50,6 +50,7 @@ environment:
        @ln -sf @GNU_rmdir@ "$(abs_srcdir)/bin/rmdir"
        @ln -sf @GNU_md5sum@ "$(abs_srcdir)/bin/md5sum"
        @ln -sf @GNU_mkdir@ "$(abs_srcdir)/bin/mkdir"
+       @ln -sf @GNU_mktemp@ "$(abs_srcdir)/bin/mktemp"
        @ln -sf @GNU_install@ "$(abs_srcdir)/bin/install"
        @ln -sf @GNU_stat@ "$(abs_srcdir)/bin/stat"
        @ln -sf @GNU_mknod@ "$(abs_srcdir)/bin/mknod"
diff --git a/configure.ac b/configure.ac
index 2a97944..64d7af0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -143,6 +143,7 @@ GNU_TOOL(rm, coreutils)
 GNU_TOOL(rmdir, coreutils)
 GNU_TOOL(md5sum, coreutils)
 GNU_TOOL(mkdir, coreutils)
+GNU_TOOL(mktemp, coreutils)
 GNU_TOOL(install, coreutils)
 GNU_TOOL(stat, coreutils)
 GNU_TOOL(mknod, coreutils)
@@ -241,12 +242,6 @@ if test -z "$UNZIP"; then
        AC_MSG_ERROR([unzip could not be found, please install])
 fi
 
-dnl Check for mktemp
-AC_PATH_PROGS(MKTEMP, mktemp,, $PATH)
-if test -z "$MKTEMP"; then
-       AC_MSG_ERROR([mktemp could not be found, please install])
-fi
-
 dnl Check for wget
 AC_PATH_PROGS(WGET, wget,, $PATH)
 if test -z "$WGET"; then
-- 
1.9.2


-- 
ptxdist mailing list
[email protected]

Reply via email to