summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-25 22:51:45 +0000
committerKarl Berry <karl@freefriends.org>2015-03-25 22:51:45 +0000
commit6739ec4f30bb015ff1f0f5497ad3f9425074d925 (patch)
tree2d84d6581e5f698d67404569ed03a09973976b51 /Build
parentaa9e9c898aef4331784615737ef4c6fbe94e37b1 (diff)
use mktemp program for temp file
git-svn-id: svn://tug.org/texlive/trunk@36626 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/kpathsea/ChangeLog9
-rwxr-xr-xBuild/source/texk/kpathsea/mktexlsr2
2 files changed, 10 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog
index 18ee908215a..31cd1d89885 100644
--- a/Build/source/texk/kpathsea/ChangeLog
+++ b/Build/source/texk/kpathsea/ChangeLog
@@ -1,3 +1,12 @@
+2015-03-25 Karl Berry <karl@tug.org>
+
+ * mktexlsr (treefile): use shell mktemp; patch from Debian
+ via tlbuild mail from Norbert, 6 Mar 2015 09:13:06.
+ Per Nelson Beebe, the program is available on a wide variety of
+ systems nowadays, excluding only SGI IRIX MIPS, which we have
+ not built binaries for in several years.
+ (tlbuild reply, 6 Mar 2015 06:22:21)
+
2015-03-14 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am, kpathsea.pc.in: Install <kpathsea/c-auto.h> under
diff --git a/Build/source/texk/kpathsea/mktexlsr b/Build/source/texk/kpathsea/mktexlsr
index 8d4a38018f9..44354f35e2a 100755
--- a/Build/source/texk/kpathsea/mktexlsr
+++ b/Build/source/texk/kpathsea/mktexlsr
@@ -73,7 +73,7 @@ if tty -s; then verbose=true; else verbose=false; fi
dry_run=false
trees=
-treefile="${TMPDIR-/tmp}/mktexlsrtrees$$.tmp"
+treefile=`mktemp --tmpdir mktexlsrtrees.XXXXXXXXXX` || exit 1
trap 'cd /; rm -f $treefile; test -z "$db_dir_tmp" || rm -rf "$db_dir_tmp";
exit' 0 1 2 3 7 13 15