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

Bug#961764: texi2html: texi2html embeds User and Date information in generated .html files



Package: texi2html
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: toolchain timestamps username
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Files generated by texi2html often embed the build user and build date.

The attached patch removes the code which embeds the build date and
build user in order to achieve reproducible builds for the texi2html
package itself, as well as several other packages identified by the
reproducible builds project:

  https://tests.reproducible-builds.org/debian/issues/unstable/texi2html_captures_users_gecos_issue.html

Maybe additional packages would benefit from this patch as well.


Unfortunately, texi2html appears dead upstream, so I'm not sure there's
anywhere to forward this patch to.


live well,
  vagrant

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 29 May 2020 00:27:27 +0000
X-Dgit-Generated: 1.82+dfsg1-5 990d56af9f181e30e6a2315766afed1040a6ca7b
Subject: Strip out user and date from generated documentation to ensure

reproducible builds.

---

--- texi2html-1.82+dfsg1.orig/texi2html.init
+++ texi2html-1.82+dfsg1/texi2html.init
@@ -1325,25 +1325,6 @@ EOT
 
 sub T2H_DEFAULT_program_string()
 {
-    my $user = $Texi2HTML::THISDOC{'user'};
-    my $date = $Texi2HTML::THISDOC{'today'};
-    $user = '' if (!defined($user));
-    $date = '' if (!defined($date));
-    if (($user ne '') and ($date ne ''))
-    {
-        return  &$I('This document was generated by @emph{%{user}} on @emph{%{date}} using @uref{%{program_homepage}, @emph{%{program}}}.', {
-           'user' => $user, 'date' => $date, 'program_homepage' => $Texi2HTML::THISDOC{'program_homepage'}, 'program' => $Texi2HTML::THISDOC{'program'} }, {'duplicate'=>1});
-    }
-    elsif ($user ne '')
-    {
-        return  &$I('This document was generated by @emph{%{user}} using @uref{%{program_homepage}, @emph{%{program}}}.', {
-           'user' => $user, 'program_homepage' => $Texi2HTML::THISDOC{'program_homepage'}, 'program' => $Texi2HTML::THISDOC{'program'} }, {'duplicate'=>1});
-    }
-    elsif ($date ne '')
-    {
-        return  &$I('This document was generated on @i{%{date}} using @uref{%{program_homepage}, @i{%{program}}}.', {
-           'date' => $date, 'program_homepage' => $Texi2HTML::THISDOC{'program_homepage'}, 'program' => $Texi2HTML::THISDOC{'program'} },{'duplicate'=>1});
-    }
     return &$I('This document was generated using @uref{%{program_homepage}, @emph{%{program}}}.', {
        'program_homepage' => $Texi2HTML::THISDOC{'program_homepage'}, 'program'
 => $Texi2HTML::THISDOC{'program'} },{'duplicate'=>1});

Attachment: signature.asc
Description: PGP signature


Reply to: