Module Name:    src
Committed By:   maya
Date:           Mon Oct 17 18:24:42 UTC 2016

Modified Files:
        src/lib/librumpuser/build-aux: install-sh

Log Message:
use mktemp instead of $RANDOM for tmpdir

..$RANDOM won't work with our /bin/sh.

unsure if this script is used, but it is wrong.
might help the spurious build failures that occasionally
show up on autobuilds.

To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/librumpuser/build-aux/install-sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librumpuser/build-aux/install-sh
diff -u src/lib/librumpuser/build-aux/install-sh:1.1 src/lib/librumpuser/build-aux/install-sh:1.2
--- src/lib/librumpuser/build-aux/install-sh:1.1	Tue Nov  4 19:05:17 2014
+++ src/lib/librumpuser/build-aux/install-sh	Mon Oct 17 18:24:42 2016
@@ -345,7 +345,7 @@ do
 	    # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
-	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+	    tmpdir=$(mktemp -d -p ${TMPDIR:-/tmp})
 	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
 	    if (umask $mkdir_umask &&

Reply via email to