Your message dated Wed, 08 Jun 2016 22:36:38 +0000
with message-id <[email protected]>
and subject line Bug#820435: fixed in asciidoctor 1.5.4-2
has caused the Debian Bug report #820435,
regarding asciidoctor: 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.)
--
820435: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820435
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: asciidoctor
Version: 1.5.4-1
Severity: wishlist
Tags: patch upstream
User: [email protected]
Usertags: toolchain
X-Debbugs-Cc: [email protected]
Dear Maintainer,
While working on the “reproducible builds” effort [1], we have noticed
that several packages (like ruby-build) use asciidoctor in their
building process, resulting in timestamps in man files that break
reproducibility.
To solve this kind of issues, it would be nice to have asciidoctor
support the SOURCE_DATE_EPOCH environment variable [2].
See the attached patch for a proposed solution.
Regards,
Alexis Bienvenüe.
[1] https://wiki.debian.org/ReproducibleBuilds
[2] https://reproducible-builds.org/specs/source-date-epoch/
diff -Nru asciidoctor-1.5.4/debian/changelog asciidoctor-1.5.4/debian/changelog
--- asciidoctor-1.5.4/debian/changelog 2016-02-29 20:11:19.000000000 +0100
+++ asciidoctor-1.5.4/debian/changelog 2016-04-08 11:20:04.000000000 +0200
@@ -1,3 +1,10 @@
+asciidoctor (1.5.4-1.0~reproducible1) unstable; urgency=medium
+
+ * Honour SOURCE_DATE_EPOCH to make build of packages using ronn
+ reproducible.
+
+ -- Alexis Bienvenüe <[email protected]> Fri, 08 Apr 2016 11:20:04 +0200
+
asciidoctor (1.5.4-1) unstable; urgency=medium
* Team upload
diff -Nru asciidoctor-1.5.4/debian/patches/honour_SOURCE_DATE_EPOCH.patch asciidoctor-1.5.4/debian/patches/honour_SOURCE_DATE_EPOCH.patch
--- asciidoctor-1.5.4/debian/patches/honour_SOURCE_DATE_EPOCH.patch 1970-01-01 01:00:00.000000000 +0100
+++ asciidoctor-1.5.4/debian/patches/honour_SOURCE_DATE_EPOCH.patch 2016-04-08 12:14:52.000000000 +0200
@@ -0,0 +1,40 @@
+Description: Honour the SOURCE_DATE_EPOCH environment variable
+ Honour the SOURCE_DATE_EPOCH environment variable, so that output documents'
+ timestamp is set to last debian/changelog entry when building packages that
+ use asciidoctor in their building process.
+Author: Alexis Bienvenüe <[email protected]>
+
+Index: asciidoctor-1.5.4/lib/asciidoctor/document.rb
+===================================================================
+--- asciidoctor-1.5.4.orig/lib/asciidoctor/document.rb
++++ asciidoctor-1.5.4/lib/asciidoctor/document.rb
+@@ -401,7 +401,11 @@ class Document < AbstractBlock
+ #attrs['infile'] = attrs['docfile']
+
+ # dynamic intrinstic attribute values
+- now = ::Time.now
++ if ENV['SOURCE_DATE_EPOCH'].nil?
++ now = ::Time.now
++ else
++ now = ::Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime
++ end
+ localdate = (attrs['localdate'] ||= now.strftime('%Y-%m-%d'))
+ unless (localtime = attrs['localtime'])
+ begin
+Index: asciidoctor-1.5.4/lib/asciidoctor.rb
+===================================================================
+--- asciidoctor-1.5.4.orig/lib/asciidoctor.rb
++++ asciidoctor-1.5.4/lib/asciidoctor.rb
+@@ -1308,7 +1308,11 @@ module Asciidoctor
+ if ::File === input
+ # TODO cli checks if input path can be read and is file, but might want to add check to API
+ input_path = ::File.expand_path input.path
+- input_mtime = input.mtime
++ if ENV['SOURCE_DATE_EPOCH'].nil?
++ input_mtime = input.mtime
++ else
++ input_mtime = ::Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime
++ end
+ lines = input.readlines
+ # hold off on setting infile and indir until we get a better sense of their purpose
+ attributes['docfile'] = input_path
diff -Nru asciidoctor-1.5.4/debian/patches/series asciidoctor-1.5.4/debian/patches/series
--- asciidoctor-1.5.4/debian/patches/series 2016-02-29 19:48:47.000000000 +0100
+++ asciidoctor-1.5.4/debian/patches/series 2016-04-08 11:18:11.000000000 +0200
@@ -3,3 +3,4 @@
skip-asciimath-test.patch
package-version.patch
skip-unreadable-file.patch
+honour_SOURCE_DATE_EPOCH.patch
--- End Message ---
--- Begin Message ---
Source: asciidoctor
Source-Version: 1.5.4-2
We believe that the bug you reported is fixed in the latest version of
asciidoctor, 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.
Cédric Boutillier <[email protected]> (supplier of updated
asciidoctor 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, 08 Jun 2016 21:46:41 +0200
Source: asciidoctor
Binary: asciidoctor asciidoctor-doc
Architecture: source
Version: 1.5.4-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Extras Maintainers
<[email protected]>
Changed-By: Cédric Boutillier <[email protected]>
Description:
asciidoctor - AsciiDoc to HTML rendering for Ruby
asciidoctor-doc - AsciiDoc to HTML rendering for Ruby (documentation)
Closes: 820435
Changes:
asciidoctor (1.5.4-2) unstable; urgency=medium
.
* Team upload
.
[ Cédric Boutillier ]
* Fix Vcs-* URL
* Run wrap-and-sort on packaging files
* Honour SOURCE_DATE_EPOCH to make build of packages using ronn
reproducible. Thanks Alexis Bienvenüe for the patch (Closes: #820435)
* Bump Standards-Version to 3.9.8 (no changes needed)
.
[ Guillaume Grossetie ]
* Adds DEP3 header to skip-unreadable-file.patch
Checksums-Sha1:
b040c8b624ed98b4a33b093d8baeb8e7c82467e0 1895 asciidoctor_1.5.4-2.dsc
bf9afce2c60f7e56d9d2bfaee417cfebd166b2d2 6136 asciidoctor_1.5.4-2.debian.tar.xz
Checksums-Sha256:
91cae92343b64857a26a61fbbb2d8a341f6a163bcaa5aabe1d632aa5f8868b21 1895
asciidoctor_1.5.4-2.dsc
f4c9f181190ec4541ede9745a5251ba66b82c1974b82777563d9fa206c911927 6136
asciidoctor_1.5.4-2.debian.tar.xz
Files:
a1c3c47d3fdc314fb9cfeb9f6c270a61 1895 ruby optional asciidoctor_1.5.4-2.dsc
29a7e0b1ea9f8e95aae75715067193ac 6136 ruby optional
asciidoctor_1.5.4-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCgAGBQJXWHg1AAoJEImvgrc5zSF6qocH/ji0WO4eNm9Hcaaglb1OCXUL
RNKFCLVsMCgjKP86McGjdnN5hNyo+bqNSpus69MqCJzb5bOw2sdw9JJCnVGUVYsb
7I/7/7Ot3f6DTd9l2jTd1c1xgxks7g4OoJvUamJAqM85JPQDjUMzw7j6F1W+TZXN
K0B2duPkRLRwypiDZaCho0f31XX5jQoHW1jHImEc5UH5mYBopOR8mJWYLIv6tbCe
/25oTn9m/bY/Q1PEmEGIx1B6LJm4QXTBxmuqgdVdsFzAYTi26XR1IkKVv/14GV/L
uxWOE8NNE6Y6cctcmaeujM8nPGkyn1WL8W/C1iouW9jezD6ZwvQFxac5vqnEO5E=
=J1/P
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers