Your message dated Thu, 14 Sep 2017 15:34:22 +0000
with message-id <e1dsw9m-0005mj...@fasolo.debian.org>
and subject line Bug#867753: fixed in grunt 1.0.1-6
has caused the Debian Bug report #867753,
regarding grunt: 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 ow...@bugs.debian.org
immediately.)


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

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that grunt can generate non-reproducible output.

This is affecting the reproducibility status other packages such as
libjquery-tablesorter that set a "pkg.banner" such as:

  <%= grunt.template.today("mm-dd-yyyy")


Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb, Debian Project Leader
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff --git a/lib/grunt/template.js b/lib/grunt/template.js
index d1967df..15e1fe1 100644
--- a/lib/grunt/template.js
+++ b/lib/grunt/template.js
@@ -10,7 +10,11 @@ template.date = require('dateformat');
 
 // Format today's date.
 template.today = function(format) {
-  return template.date(new Date(), format);
+  var now = new Date();
+  if (process.env.SOURCE_DATE_EPOCH) {
+    now = new Date((process.env.SOURCE_DATE_EPOCH * 1000) + 
(now.getTimezoneOffset() * 60000));
+  }
+  return template.date(now, format);
 };
 
 // Template delimiters.

--- End Message ---
--- Begin Message ---
Source: grunt
Source-Version: 1.0.1-6

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

Debian distribution maintenance software
pp.
Pirate Praveen <prav...@debian.org> (supplier of updated grunt 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: Thu, 14 Sep 2017 20:20:20 +0530
Source: grunt
Binary: grunt
Architecture: source
Version: 1.0.1-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers 
<pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Pirate Praveen <prav...@debian.org>
Description:
 grunt      - JavaScript task runner/build system/maintainer tool
Closes: 867753
Changes:
 grunt (1.0.1-6) unstable; urgency=medium
 .
   * Make builds reproducible (Closes: #867753)
     Thanks to Chris Lamb for the patch
Checksums-Sha1:
 ea58e1d4c66538b291f7f8b64df6b5aff301bf14 2592 grunt_1.0.1-6.dsc
 cd27afa1764205871ed8d255e231b3d9f4d65b51 4140 grunt_1.0.1-6.debian.tar.xz
 6c55414169ddf9b90860608afe324961e4aa2bb8 11811 grunt_1.0.1-6_source.buildinfo
Checksums-Sha256:
 4f109afd8b3b2858138027ee4239eb3aee051856eadf41800010da774eeadd8a 2592 
grunt_1.0.1-6.dsc
 4461ee63f6bc199e6acc1e09e22241b0c70c61cfc9044ab3f83f10fa60e8a938 4140 
grunt_1.0.1-6.debian.tar.xz
 7ac4e56f770451a2cb58452a5f96f74534f95bb0f11d80b796ff6fc44f340bc5 11811 
grunt_1.0.1-6_source.buildinfo
Files:
 1f926fa89e31d41b3d9b2a29a0d26d75 2592 web extra grunt_1.0.1-6.dsc
 71a418ca14944b3a214800a86a9e6c1c 4140 web extra grunt_1.0.1-6.debian.tar.xz
 0d2563af467d3ca809e6253e040f2486 11811 web extra grunt_1.0.1-6_source.buildinfo

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

iQIzBAEBCAAdFiEEKnl0ri/BUtd4Z9pKzh+cZ0USwioFAlm6nDwACgkQzh+cZ0US
wiomtQ//czplbelY7GsIm8CDZHtPjO9MCALxXpxMWwDdzfQY1ba/E2jkDb2dfbGV
ZN36MWp49CqfG6fC2hzPWlkWYrPD9ih8quT2TlRJkRj55apxGOvjjoWKXQ9B+NSW
8/WFGaXAW1HsU+3pzgLdA7LG7CUdn30sEXyT5zIaSP2af+i5fbKx6dXANRnAar7R
kluXJZgmYi3EtYYEbWdaOnd6GoEBDhwcwz0Ra01SIE27jmTDfz+IC1FBHngyazSL
YZGbGMkK/+x6ltvFS6vUmWM2xfZuUhXNYe2YorxdueAQRJcWCOUfVt7qGjbPeQSg
KP8lxLZTX0wCfscAAP9x00PiwdqTu2KoUKAQ80xXTzKXbs8ZVtuhzrzeeDc0+5AD
GWbABSa2MtLgQL/pBEeNWkjx4E90tZDvZbjtopZMAFKpCiUwxBIA0MM59LN1vRZ1
JFqhaSuk3tP+zUKLf/bwsbqs7P3QGg3Am3YwBOVc+0//E7EImJrsLgZaCR8qHk3j
XFeKXy6LPFSfQl3lkCLGK6+WGh3G/uH8KTAv0Mj4bV6iwyFTrOoOlJZmNYBdjT6t
JmqH5VLta7k3g+3JtrpPyQXgvEUnFAgBJnhtj22o3yeudnKQFgp1wDnirhsuxwM8
emIs8Zyzl0TvVeiM6ETWGFYUigMMfIo7J0o5JUNvswEHEvggJgc=
=piYd
-----END PGP SIGNATURE-----

--- End Message ---
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to