[SCM] Debian packaging of texlive-nonbin) branch, master, updated. debian/all-2012.20130111-1-4-g714dc72
The following commit has been merged in the master branch:
commit 714dc72c87b917834570d32dee7231008df98832
Author: Norbert Preining <preining@debian.org>
Date: Wed Feb 13 12:42:00 2013 +0900
fix predictable temp file names in latex2man (Closes: #668779)
(patch by Tatsuya Kinoshita)
diff --git a/texlive-extra/debian/changelog b/texlive-extra/debian/changelog
index b5c047a..d775b63 100644
--- a/texlive-extra/debian/changelog
+++ b/texlive-extra/debian/changelog
@@ -2,8 +2,10 @@ texlive-extra (2012.20130111-2) UNRELEASED; urgency=low
* texlive-extra-utils now depends on texlive-latex-base to make pdfjam
and friends work out of the box (LP: #1085666)
+ * fix predictable temp file names in latex2man (Closes: #668779)
+ (patch by Tatsuya Kinoshita)
- -- Norbert Preining <preining@debian.org> Fri, 01 Feb 2013 10:41:17 +0900
+ -- Norbert Preining <preining@debian.org> Wed, 13 Feb 2013 12:40:56 +0900
texlive-extra (2012.20130111-1) experimental; urgency=low
diff --git a/texlive-extra/debian/patches/latex2man-mktemp b/texlive-extra/debian/patches/latex2man-mktemp
new file mode 100644
index 0000000..1becc30
--- /dev/null
+++ b/texlive-extra/debian/patches/latex2man-mktemp
@@ -0,0 +1,27 @@
+Do no use predictable temp file names, but mktemp
+patch by Tatsuya Kinoshita
+Debian bug #668779
+---
+ texmf-dist/scripts/latex2man/latex2man | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- texlive-extra-2012.20130111.orig/texmf-dist/scripts/latex2man/latex2man
++++ texlive-extra-2012.20130111/texmf-dist/scripts/latex2man/latex2man
+@@ -29,8 +29,6 @@
+ $VERSION = "1.24";
+ $DATE = date2str ('$Date: 2010/12/22 12:44:30 $' =~ m|(\d+/\d+/\d+)|);
+
+-$tmp = "/tmp/$CMD.$$";
+-
+ ##################################################################
+ # check option and arguments
+ ##################################################################
+@@ -124,6 +122,8 @@
+ $DestFile = $ARGV[1];
+ open (SRC, "<$SrcFile") || die "$CMD: Can't open file \`$SrcFile' for reading.\n";
+ if ($opt_H || $opt_T) {
++ $tmp = `mktemp` || die;
++ chomp $tmp;
+ # DestFile will be written in the postprocess
+ open (DEST, ">$tmp") || die "$CMD: Can't open file \`$tmp' for writing.\n";
+ } else {
diff --git a/texlive-extra/debian/patches/series b/texlive-extra/debian/patches/series
index ae38c4e..b086e03 100644
--- a/texlive-extra/debian/patches/series
+++ b/texlive-extra/debian/patches/series
@@ -1,3 +1,4 @@
fix-scripts
fix-mf2pt1-info
ulqda-use-digest-sha
+latex2man-mktemp
--
Debian packaging of texlive-nonbin)
Reply to: