Your message dated Sat, 20 May 2023 18:33:51 +0000
with message-id <[email protected]>
and subject line Bug#831779: fixed in python-docutils 0.20.1+dfsg-1
has caused the Debian Bug report #831779,
regarding python-docutils: please make the output of rst2man 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 [email protected]
immediately.)


-- 
831779: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831779
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-docutils
Version: 0.12+dfsg-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: toolchain
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that python-docutils generates non-reproducible output via rst2man.

Patch attached.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --git a/docutils/parsers/rst/directives/misc.py 
b/docutils/parsers/rst/directives/misc.py
index 643bc70..33194d5 100644
--- a/docutils/parsers/rst/directives/misc.py
+++ b/docutils/parsers/rst/directives/misc.py
@@ -477,7 +477,10 @@ class Date(Directive):
             except UnicodeEncodeError:
                 raise self.warning(u'Cannot encode date format string '
                     u'with locale encoding "%s".' % locale_encoding)
-        text = time.strftime(format_str)
+        text = time.strftime(
+            format_str,
+            time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))),
+        )
         if sys.version_info< (3, 0):
             # `text` is a byte string that may contain non-ASCII characters:
             try:

--- End Message ---
--- Begin Message ---
Source: python-docutils
Source-Version: 0.20.1+dfsg-1
Done: Dmitry Shachnev <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-docutils, 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.
Dmitry Shachnev <[email protected]> (supplier of updated python-docutils 
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: SHA512

Format: 1.8
Date: Sat, 20 May 2023 20:39:31 +0300
Source: python-docutils
Architecture: source
Version: 0.20.1+dfsg-1
Distribution: experimental
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Dmitry Shachnev <[email protected]>
Closes: 831779
Changes:
 python-docutils (0.20.1+dfsg-1) experimental; urgency=medium
 .
   [ Julian Gilbey ]
   * Slightly cleaner version of patch in -6.
 .
   [ Dmitry Shachnev ]
   * New upstream release.
   * Drop patches which are included in the new release:
     - rst2odt_prepstyles-elementtree.diff
     - no-empty-manual.diff
   * Refresh and rebase other patches.
   * Amend static-help-message.diff to fix newly added tests.
   * Override false-positive privacy-breach-generic Lintian warning
     in docutils-doc.
   * Add a patch to support SOURCE_DATE_EPOCH (closes: #831779).
     - Unset SOURCE_DATE_EPOCH when running tests, to make them pass.
   * Bump python3-sphinx Breaks to 7.0.1.
   * Remove ancient debian/NEWS to fix Lintian warning (see #1021502).
Checksums-Sha1:
 8c175ee01ac21da68cfc7b0255a08bdea2598a43 2368 python-docutils_0.20.1+dfsg-1.dsc
 a184e6101f65b583a7f4ef39349bd7e85489f358 1530488 
python-docutils_0.20.1+dfsg.orig.tar.xz
 16d227fd7da1cf524ae0d6db5002e51552da5ab3 31636 
python-docutils_0.20.1+dfsg-1.debian.tar.xz
 8839db27fbda0499e0a5a622fdb93f2593d14e57 5874 
python-docutils_0.20.1+dfsg-1_source.buildinfo
Checksums-Sha256:
 5e6ae4b656fae8fb1bcad2d16d2024919d1fe4e68fc443083364082a87c9b2a2 2368 
python-docutils_0.20.1+dfsg-1.dsc
 4b9d0903e0bf909a53fd93410b65c07d941588a04e3ee2734f6c690f146fd921 1530488 
python-docutils_0.20.1+dfsg.orig.tar.xz
 e25fe11a1f953f082fca8b9dc46cead03bf3f3ae9389b3cbdb1ecb4fb078fcd9 31636 
python-docutils_0.20.1+dfsg-1.debian.tar.xz
 76aac87bbfb8daa9c61f4324c422335d2c72dfd0b28211eda512fea58d986b2b 5874 
python-docutils_0.20.1+dfsg-1_source.buildinfo
Files:
 7c7259c989ee1eb2a3c6b61ac0a65cc5 2368 python optional 
python-docutils_0.20.1+dfsg-1.dsc
 9c46a5b1cd59e1a16a1ef9315ca6e193 1530488 python optional 
python-docutils_0.20.1+dfsg.orig.tar.xz
 3330f17a530d230256e81ae2a254891d 31636 python optional 
python-docutils_0.20.1+dfsg-1.debian.tar.xz
 5b58c5a11ae7ceaa3fb662cf4e199fd7 5874 python optional 
python-docutils_0.20.1+dfsg-1_source.buildinfo

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

iQJHBAEBCgAxFiEE5688gqe4PSusUZcLZkYmW1hrg8sFAmRpBjwTHG1pdHlhNTdA
ZGViaWFuLm9yZwAKCRBmRiZbWGuDy4/KEACXqzmvK1yK1Wi4nC7MFqpUmW1UC8gW
hvFJcipW/1Z2xOV8YNx4W1gC6+qHol9XOMrsw9fG3NkjYlaHynnu0uUQYK5yFZa8
hn9av16U3P0F3ptv3b8pN0oLCeVQT1AFcRqtalFWEfhbaMo8pQxwA7IkJuWyDEWV
RzMVHzwHqsMjc90QrbViJJ7urvp/Gyd/e1bhyj9fa0Q9Xc9bSY87PSTf6J+/qjsf
URn7UpqSVX621paLb8292s0/crpw9eNXqmeORAlG+Ix+ro5N48QKdzST8ktW71zb
bN/5f0vrRjqC7E3bNffc3e6z8RDRGOsL1p0DmwR31IgZpZNEWRKPKkU/mNiUH3lh
5j0Mr5/TgUUI7dTqmQp42wgOh4jSkBedt9hboSnHnPAjXV8SyhpR1i5gDMBWsnpb
02L5ofWD1lLOXptRk2w1xD10/Q80kB9klNJ/GANleA+KYkBFpcJ2wzr04hcY8Ap5
ZxMBSWkxVrLwWoPm9uej//Qs4yfNYrE14s/Lm4QXkEEt2lURyqjYrke/F2mXJyGc
htJOw3lwwXPjcXa0kBBByESgZFZzQ8gzdbHMX3FwYvMkL/hKMrqAEe7+kBFfevtu
tbu4SLe9EYamhDJ4xG2fV6aR1fKpRe0poQa8R+V6im/uYNdYTlAYQky+fJ07zK3U
Nz0jKg1xGsX3HA==
=G2pK
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to