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

Bug#870585: marked as done (hevea: Please support SOURCE_DATE_EPOCH)



Your message dated Wed, 05 Dec 2018 19:35:16 +0000
with message-id <E1gUcx2-000GXF-8p@fasolo.debian.org>
and subject line Bug#870585: fixed in hevea 2.32-2
has caused the Debian Bug report #870585,
regarding hevea: Please support SOURCE_DATE_EPOCH
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.)


-- 
870585: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870585
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
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-----

--- End Message ---

Reply to: