Debian Bug report logs - #870585
hevea: Please support SOURCE_DATE_EPOCH

version graph

Package: hevea; Maintainer for hevea is Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>; Source for hevea is src:hevea (PTS, buildd, popcon).

Reported by: Johannes Schauer <josch@debian.org>

Date: Thu, 3 Aug 2017 05:21:01 UTC

Severity: wishlist

Tags: patch

Found in version hevea/2.29-1

Fixed in version hevea/2.32-2

Done: Ralf Treinen <treinen@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, josch@debian.org, reproducible-bugs@lists.alioth.debian.org, Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>:
Bug#870585; Package hevea. (Thu, 03 Aug 2017 05:21:04 GMT) (full text, mbox, link).


Acknowledgement sent to Johannes Schauer <josch@debian.org>:
New Bug report received and forwarded. Copy sent to josch@debian.org, reproducible-bugs@lists.alioth.debian.org, Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>. (Thu, 03 Aug 2017 05:21:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Johannes Schauer <josch@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: hevea: Please support SOURCE_DATE_EPOCH
Date: Thu, 03 Aug 2017 07:18:05 +0200
Package: hevea
Version: 2.29-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps toolchain

Hi,

currently, latex sources which include statements like \today and thus
have to be built with '-exec xxdate.exe' do not respect the timestamp
set via the environment variable SOURCE_DATE_EPOCH. Thus, source
packages using hevea in this way are currently not reproducible. A quick
check revealed that this affects at least src:dose3 and src:whizzytex.

Since xxdate.exe is just a shell script, the fix is simple. Please
consider applying the patch at the bottom of this email to make packages
using hevea build reproducibly.

Thanks!

cheers, josch

diff --git a/xxdate.exe b/xxdate.exe
index 31e48a4..2b86087 100755
--- a/xxdate.exe
+++ b/xxdate.exe
@@ -1,17 +1,18 @@
 #! /bin/sh
+SDE="@${SOURCE_DATE_EPOCH:-$(date +%s)}"
 cat <<EOF
 %% TeX counters
-\newcounter{year}\setcounter{year}{`date +"%Y" 2> /dev/null || date | awk '{print $NF}'`}
-\newcounter{month}\setcounter{month}{`date +"%m"`}
-\newcounter{day}\setcounter{day}{`date +"%d"`}
-\newcounter{time}\setcounter{time}{60 * `date +"%H"` + `date +"%M"`}
+\newcounter{year}\setcounter{year}{`date --utc --date=$SDE +"%Y" 2> /dev/null || date --utc --date=$SDE | awk '{print $NF}'`}
+\newcounter{month}\setcounter{month}{`date --utc --date=$SDE +"%m"`}
+\newcounter{day}\setcounter{day}{`date --utc --date=$SDE +"%d"`}
+\newcounter{time}\setcounter{time}{60 * `date --utc --date=$SDE +"%H"` + `date --utc --date=$SDE +"%M"`}
 %% Extras
-\newcounter{hour}\setcounter{hour}{`date +"%H"`}
+\newcounter{hour}\setcounter{hour}{`date --utc --date=$SDE +"%H"`}
 \newcounter{Hour}\setcounter{Hour}{\value{hour}-(\value{hour}/12)*12}
-\newcounter{weekday}\setcounter{weekday}{`date +"%w"`}
-\newcounter{minute}\setcounter{minute}{`date +"%M"`}
-\newcounter{second}\setcounter{second}{`date +"%S"`}
+\newcounter{weekday}\setcounter{weekday}{`date --utc --date=$SDE +"%w"`}
+\newcounter{minute}\setcounter{minute}{`date --utc --date=$SDE +"%M"`}
+\newcounter{second}\setcounter{second}{`date --utc --date=$SDE +"%S"`}
 \def\ampm{\ifthenelse{\value{hour}>12}{PM}{AM}}
-\def\timezone{`date +"%Z" 2> /dev/null || date | awk '{print $5}'`}
-\def\heveadate{`date`}
+\def\timezone{`date --utc --date=$SDE +"%Z" 2> /dev/null || date --utc --date=$SDE | awk '{print $5}'`}
+\def\heveadate{`date --utc --date=$SDE`}
 EOF
\ No newline at end of file



Added tag(s) pending. Request was from Ralf Treinen <treinen@debian.org> to control@bugs.debian.org. (Tue, 04 Dec 2018 20:39:02 GMT) (full text, mbox, link).


Reply sent to Ralf Treinen <treinen@debian.org>:
You have taken responsibility. (Wed, 05 Dec 2018 19:39:03 GMT) (full text, mbox, link).


Notification sent to Johannes Schauer <josch@debian.org>:
Bug acknowledged by developer. (Wed, 05 Dec 2018 19:39:03 GMT) (full text, mbox, link).


Message #12 received at 870585-close@bugs.debian.org (full text, mbox, reply):

From: Ralf Treinen <treinen@debian.org>
To: 870585-close@bugs.debian.org
Subject: Bug#870585: fixed in hevea 2.32-2
Date: Wed, 05 Dec 2018 19:35:16 +0000
Source: hevea
Source-Version: 2.32-2

We believe that the bug you reported is fixed in the latest version of
hevea, 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 870585@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ralf Treinen <treinen@debian.org> (supplier of updated hevea 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: Wed, 05 Dec 2018 20:10:40 +0100
Source: hevea
Binary: hevea
Architecture: source
Version: 2.32-2
Distribution: unstable
Urgency: medium
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Ralf Treinen <treinen@debian.org>
Description:
 hevea      - translates from LaTeX to HTML, info, or text
Closes: 870585
Changes:
 hevea (2.32-2) unstable; urgency=medium
 .
   * Honour the SOURCE_DATE_EPOCH environment variable (closes: #870585):
     - Patch source_date_epoch, based on a patch by Johannes Schauer (thanks!),
       but leaves the timezone untouched when SOURCE_DATE_EPOCH is not set.
     - Mention that environment variable in our hevea(1) manpage.
     - add a test case.
   * Standards-Version 4.2.1 (no change)
   * Debian/changelog: remove some trailing whitespace
Checksums-Sha1:
 3c7bdd7f90285ae96e4bc3e6b061f9bec554c627 2036 hevea_2.32-2.dsc
 881bffb615fcb9855b37b2ac893d547a2114ac4b 18892 hevea_2.32-2.debian.tar.xz
 8c5189469b7fe3b5c9a124d38aeb069957635e83 5763 hevea_2.32-2_source.buildinfo
Checksums-Sha256:
 d866c8f2d08294fba9d7a4c0903415358de057880ab2d7c5bbc910afa084c8d9 2036 hevea_2.32-2.dsc
 0f6659b9690a11fd65af78d6ab726f30ac4664cc2b40cce50b896bc6fd70b1f2 18892 hevea_2.32-2.debian.tar.xz
 aa0ea6180172ece9f3d01fa98345fc7740da4f810f8d0a22dcd4cfef1f2e6d1d 5763 hevea_2.32-2_source.buildinfo
Files:
 29187e114b7b6e83c8e20e60074cf045 2036 tex optional hevea_2.32-2.dsc
 657b5a060b56c0028f36468ca1f3ed14 18892 tex optional hevea_2.32-2.debian.tar.xz
 70f1b51da02ad73f3aea542aa205369c 5763 tex optional hevea_2.32-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEAgVIKeEtDyqOZI5idFxHZtTKzf8FAlwIJG4ACgkQdFxHZtTK
zf89Sw/+Nt3Y/4VMmmG9XJgf5AR7BaSiPzcSiuo75XTRV0R9RVcXQTA1Mf93bue+
ZQfdv2ah1FO/98mG/9izsl5k4WqFEHJx3vZxAsN/IwcUis4QBGPPwMgGTO+k7yhT
jF2P1smJ3z+HunxEmkH359CVwjK1FjO9goB6eaQbIfWhVUrDJEgJAaAhL0qjkOIP
ZAvMeeCQiqz0bu/KHHEz2/+zNP0w7F4g6aLCE0CFpCDbWzSbKJoaEczGcg+0OT7m
TW9FedEocvLxGNuluT/AdymVEFo0tZQhp2x401PCfKvGFYpBPDcgy42O0WimjfOr
kBkFNb1kIKUimdC4Qo/gnQvmqeCFC194kmncXJSFVYF2naORsl0zyfNn/wqaW9xO
OVFyQHq1Z66HijCrDd70KwiARTzNxeFO+Mpo74/2HMK3tn8TS6CC+rykcIt69N/H
5UcZya6Drohl7BENBe0F5nvo2cf5KoblTHZ6ULY82UI66RKD5AqBKSPlBSrYZ1Mo
HpI+lPS4+bZPPGm+R89h2QMGnmJDeZWdOoqy6sWU37nMD+WOwN0Q6fQMX2urneck
KwvMKXe6RscqLLNcm42kJPnsxahOOIqrHG0R7HTdKpkRfO1HAHhQGMeYiAEEqPNW
OrHo+RlPGDRPnFxcrZwQrMvEJyPaAOFSgQDMX+Ufe5YLXlGWLLc=
=zuHH
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 05 Jan 2019 07:31:32 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 13:25:32 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.