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

Bug#403267: marked as done (tetex-bin: dvipdfm crash in some timezones)



Your message dated Tue, 09 Jan 2007 17:32:10 +0000
with message-id <E1H4KpW-0004RZ-7j@ries.debian.org>
and subject line Bug#403267: fixed in texlive-bin 2005.dfsg.2-9
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: tetex-bin
Version: 3.0-27
Tags: patch

Hi!

We recently got https://launchpad.net/bugs/66474 about a dvipdfm
crash. I verified the crash and that the patch fixes it (and dvipdfm
still works normally).

Thanks,

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org
diff -u tetex-bin-3.0/debian/rules tetex-bin-3.0/debian/rules
--- tetex-bin-3.0/debian/rules
+++ tetex-bin-3.0/debian/rules
@@ -329,7 +329,7 @@
 	done
 
 	# needs devscripts in etch or from backports.org
-	debchange --distribution sarge-backports -b --newversion 3.0-24ubuntu1~bpo.1 "Recompiled for sarge."
+	debchange --distribution sarge-backports -b --newversion 3.0-24ubuntu2~bpo.1 "Recompiled for sarge."
 	debchange --append \
 	  "Add a Build-Depends on sarge's xlibs-dev to prevent linking against XOrg"
 	debchange --append \
diff -u tetex-bin-3.0/debian/changelog tetex-bin-3.0/debian/changelog
--- tetex-bin-3.0/debian/changelog
+++ tetex-bin-3.0/debian/changelog
@@ -1,3 +1,12 @@
+tetex-bin (3.0-24ubuntu2) feisty; urgency=low
+
+  * Add debian/patches/patch-dvipdfm-timezones:
+    - Fix dvipdfm crash in certain time zones.
+    - Thanks to Alex Murray for digging out the patch!
+    - Closes: LP#66474
+
+ -- Martin Pitt <martin.pitt@ubuntu.com>  Fri, 15 Dec 2006 18:05:19 +0100
+
 tetex-bin (3.0-24ubuntu1) feisty; urgency=low
 
   * Merge to Debian unstable. Remaining Ubuntu changes:
diff -u tetex-bin-3.0/debian/patches/series tetex-bin-3.0/debian/patches/series
--- tetex-bin-3.0/debian/patches/series
+++ tetex-bin-3.0/debian/patches/series
@@ -16,0 +17 @@
+patch-dvipdfm-timezones
only in patch2:
unchanged:
--- tetex-bin-3.0.orig/debian/patches/patch-dvipdfm-timezones
+++ tetex-bin-3.0/debian/patches/patch-dvipdfm-timezones
@@ -0,0 +1,44 @@
+Index: tetex-bin-3.0/texk/dvipdfm/pdfdoc.c
+===================================================================
+--- tetex-bin-3.0.orig/texk/dvipdfm/pdfdoc.c	2006-12-15 18:18:02.000000000 +0100
++++ tetex-bin-3.0/texk/dvipdfm/pdfdoc.c	2006-12-15 18:18:06.000000000 +0100
+@@ -234,7 +234,7 @@
+ {
+ #ifndef HAVE_TIMEZONE
+   #ifdef TM_GM_TOFF
+-     #define timezone (bdtime->gm_toff)
++     #define timezone (bd_time->tm_gmtoff)
+   #else
+      #define timezone 0l
+ #endif /* TM_GM_TOFF */
+@@ -242,15 +242,26 @@
+   static char date_string[24];
+   time_t current_time;
+   struct tm *bd_time;
++  long hh, mm;
+   if (debug) {
+     fprintf (stderr, "(asn_date)");
+   }
+   time(&current_time);
+   bd_time = localtime(&current_time);
+-  sprintf (date_string, "D:%04d%02d%02d%02d%02d%02d%+03ld'%02ld'",
+-	   bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday,
+-	   bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec,
+-	   -timezone/3600, timezone%3600);
++  if (timezone == 0l) {
++    sprintf (date_string, "D:%04d%02d%02d%02d%02d%02dZ00'00'",
++	     bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday,
++	     bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec);
++  } else {
++    hh = timezone/3600;
++    mm = (timezone%3600)/60;
++    if (timezone < 0)
++      mm = -mm;
++    sprintf (date_string, "D:%04d%02d%02d%02d%02d%02d%+03ld'%02ld'",
++             bd_time -> tm_year+1900, bd_time -> tm_mon+1, bd_time -> tm_mday,
++             bd_time -> tm_hour, bd_time -> tm_min, bd_time -> tm_sec,
++             hh, mm);
++  }
+   return date_string;
+ }
+ 

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: texlive-bin
Source-Version: 2005.dfsg.2-9

We believe that the bug you reported is fixed in the latest version of
texlive-bin, which is due to be installed in the Debian FTP archive:

texlive-base-bin_2005.dfsg.2-9_i386.deb
  to pool/main/t/texlive-bin/texlive-base-bin_2005.dfsg.2-9_i386.deb
texlive-bin_2005.dfsg.2-9.diff.gz
  to pool/main/t/texlive-bin/texlive-bin_2005.dfsg.2-9.diff.gz
texlive-bin_2005.dfsg.2-9.dsc
  to pool/main/t/texlive-bin/texlive-bin_2005.dfsg.2-9.dsc
texlive-extra-utils_2005.dfsg.2-9_i386.deb
  to pool/main/t/texlive-bin/texlive-extra-utils_2005.dfsg.2-9_i386.deb
texlive-font-utils_2005.dfsg.2-9_i386.deb
  to pool/main/t/texlive-bin/texlive-font-utils_2005.dfsg.2-9_i386.deb
texlive-lang-indic_2005.dfsg.2-9_i386.deb
  to pool/main/t/texlive-bin/texlive-lang-indic_2005.dfsg.2-9_i386.deb
texlive-metapost_2005.dfsg.2-9_i386.deb
  to pool/main/t/texlive-bin/texlive-metapost_2005.dfsg.2-9_i386.deb
texlive-music_2005.dfsg.2-9_i386.deb
  to pool/main/t/texlive-bin/texlive-music_2005.dfsg.2-9_i386.deb
texlive-omega_2005.dfsg.2-9_i386.deb
  to pool/main/t/texlive-bin/texlive-omega_2005.dfsg.2-9_i386.deb
texlive-pdfetex_2005.dfsg.2-9_i386.deb
  to pool/main/t/texlive-bin/texlive-pdfetex_2005.dfsg.2-9_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 403267@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Norbert Preining <preining@debian.org> (supplier of updated texlive-bin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu,  4 Jan 2007 00:47:50 +0100
Source: texlive-bin
Binary: texlive-extra-utils texlive-pdfetex texlive-lang-indic texlive-omega texlive-font-utils texlive-metapost texlive-base-bin texlive-music
Architecture: source i386
Version: 2005.dfsg.2-9
Distribution: unstable
Urgency: low
Maintainer: Debian TeX Maintainers <debian-tex-maint@lists.debian.org>
Changed-By: Norbert Preining <preining@debian.org>
Description: 
 texlive-base-bin - TeX Live: Essential binaries
 texlive-extra-utils - TeX Live: TeX auxiliary programs
 texlive-font-utils - TeX Live: TeX font-related programs
 texlive-lang-indic - TeX Live: Indic
 texlive-metapost - TeX Live: MetaPost (and Metafont) drawing packages
 texlive-music - TeX Live: Music typesetting
 texlive-omega - TeX Live: Omega
 texlive-pdfetex - TeX Live: pdfTeX
Closes: 402925 403267
Changes: 
 texlive-bin (2005.dfsg.2-9) unstable; urgency=low
 .
   * Apply patch by Julian Gilbey <jdg@debian.org> to prevent mktexlsr from
     creating ls-R in root's home directory (closes: #402925)
   * Apply a patch by "Mark A. Wicks" <mwicks@kettering.edu> to fix a crash
     of dvipdfm in half-hour timezones (Closes: #403267)
Files: 
 533dbfb3ca127329a19aa1dd1fa4aced 1078 tex optional texlive-bin_2005.dfsg.2-9.dsc
 9eb873fac19374cf85dc6d586b0ad20f 175042 tex optional texlive-bin_2005.dfsg.2-9.diff.gz
 281b4c1d0241dcb8cb2b98ccd2c7d2cf 12026628 tex optional texlive-base-bin_2005.dfsg.2-9_i386.deb
 b3f869c5efa9b26cbcd9bc30b7422585 733690 tex optional texlive-extra-utils_2005.dfsg.2-9_i386.deb
 c2d1d054a3fab919856c9bcbb0774115 1418890 tex optional texlive-font-utils_2005.dfsg.2-9_i386.deb
 7e00425e8440aa1a073749927d836e1c 5944672 tex optional texlive-metapost_2005.dfsg.2-9_i386.deb
 37daa55b21111021c0c8fe7acdbaa0c0 3061372 tex optional texlive-omega_2005.dfsg.2-9_i386.deb
 4ea645f3313a94dc2c2497fdbbe8db65 3026752 tex optional texlive-pdfetex_2005.dfsg.2-9_i386.deb
 2b796bec4c9374d7365920d1ee71c37b 419198 tex optional texlive-music_2005.dfsg.2-9_i386.deb
 49293370d7ac4d073fd99efdd06616da 8817866 tex optional texlive-lang-indic_2005.dfsg.2-9_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFnFK+0r9KownFsJQRAg53AJ0dO/NwSpo6DXFGhVLyaqgW5pTxkACgkwzq
ezGAgaOtqpigMOSVROHLdeA=
=l0Zk
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: