summarylogtreecommitdiffstats
path: root/0004-Fix-mktemp-too-few-X-s-in-template-texmacs.patch
blob: 1b37e2cb780a787404a70ede065ca1abf3af1f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From a16fc15f9a4045e5c35878dd3daf56bc231db60b Mon Sep 17 00:00:00 2001
From: wangjiezhe <wangjiezhe@gmail.com>
Date: Sat, 11 Jun 2016 17:41:26 +0800
Subject: [PATCH 4/4] Fix: `mktemp: too few X's in template 'texmacs'`

---
 configure        | 2 +-
 misc/m4/iconv.m4 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 6b01ec5..da63a18 100755
--- a/configure
+++ b/configure
@@ -10045,7 +10045,7 @@ fi
 
 if [[ "$withval" != no ]]
 then
-  LC_ICONV_TEMP=$(mktemp -t texmacs)
+  LC_ICONV_TEMP=$(mktemp -t texmacsXXXXXX)
 
   LC_ICONV_PATH=$(echo ${LDFLAGS//\/lib/\/include})
 
diff --git a/misc/m4/iconv.m4 b/misc/m4/iconv.m4
index fa88c6f..ac51dc6 100644
--- a/misc/m4/iconv.m4
+++ b/misc/m4/iconv.m4
@@ -9,7 +9,7 @@ AS_HELP_STRING([--with-iconv@<:@=DIR@:>@], [where to find iconv []]),
 
 if [[[ "$withval" != no ]]]
 then
-  [$0]_TEMP=$(mktemp -t texmacs)
+  [$0]_TEMP=$(mktemp -t texmacsXXXXXX)
 
   [$0]_PATH=$(echo ${LDFLAGS//\/lib/\/include})
   AX_SAVE_FLAGS
-- 
2.8.3