Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumpuser/build-aux use mktemp instead of $RANDOM for ...



details:   https://anonhg.NetBSD.org/src/rev/f875d80fa790
branches:  trunk
changeset: 818541:f875d80fa790
user:      maya <maya%NetBSD.org@localhost>
date:      Mon Oct 17 18:24:42 2016 +0000

description:
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.

diffstat:

 lib/librumpuser/build-aux/install-sh |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7cd05a25f7c1 -r f875d80fa790 lib/librumpuser/build-aux/install-sh
--- a/lib/librumpuser/build-aux/install-sh      Mon Oct 17 18:23:49 2016 +0000
+++ b/lib/librumpuser/build-aux/install-sh      Mon Oct 17 18:24:42 2016 +0000
@@ -345,7 +345,7 @@
            # 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 &&



Home | Main Index | Thread Index | Old Index