Your message dated Sun, 01 May 2016 22:27:22 +0000
with message-id <[email protected]>
and subject line Bug#820144: fixed in rdtool 0.6.38-4
has caused the Debian Bug report #820144,
regarding rdtool: 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.)


-- 
820144: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820144
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: rdtool
Version: 0.6.38-3
Severity: wishlist
Tags: patch
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 apt-listbugs) use rdtool in their building
process, resulting in timestamps (month and year of build) in man files
that break reproducibility.

To solve this kind of issues, it would be nice to have rdtool 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 rdtool-0.6.38/debian/changelog rdtool-0.6.38/debian/changelog
--- rdtool-0.6.38/debian/changelog	2014-09-09 11:16:13.000000000 +0200
+++ rdtool-0.6.38/debian/changelog	2016-04-05 19:52:49.000000000 +0200
@@ -1,3 +1,9 @@
+rdtool (0.6.38-3.0~reproducible1) unstable; urgency=medium
+
+  * Honour the SOURCE_DATE_EPOCH environment variable.
+
+ -- Alexis Bienvenüe <[email protected]>  Tue, 05 Apr 2016 19:52:49 +0200
+
 rdtool (0.6.38-3) unstable; urgency=medium
 
   * Team upload.
diff -Nru rdtool-0.6.38/debian/patches/040_honour_SOURCE_DATE_EPOCH rdtool-0.6.38/debian/patches/040_honour_SOURCE_DATE_EPOCH
--- rdtool-0.6.38/debian/patches/040_honour_SOURCE_DATE_EPOCH	1970-01-01 01:00:00.000000000 +0100
+++ rdtool-0.6.38/debian/patches/040_honour_SOURCE_DATE_EPOCH	2016-04-05 20:00:27.000000000 +0200
@@ -0,0 +1,26 @@
+Description: Honour the SOURCE_DATE_EPOCH environment variable
+ If the environment variable SOURCE_DATE_EPOCH is set, uses this date
+ instead of current date for generated man pages.
+ See https://reproducible-builds.org/specs/source-date-epoch/
+Author: Alexis Bienvenüe <[email protected]>
+
+Index: rdtool-0.6.38/lib/rd/rd2man-lib.rb
+===================================================================
+--- rdtool-0.6.38.orig/lib/rd/rd2man-lib.rb
++++ rdtool-0.6.38/lib/rd/rd2man-lib.rb
+@@ -43,9 +43,14 @@ module RD
+       content = content.join
+       title = guess_title
+       title = title.sub(/\.rd$/i, '').upcase
++      if ENV['SOURCE_DATE_EPOCH'].nil?
++        date=Time.now
++      else
++        date=Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime
++      end
+       <<"EOT"
+ .\\" DO NOT MODIFY THIS FILE! it was generated by rd2
+-.TH #{title} 1 "#{Time.now.strftime '%B %Y'}"
++.TH #{title} 1 "#{date.strftime '%B %Y'}"
+ #{content}
+ EOT
+     end # "
diff -Nru rdtool-0.6.38/debian/patches/series rdtool-0.6.38/debian/patches/series
--- rdtool-0.6.38/debian/patches/series	2014-01-23 19:25:38.000000000 +0100
+++ rdtool-0.6.38/debian/patches/series	2016-04-05 19:50:18.000000000 +0200
@@ -1,2 +1,3 @@
 010_change_dot_rd2rc_path
 020_test_load_fix
+040_honour_SOURCE_DATE_EPOCH

--- End Message ---
--- Begin Message ---
Source: rdtool
Source-Version: 0.6.38-4

We believe that the bug you reported is fixed in the latest version of
rdtool, 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.
Christian Hofstaedtler <[email protected]> (supplier of updated rdtool 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: Sun, 01 May 2016 20:33:46 +0000
Source: rdtool
Binary: rdtool ruby-rd rdtool-elisp
Architecture: source
Version: 0.6.38-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Extras Maintainers 
<[email protected]>
Changed-By: Christian Hofstaedtler <[email protected]>
Description:
 rdtool     - RD document formatter
 rdtool-elisp - Emacs-lisp rd-mode for writing RD document
 ruby-rd    - RDTool library for Ruby - library
Closes: 820144
Changes:
 rdtool (0.6.38-4) unstable; urgency=medium
 .
   * Team upload.
   * Honour the SOURCE_DATE_EPOCH environment variable.
     Patch from Alexis Bienvenüe <[email protected]>.
     (Closes: #820144)
Checksums-Sha1:
 a10fad7aee93137e9390098f304df6793b181dfb 2081 rdtool_0.6.38-4.dsc
 8a8928f74533cb1cbe923e6a630e3231a777416d 10496 rdtool_0.6.38-4.debian.tar.xz
Checksums-Sha256:
 62d65aa4f8a853dca1c0f6ad46c175d2d958bc920af22f15ee321c0679123edb 2081 
rdtool_0.6.38-4.dsc
 5abff72bb7ca6125e4925c1341b4dcab9df086057a8b752176ea647bb4bf3d78 10496 
rdtool_0.6.38-4.debian.tar.xz
Files:
 66d594c58200a53083e6e374545e41c1 2081 text optional rdtool_0.6.38-4.dsc
 1b773172b0abd0a4e811a8be28df33a5 10496 text optional 
rdtool_0.6.38-4.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJXJmi6AAoJEFwT1tuTBS4Dkw0P/3Behs0ixAtgSjz4b/PweeCr
SdV2IC4t5xrUr+8LxaW2VPSJeDmyV4/zrMSgfTYOlKMeRikWYayGsnqDlJI8nbMX
o+I4f2WJgBJP74jsOb3yqeQbzc5WF7y71710GU9xSPpA6D6Hkvw+Ms77VWRy5a1+
f0ZCZ2KwpNhPkdM1zDTKHNG2HoPTFWNmh2Iz0nTYiJhtFvuLNVegV+bYHBncfmue
wIpsAEuHODx0kY0X0Hnqh2SHKExKN/pDUPOiM1od++/eXN/G+rwbdQBXxVdQbVj+
lqSbkMMzQFf/MD9MF2EKnLFa9qCZjIAeyLX0zP38t9pBHPfwC9TXOtYgmGXFvh1g
go2O0RliBEC2PsDkznCPwp5/fuzx71+QZVAWDMHnF9Ni5OXBQVerZIq8si+ivj4i
jGWewcwpbqI/qIiJg8/sjTtResvezc+DwJ+93a6yLGEFBlSY+I5Qtk/JmcTvVQdk
NfZbA35vSGC/l3kafi11LxTVNrjuJgs/wF5FTP9HDOUM2RCIs/q+xfdD0ouU6u+Y
mPwEv+8Qw+I/aojJbcKLTaRZqiNPbOlQPprdYBl9G0X2TXH0Dot+9JTG4IDE5WcX
Hdrhy0lLIrZc1eNasSyGOHEK0aUpXGu70emIMTDVZKQZNsqgqS91SzOB/AS9jq9t
3z87ykuSSXVzu9yWUAt8
=hnmU
-----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

Reply via email to