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

[texlive-bin] 02/05: use mktemp instead of hard-coded tmp dir in dvitohp (Closes: #496899)



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch master
in repository texlive-bin.

commit 5ae65c8135070603cb0509d8550d86cb15120790
Author: Norbert Preining <preining@debian.org>
Date:   Tue Jun 30 12:35:09 2015 +0900

    use mktemp instead of hard-coded tmp dir in dvitohp (Closes: #496899)
---
 debian/changelog                |  3 ++-
 debian/patches/dvihp-use-mktemp | 22 ++++++++++++++++++++++
 debian/patches/series           |  1 +
 3 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ec8492e..9ebd93e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,9 @@ texlive-bin (2015.20150524.37493-4) unstable; urgency=medium
   * fix missing c-auto.h install (Closes: #790294)
   * add --fail-missing to dh_install call to make sure that we get
     warned if new files are installed
+  * use mktemp instead of hard-coded tmp dir in dvitohp (Closes: #496899)
 
- -- Norbert Preining <preining@debian.org>  Tue, 30 Jun 2015 12:21:51 +0900
+ -- Norbert Preining <preining@debian.org>  Tue, 30 Jun 2015 12:33:57 +0900
 
 texlive-bin (2015.20150524.37493-3) unstable; urgency=medium
 
diff --git a/debian/patches/dvihp-use-mktemp b/debian/patches/dvihp-use-mktemp
new file mode 100644
index 0000000..d81584b
--- /dev/null
+++ b/debian/patches/dvihp-use-mktemp
@@ -0,0 +1,22 @@
+---
+ texk/dviljk/dvihp |    5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+--- texlive-bin.orig/texk/dviljk/dvihp
++++ texlive-bin/texk/dviljk/dvihp
+@@ -6,14 +6,11 @@
+ 
+ : ${DVILJ=dvilj4}       # the dvilj variant to run
+ : ${SPOOL=lpr}          # used to print an LJ file
+-: ${TMPDIR=${TEMP-${TMP-/tmp}}} # for the dvicopy output
+ 
+-tmpdir="${TMPDIR}"/dvihp$$
+-(umask 077; mkdir "$tmpdir") \
++tmpdir=`mktemp -d` \
+   || { echo "cannot create directory \`$tmpdir'."; exit 1; }
+ 
+ trap '
+-  cd "${TMPDIR}"
+   test -d "$tmpdir" && { rm -f "$tmpdir"/*; rmdir "$tmpdir"; }
+   exit 0
+ ' 0 1 2 3 6 7 13 15
diff --git a/debian/patches/series b/debian/patches/series
index 6177e34..a3b940c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ fix-manpages
 ac-ctie
 libpng-arm64-neon-fix
 mktexlsr-use-mktemp
+dvihp-use-mktemp

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texlive-bin.git


Reply to: