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

Bug#668779: /usr/bin/latex2man: latex2man: predictable /tmp filenames



Dear Release Managers, dear Jonathan,

On Mo, 18 Mär 2013, Jonathan Wiltshire wrote:
> through point releases:
> 
> squeeze (6.0.7) - use target "stable"
> 
> Please prepare a minimal-changes upload targetting each of these suites,
> and submit a debdiff to the Release Team [0] for consideration. They will
> offer additional guidance or instruct you to upload your package.

Attached is a debdiff for the version prepared. Please let me know
if this is fine and I will upload the files.

Thanks

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
diff -u texlive-extra-2009/debian/changelog texlive-extra-2009/debian/changelog
--- texlive-extra-2009/debian/changelog
+++ texlive-extra-2009/debian/changelog
@@ -1,3 +1,10 @@
+texlive-extra (2009-10+squeeze1) stable; urgency=low
+
+  * fix predictable temp file names in latex2man (Closes: #668779)
+    (patch by Tatsuya Kinoshita)
+
+ -- Norbert Preining <preining@debian.org>  Thu, 21 Mar 2013 13:45:06 +0900
+
 texlive-extra (2009-10) unstable; urgency=low
 
   * add the forgotten epoch for musixtex dependency (Closes: #587746)
diff -u texlive-extra-2009/debian/patches/series texlive-extra-2009/debian/patches/series
--- texlive-extra-2009/debian/patches/series
+++ texlive-extra-2009/debian/patches/series
@@ -8,0 +9 @@
+latex2man-mktemp
only in patch2:
unchanged:
--- texlive-extra-2009.orig/debian/patches/latex2man-mktemp
+++ texlive-extra-2009/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-2009.orig/texmf-dist/scripts/latex2man/latex2man
++++ texlive-extra-2009/texmf-dist/scripts/latex2man/latex2man
+@@ -29,8 +29,6 @@
+ $VERSION = "1.23";
+ $DATE    = date2str ('$Date: 2008/11/11 07:21:14 $' =~ m|(\d+/\d+/\d+)|);
+ 
+-$tmp = "/tmp/$CMD.$$";
+-
+ ##################################################################
+ # check option and arguments
+ ##################################################################
+@@ -122,6 +120,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 {

Reply to: