Your message dated Wed, 08 Nov 2017 08:57:45 +0000
with message-id <e1ecmb7-000dia...@fasolo.debian.org>
and subject line Bug#881089: fixed in stardicter 1.2-1
has caused the Debian Bug report #881089,
regarding stardicter: 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 ow...@bugs.debian.org
immediately.)


-- 
881089: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881089
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: stardicter
Version: 1.1-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: toolchain timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that stardicter generates non-deterministic output in .ifo files.

In particular, it adds the current date and time.

Patch attached that uses SOURCE_DATE_EPOCH[1] if available.

 [0] https://reproducible-builds.org/
 [1] https://reproducible-builds.org/specs/source-date-epoch/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/stardicter/base.py b/stardicter/base.py
index 64dd17f..3d2a8a0 100644
--- a/stardicter/base.py
+++ b/stardicter/base.py
@@ -30,6 +30,7 @@ from operator import attrgetter
 import os
 import re
 import struct
+import time
 
 from six.moves.urllib.request import urlopen
 from six import BytesIO
@@ -386,7 +387,9 @@ class StardictWriter(object):
             handle.write(self.convert('website={0}\n'.format(URL), False))
             # we're using pango markup for all entries
             handle.write('sametypesequence=g\n')
-            handle.write(datetime.date.today().strftime('date=%Y.%m.%d\n'))
+            now = int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
+            today = datetime.datetime.utcfromtimestamp(now)
+            handle.write(today.strftime('date=%Y.%m.%d\n'))
 
     def write_dict(self, directory):
         '''

--- End Message ---
--- Begin Message ---
Source: stardicter
Source-Version: 1.2-1

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

Debian distribution maintenance software
pp.
Michal Čihař <ni...@debian.org> (supplier of updated stardicter 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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Wed, 08 Nov 2017 08:56:50 +0100
Source: stardicter
Binary: python3-stardicter
Architecture: source
Version: 1.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<python-modules-team@lists.alioth.debian.org>
Changed-By: Michal Čihař <ni...@debian.org>
Description:
 python3-stardicter - Conversion tools from various formats to StarDict
Closes: 881089
Changes:
 stardicter (1.2-1) unstable; urgency=medium
 .
   * New upstream release.
     - The build is now reproducible (Closes: #881089).
     - All patches integrated upstream.
   * Fix runtime dependencies.
Checksums-Sha1:
 89926e6595fc8c52ae95c4f3e222e81b9e7402a8 2169 stardicter_1.2-1.dsc
 67cb63594b02fcf3ca6c876047e9d0ddd6fbcc1f 25873 stardicter_1.2.orig.tar.gz
 c77555daf6620cbe6666aa9a61bad6a0afb7c928 2020 stardicter_1.2-1.debian.tar.xz
 3dba17a1a567557e4c3612ba96f9e8d48a3c750e 6105 stardicter_1.2-1_amd64.buildinfo
Checksums-Sha256:
 ba754df03e70600184131c4d00ab2c993443b86cf9a5c186e4d0ee648f6d32c0 2169 
stardicter_1.2-1.dsc
 8af2c07d864a44c1d5d1be52bb7ba58eaf7f7d369128274744f0e4fda9fb296f 25873 
stardicter_1.2.orig.tar.gz
 590736538bb3fc4d44b24ea888e7a7a55f6ddf606e4c61c51ba14241cd0b198c 2020 
stardicter_1.2-1.debian.tar.xz
 6c2e97c9648a37e282c1810c4d41c0dd7bbda1733f45e8a411e64678591d59a4 6105 
stardicter_1.2-1_amd64.buildinfo
Files:
 e42477922ca4fc081c18f8e636dd162a 2169 python optional stardicter_1.2-1.dsc
 61efdb7ecab814125e9c2b820d4f7618 25873 python optional 
stardicter_1.2.orig.tar.gz
 1a4f3d007fe80f3e4c55fb9d3a6c1737 2020 python optional 
stardicter_1.2-1.debian.tar.xz
 992713f66ce98b5b9228104cebbe8069 6105 python optional 
stardicter_1.2-1_amd64.buildinfo

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

iQJFBAEBCAAvFiEEh+Zzr4P2w6DDRMjD9KoinU1YwkUFAloCuzwRHG5pamVsQGRl
Ymlhbi5vcmcACgkQ9KoinU1YwkWlPg//Y50lEq0Cz1Nl/WYGOoG/5upnuDxC0bb0
MnAbC9zf/KuNUQnCTJB7foNyVvtKPPsm7UJGYdNqAQ9kiq29xOQzH0TWhHUW0SMD
ud9iRWFt6W378QCSjAWMt+4gHL3r/OfBJQ0kwK06X8u9viv4cdM8PtromDmp0KqN
S4u/QxuLDlG/Mv2+FKo7sw90ihn35ixg1MIzGe98qhm5QffwP2xuAuyxksuMyhKN
z1Ur5sMWLARCt9eQ6IG0z6Lgys8W8n+FAZSRp4bCShClOGSLJ3gkqG7q7UlUGrbZ
AE9m77bPLOXp8SD1hoCwSU/E4xUJ7lBC3ueiJHgssqmZfdneoA8QWMOmXsbb9L97
7hMrEYBV20fxYDER/dgy1mmvCj3IhCvoEPNutYOQVKranzcNyZigeQHBBC2HB2VS
nBJSl+JBdyQM5rpXvdPXT59EfFXFxsrmtOEIDHWqh3qMyx2TXTuauvpM+hJXXhCm
yl2uZWqBSgvG+Iyyn4MzCOLe55pDtLOD4/p0M0F6E7Aj4LrpNBtN27BYXAiN0UqR
vAqd3TIWI6P7nLhcQ0VYS60XpoLLVfmxOY4H8a1SZA0EfWyIejQjs2qwxDdj/FWK
JP95nJL8JDqFjl8zp6IURwd6w1nJWukdZg4N42I3YdiZ0P8psTa9P3q1qWXV1xBu
rCHURWRUUPI=
=7fg4
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to