Your message dated Mon, 20 Nov 2017 21:04:14 +0000
with message-id <[email protected]>
and subject line Bug#782294: fixed in asciidoc 8.6.10-1
has caused the Debian Bug report #782294,
regarding please make the output 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.)


-- 
782294: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782294
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: asciidoc
Version: 8.6.9-3
Severity: normal

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that some packages that use asciidoc for build documentation uses the
current user timezone, making that the package can't be built reproducibly.

The attached patch adds a new flag, --use-utc-timezone, that uses the UTC
timezone instead of the local one, making the generation of the
documentation reproducible.

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

-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -rupN asciidoc-8.6.9.orig/asciidoc.py asciidoc-8.6.9/asciidoc.py
--- asciidoc-8.6.9.orig/asciidoc.py	2013-11-06 19:33:00.000000000 -0200
+++ asciidoc-8.6.9/asciidoc.py	2015-04-10 02:23:31.911582378 -0300
@@ -6219,7 +6219,7 @@ if __name__ == '__main__':
             ['attribute=','backend=','conf-file=','doctype=','dump-conf',
             'help','no-conf','no-header-footer','out-file=',
             'section-numbers','verbose','version','safe','unsafe',
-            'doctest','filter=','theme='])
+            'doctest','use-utc-timezone','filter=','theme='])
     except getopt.GetoptError:
         message.stderr('illegal command options')
         sys.exit(1)
@@ -6234,6 +6234,11 @@ if __name__ == '__main__':
             sys.exit(0)
         else:
             sys.exit(1)
+    # Use UTC timezone for date and time
+    if '--use-utc-timezone' in opt_names:
+        # Set timezone used by time.localtime to UTC
+        os.environ['TZ'] = 'UTC'
+        time.tzset()
     # Look for plugin management commands.
     count = 0
     for o,v in opts:
diff -rupN asciidoc-8.6.9.orig/doc/asciidoc.1.txt asciidoc-8.6.9/doc/asciidoc.1.txt
--- asciidoc-8.6.9.orig/doc/asciidoc.1.txt	2012-12-28 18:05:07.000000000 -0200
+++ asciidoc-8.6.9/doc/asciidoc.1.txt	2015-04-10 02:25:26.139734713 -0300
@@ -95,6 +95,10 @@ OPTIONS
     The *--theme* option is also used to manage theme plugins (see
     <<X1,*PLUGIN COMMANDS*>>).
 
+*--use-utc-timezone*::
+    Use the UTC timezone for show dates and times. Afects docdate,
+    doctime, localdate and localtime attributes.
+
 *-v, --verbose*::
     Verbosely print processing information and configuration file
     checks to stderr.
diff -rupN asciidoc-8.6.9.orig/examples/website/manpage.txt asciidoc-8.6.9/examples/website/manpage.txt
--- asciidoc-8.6.9.orig/examples/website/manpage.txt	2012-12-28 18:05:07.000000000 -0200
+++ asciidoc-8.6.9/examples/website/manpage.txt	2015-04-10 02:25:26.139734713 -0300
@@ -95,6 +95,10 @@ OPTIONS
     The *--theme* option is also used to manage theme plugins (see
     <<X1,*PLUGIN COMMANDS*>>).
 
+*--use-utc-timezone*::
+    Use the UTC timezone for show dates and times. Afects docdate,
+    doctime, localdate and localtime attributes.
+
 *-v, --verbose*::
     Verbosely print processing information and configuration file
     checks to stderr.

--- End Message ---
--- Begin Message ---
Source: asciidoc
Source-Version: 8.6.10-1

We believe that the bug you reported is fixed in the latest version of
asciidoc, 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.
Joseph Herlant <[email protected]> (supplier of updated asciidoc 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: Wed, 04 Oct 2017 15:33:31 -0700
Source: asciidoc
Binary: asciidoc vim-asciidoc asciidoc-doc asciidoc-common asciidoc-base 
asciidoc-dblatex asciidoc-fop asciidoc-tests
Architecture: source
Version: 8.6.10-1
Distribution: unstable
Urgency: low
Maintainer: Joseph Herlant <[email protected]>
Changed-By: Joseph Herlant <[email protected]>
Description:
 asciidoc   - Highly configurable text format for writing documentation
 asciidoc-base - Minimal version of asciidoc not suitable for pdf
 asciidoc-common - Basic data and configuration files for asciidoc
 asciidoc-dblatex - Asciidoc package including dblatex dependencies
 asciidoc-doc - Examples and documentation for asciidoc
 asciidoc-fop - Asciidoc package including fop dependencies
 asciidoc-tests - Test framework for asciidoc
 vim-asciidoc - Vim syntax highlighting files for asciidoc
Closes: 767179 782294 850524 877101
Changes:
 asciidoc (8.6.10-1) unstable; urgency=low
 .
   * Make the output reproducible.
     Thanks to Anders Kaseorg <[email protected]> (Closes: #782294)
   * Bump compat to 10
   * Bump standards-version to 4.0.0
   * Clean conffiles that have been moved to asciidoc-tests (Closes: #850524)
   * Fix watch file now that the releases are only on GitHub
   * Updating the asciidoc Maintainers and Uploaders list (Closes: #877101)
   * New upstream version 8.6.10
   * Remove patches merged in the new version
   * Update the existing patches to match the updated code
   * Fix for vim syntax highlighting is very slow.
     Thanks to Brian M. Carlson" <[email protected]> (Closes: 
#767179)
   * Add local-options file for gbp
   * Bump standards to 4.1.0
   * Add note for users that 8.6.10 is the final release
   * Fix git autocrlf mixup in source.
     While committing via gbp, the core.autocrlf git config was set to
     input which removed the Control-L chars from this file, integrating a
     discrepancy between the source tarball and the repository.
   * README.txt was renamed README.asciidoc in latest release
   * Update changelog for 8.6.10-1 release
   * Bump Standards to 4.1.1
   * Fix lintian "wildcard-matches-nothing-in-dep5-copyright"
Checksums-Sha1:
 372616f2ce8db7c6cf594b08c069ab8116a982da 2001 asciidoc_8.6.10-1.dsc
 80b4ac77d395c978f5aa0add7776cf205caa5011 577065 asciidoc_8.6.10.orig.tar.gz
 de2ef436caddc212a78d2a3d8eea23f5db8f582a 12248 asciidoc_8.6.10-1.debian.tar.xz
 340be98f00e96c130dee9e8d4e55b5cbaf770bb6 5590 
asciidoc_8.6.10-1_source.buildinfo
Checksums-Sha256:
 e38aad60e7f56feadf1a9b0c6121e2657d4a8ee4b86b1f1ad677b7dea6825f16 2001 
asciidoc_8.6.10-1.dsc
 1392a68b294b88ca874611ac97c82d592d827e14e78ff9e7bf422b4186d4c9b2 577065 
asciidoc_8.6.10.orig.tar.gz
 05c001b549a992c810a074d677d33484e6e6c50ca2832e3fe2f795e2a814b8c1 12248 
asciidoc_8.6.10-1.debian.tar.xz
 5311aa35f377e1241269601c985a3e99fb75b459beb3aadad47840ac7b9c3fde 5590 
asciidoc_8.6.10-1_source.buildinfo
Files:
 1bbb14d23215ae8f8a7c19f35987221e 2001 text optional asciidoc_8.6.10-1.dsc
 81b444b9551b5837f6168496c234e850 577065 text optional 
asciidoc_8.6.10.orig.tar.gz
 733185c4af10e08fb48ee71c87956413 12248 text optional 
asciidoc_8.6.10-1.debian.tar.xz
 11424357d3d887ada6e89dacc5cab6e1 5590 text optional 
asciidoc_8.6.10-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----
Comment: Signed by Raphael Hertzog

iQEzBAEBCgAdFiEE1823g1EQnhJ1LsbSA4gdq+vCmrkFAloTQNwACgkQA4gdq+vC
mrn0rwf9HWgNqqZ6u6eGZnHuKrTj4cfKfOBDZ4akv6fv5wfXRmLXnPuhYRQ+vpCG
222ZkQ43HSxL/ed5Y0lfjvwuiuhcsWyFDF0Xo7M9RTFUnx12Qp+Uq7zG5Yu+jEC5
s4GEFxTr1mnvBTZfF9+M22TrzoEN81yeU7wMVc0ZJEkpDuKGAeOj/SVYlghaMBzh
MHlnvw0IvjffwfE/3Wu10HvPJUp+3ESnJvo/2bDUmPx04B1DVjBTARmmPnFq3GD3
r1taeLoO1nuMXL1QvBFxntxZ7T1+B3EnUHxQQ0A5ZWIXOjmxnEvfbXGfVPt/X56N
IaKX/NBAmPZRoVjDd/6Frp/BTLmZiA==
=vDIU
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to