Your message dated Fri, 17 Mar 2017 11:53:05 +0000
with message-id <[email protected]>
and subject line Bug#828756: fixed in python-reportlab 3.3.0-2
has caused the Debian Bug report #828756,
regarding python-reportlab: please honour 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 [email protected]
immediately.)
--
828756: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=828756
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-reportlab
Version: 3.3.0-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: toolchain timestamps
Hi,
While working on the “reproducible builds” effort [1], we have noticed that
reportlab embeds current timestamp in the generated PDF. This behavior make
packages whose documentation is generated with reportlab unreproducible.
The attached patch fixes this behavior honoring the SOURCE_DATE_EPOCH [2]
environment variable.
[1] https://wiki.debian.org/ReproducibleBuilds
[2] https://reproducible-builds.org/specs/source-date-epoch/
Description: Honour SOURCE_DATE_EPOCH environment variable
If the SOURCE_DATE_EPOCH environment variable is set, reportlab will use
it instead of the current timestamp.
See https://reproducible-builds.org/specs/source-date-epoch/
.
python-reportlab (3.3.0-1.0~reproducible1) UNRELEASED; urgency=medium
.
* Honour SOURCE_DATE_EPOCH, to generate PDFs reproducibly
Author: boyska <[email protected]>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>
--- python-reportlab-3.3.0.orig/src/reportlab/pdfbase/pdfdoc.py
+++ python-reportlab-3.3.0/src/reportlab/pdfbase/pdfdoc.py
@@ -1730,8 +1730,12 @@ _NOWT=None
def _getTimeStamp():
global _NOWT
if not _NOWT:
- import time
- _NOWT = time.time()
+ import os
+ if 'SOURCE_DATE_EPOCH' in os.environ:
+ _NOWT = float(os.environ['SOURCE_DATE_EPOCH'])
+ else:
+ import time
+ _NOWT = time.time()
return _NOWT
class PDFDate(PDFObject):
--- End Message ---
--- Begin Message ---
Source: python-reportlab
Source-Version: 3.3.0-2
We believe that the bug you reported is fixed in the latest version of
python-reportlab, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated python-reportlab 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Fri, 17 Mar 2017 12:12:13 +0100
Source: python-reportlab
Binary: python-reportlab python-reportlab-accel python-reportlab-accel-dbg
python-renderpm python-renderpm-dbg python3-reportlab python3-reportlab-accel
python3-reportlab-accel-dbg python3-renderpm python3-renderpm-dbg
python-reportlab-doc
Architecture: source
Version: 3.3.0-2
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Description:
python-renderpm - python low level render interface
python-renderpm-dbg - python low level render interface (debug extension)
python-reportlab - ReportLab library to create PDF documents using Python
python-reportlab-accel - C coded extension accelerator for the ReportLab
Toolkit
python-reportlab-accel-dbg - C coded extension accelerator for the ReportLab
Toolkit
python-reportlab-doc - Documentation for the ReportLab Python library (PDF
format)
python3-renderpm - python low level render interface
python3-renderpm-dbg - python low level render interface (debug extension)
python3-reportlab - ReportLab library to create PDF documents using Python3
python3-reportlab-accel - C coded extension accelerator for the ReportLab
Toolkit
python3-reportlab-accel-dbg - C coded extension accelerator for the ReportLab
Toolkit
Closes: 828756
Changes:
python-reportlab (3.3.0-2) unstable; urgency=medium
.
* Honour SOURCE_DATE_EPOCH environment variable. Closes: #828756.
Checksums-Sha1:
e47985ba3e888bf0d7b270360268a9f2b95fa945 2877 python-reportlab_3.3.0-2.dsc
033dd00e5b13d10842925cf56be53bf0651aead2 11720
python-reportlab_3.3.0-2.debian.tar.xz
5bcbea4ef19826854675a362b8c07f63a42443c4 7588
python-reportlab_3.3.0-2_source.buildinfo
Checksums-Sha256:
eb60250be59a377c7f62e40999815ed80a4948fc2a64d967fafa702393b6c658 2877
python-reportlab_3.3.0-2.dsc
cf6d4b35171a039cdb666671b97b8a0e5d0bf2d671a37ed4cf9b71dae3d3ded8 11720
python-reportlab_3.3.0-2.debian.tar.xz
d4d2920c6debdbae0a2c8f894bb49ea1e21b37557973c2252c3bbe6f0d22ef76 7588
python-reportlab_3.3.0-2_source.buildinfo
Files:
ab4e1f877a0f0b7533e4a2512042c5db 2877 python optional
python-reportlab_3.3.0-2.dsc
86177c54a7065023e17c6861503ce3f5 11720 python optional
python-reportlab_3.3.0-2.debian.tar.xz
a242c48c2ae42d7b75cf77b9ad69ec4e 7588 python optional
python-reportlab_3.3.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAljLyQQQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9ZWcEADKBn25uMuTes/DogE7HKz4CieJqtypRSxt
3lUJDfA/1rZ4QTKVNxL+djG2f1CjxguK1PsLcpa+QPXKrJq9Ud5tSw7SK5poaOsN
q4kXqJ2d3As8VJ/M1IIXOn1VMI4mV4weEEJiaAq0dcUkFz+mYC+kgufjIidWyN98
qC/rsi+ihe/P3q0WtNumUQXuK5N82mE8xruimA7IWQzbjsaXXFEN22YQN8tBnAbZ
sYVSinBeB7PRPnGNaDe5DhHn7F07iuT08RT+cbytTOGRfUWZO+d/DXg+jfu7Q14J
pQYss4kWceKSvph1up4wE4J8eamrauoEMtY+tkOYJG60vCT6JfgTF+V517dUvNYG
AbIF8tTUzLCy9nT9BasloL1jkcmWNvwj+DwH3zI34gYyZvsjC/QxvB3BOlBTfSDl
yCFyUsdvsH4QqDIJJTNp2RiJRHGRzU0VY+W0gkT97ps66a3w5LgGfw0Q9xUnbQ7E
sl/XB1wG2xXx3o7RH5PDcDzb5yUkENAX+H0cua0UouQ0nx4tmJyXc7djUp6FA3rV
Lmo3SvBwI6FSRHRjm2skeD49/I1OcaEmy3OLRui8uLV05xZ72qKaLlZTzoWB2DTk
YCa5G3HS+Ebgprjy/k10CjDwfhK+pFaspYbKOIPvAvO4+qzpABmfgit4hGLPsHkw
h5Ibz5AzHA==
=X+hK
-----END PGP SIGNATURE-----
--- End Message ---