commit 436ff26c3688198de8e8e48121296eace0b5d119 from: Jason Felice via: Dan Cross date: Mon Nov 11 22:06:55 2019 UTC 9c, 9l: use $TMPDIR if available (#272) NixOS sandboxed builds (at least on Mac) don't have access to /tmp, and this should be better POSIX. commit - b0aecb4ba5c3d7df6589c01f5a7c0427f5a75305 commit + 436ff26c3688198de8e8e48121296eace0b5d119 blob - 3ffb716ca51efd89e33dc0960a60af5cbce64923 blob + 88c47887d4e9d6c217067c41dc5d74197a05808d --- bin/9c +++ bin/9c @@ -133,7 +133,7 @@ case "$tag" in esac # N.B. Must use temp file to avoid pipe; pipe loses status. -xtmp=/tmp/9c.$$.$USER.out +xtmp=${TMPDIR-/tmp}/9c.$$.$USER.out $cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>$xtmp status=$? quiet $xtmp blob - 0e93952478f3679bf40d4b8cd7182d87dc76f4cf blob + 032d380109f6821cac1a23abafbeaf9423c6701a --- bin/9l +++ bin/9l @@ -346,7 +346,7 @@ then echo $ld -L$PLAN9/lib "$@" $libsl $extralibs $frameworks fi -xtmp=/tmp/9l.$$.$USER.out +xtmp="${TMPDIR-/tmp}/9l.$$.$USER.out" xxout() { sed 's/.*: In function `[^:]*: *//' $xtmp | egrep . | egrep -v 'is (often|almost always) misused|is dangerous, better use|text-based stub'