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

Bug#792181: marked as done (tth: please make the build reproducible)



Your message dated Sun, 25 Oct 2015 10:51:03 +0000
with message-id <E1ZqItD-0008Ac-M0@franck.debian.org>
and subject line Bug#792181: fixed in tth 4.05+ds-2
has caused the Debian Bug report #792181,
regarding tth: please make the build reproducible
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
792181: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792181
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: tth
Version: 4.05+ds-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds"€ effort [1], we have noticed
that tth could not be built reproducibly.
The build timestamp is embedded into several HTML files.

The attached patch fixes this by removing the timestamp from generated
HTML files, as it provides no useful information anyway.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds

diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..1008736
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,41 @@
+Author: Reiner Herrmann <reiner@reiner-h.de>
+Description: Don't embed timestamp into HTML
+ For generated HTML files, the current timestamp is embedded.
+ As this prevents the package from building reproducible and
+ provides no useful information it can be removed.
+
+Index: tth-4.05+ds/tthg.lex
+===================================================================
+--- tth-4.05+ds.orig/tthg.lex
++++ tth-4.05+ds/tthg.lex
+@@ -5977,7 +5977,6 @@ char ttver[]=TTH_VERSION;
+ char ttname[20];
+ time_t secs_elapsed;
+ time_t make_time=939087164;
+-char timestr[]="On 00 Jan 2000, 00:00.";
+ FILE *fdin=0;
+ int horizmode=1; /* In signoff use font tags not divs */
+ char main_input[TTH_CHARLEN];
+@@ -6135,20 +6134,12 @@ char main_output[TTH_CHARLEN];
+   yylex();
+   fprintf(stderr, "Number of lines processed approximately %d\n", 
+ 	  tth_num_lines-1);
+-  /* Time stamp */
+-  time(&secs_elapsed);
+-  spoint=ctime(&secs_elapsed);
+-  strncpy(timestr+3,spoint+8,2);
+-  strncpy(timestr+6,spoint+4,3);
+-  strncpy(timestr+10,spoint+20,4);
+-  strncpy(timestr+16,spoint+11,5);
+-  if(raw==2)*timestr=0; /* Not if -r2 */
+   if(raw!=1 && raw != 4){
+     fprintf(tth_fdout,"\n<br /><br /><hr /><small>File translated from\n\
+ T<sub>%sE%s</sub>X\nby <a href=\"http://hutchinson.belmont.ma.us/tth/\";>\n\
+ T<sub>%sT%s</sub>%s</a>,\n\
+-version %s.<br />%s</small>\n",TTH_SMALL,TTH_SIZEEND,TTH_SMALL,TTH_SIZEEND
+-		    ,TTH_NAME,TTH_VERSION,timestr);
++version %s.</small>\n",TTH_SMALL,TTH_SIZEEND,TTH_SMALL,TTH_SIZEEND
++		    ,TTH_NAME,TTH_VERSION);
+   }
+   if(raw!=1){
+     if(tth_htmlstyle&3)fprintf(tth_fdout,"</div></body>");
diff --git a/debian/patches/series b/debian/patches/series
index 8e030db..9f5fb8c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ secure-upstream-doc.patch
 silence-upstream-doc.patch
 debianization.patch
 debianization-clean.patch
+reproducible_build.patch

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: tth
Source-Version: 4.05+ds-2

We believe that the bug you reported is fixed in the latest version of
tth, which is due to be installed in the Debian FTP archive.

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 792181@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jerome Benoit <calculus@rezozer.net> (supplier of updated tth 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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 25 Oct 2015 02:19:55 +0000
Source: tth
Binary: ttm tth tth-common
Architecture: source amd64
Version: 4.05+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Tex Maintainers <debian-tex-maint@lists.debian.org>
Changed-By: Jerome Benoit <calculus@rezozer.net>
Description:
 tth        - TeX/LaTeX to HTML converter
 tth-common - auxiliary software material for TtH and TtM
 ttm        - TeX/LaTeX to MathML converter
Closes: 792181
Changes:
 tth (4.05+ds-2) unstable; urgency=medium
 .
   * Secure release (Closes: #792181): reproducible builds --- thanks to
     Reiner Herrmann <reiner@reiner-h.de> for providing the patch.
   * Debianization:
     - Standards Version, bump to 3.9.6;
     - debian/copyrigth, refresh;
     - debian/rules, harden.
Checksums-Sha1:
 acb669cf58ad0fbbc30b8223172e3d8d5f56bf98 2017 tth_4.05+ds-2.dsc
 cc8fd89cce62ef7cee716ac3668c003701e947f0 27176 tth_4.05+ds-2.debian.tar.xz
 37e6ef998f819eec76f3153c776fb8682277d9fa 42984 tth-common_4.05+ds-2_amd64.deb
 fd8a364a7d567c2af60ae2691849a520b5863648 261166 tth_4.05+ds-2_amd64.deb
 849aa071d0ad0bc223857bd687e34882db93bda4 256248 ttm_4.05+ds-2_amd64.deb
Checksums-Sha256:
 45c12ba8717a2a2eab3fde309bb46870ac0b525957d27e69d668fe6bf97948bc 2017 tth_4.05+ds-2.dsc
 20dc751ae26fe8f7f08d3cc4373e3e1f848d9cb6941a80ee067eb28363a72367 27176 tth_4.05+ds-2.debian.tar.xz
 43a894d202ba0b2b799eb0477161756252e50a846b08e2c48bc2b4a801c0d252 42984 tth-common_4.05+ds-2_amd64.deb
 7d2828d73bec2f14650c3c6e84524df4f1957799d916928896d1f6cc6d557729 261166 tth_4.05+ds-2_amd64.deb
 20d55e990b38d2266a2e8cce06d5e173468459ed812de5ce02d005cedf2110a3 256248 ttm_4.05+ds-2_amd64.deb
Files:
 e86458478c21379abfc6c76e89846619 2017 tex optional tth_4.05+ds-2.dsc
 987c17d963806c30f611b207a36ba065 27176 tex optional tth_4.05+ds-2.debian.tar.xz
 d1cb594fcd15c9aff4a1fe53aac30800 42984 tex optional tth-common_4.05+ds-2_amd64.deb
 43fb1e8c1bb3edf992a99dcf8449f59c 261166 tex optional tth_4.05+ds-2_amd64.deb
 d6aa0ad5d1c2104f65feec3774ff2300 256248 tex optional ttm_4.05+ds-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBViywP2yspEiGDNwTAQjK5A/7B5d/riHEGfgjYVrZVbs6HJsPnv7XPO+K
oYb5CHlD/LU0XCJ5Vv0AIXy81KtHFwS4Fgj9LARy9amKUdQWxcTy8OEqDgrm3Qog
lOgraP7uJWLPSz8nZLxrIYXrpOVaUNLKqwUHIPZiiAXltNUDa1M/VCm2mTEf5vhi
ZFEaZD5VsNkRUTE3Qq+4v5cfsd02urRZyt+Cj0yvnpK0gteTIAFL9UxsPFEWqhKB
9HekkOrGpUDW34m7cwyTcgBObi8aYC1qAzVE4M+TWzs207MzA257BJk4hW5mHV2+
TG+/VuYTDQgEHmzG5OR+eJMM3cVI0Op3MED+ydfC7SJkEPrtjQ7nhK3ecJsXx6O9
om2jPU4faKksnnjxYKKsQgy6BhO3wh8b3JzktSUUBc54Sr9rDDOxVhCjix3/UYfx
ImJYSaabCZkWI1bq4zRYM6f12Omf1x3E49fWb7E+AISHfN4wCuxt2e0mjOdOsLUa
H9NPAi6gzsrB19RfQ9ZCiqcx7B1E7GFTRylgX4c2eYVTtQhI5o/tM5brl9pSkqzi
ieQAwZ4UJpfjvBKAr5T5d3JiAV23LxcnSBJtMISrFUV6J6t0Me8oln7L7ahaBDNg
6lZiyN5HO8UFZIL2xy3xf+HQWaoK4It30HXFSDwk36t9nYahd3My8scmCcRayC5Y
Xorg+s76kwY=
=EVfG
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: