Your message dated Fri, 11 Sep 2020 06:02:06 +0200
with message-id <[email protected]>
and subject line Done with 8.1.0-1
has caused the Debian Bug report #886277,
regarding node-promise: please make the build 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.)
--
886277: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886277
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: node-promise
Version: 8.0.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that node-promise could not be built reproducibly as it uses
random numbers as throwaway identifiers.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000
+0100
--- b/debian/patches/reproducible-build.patch 2018-01-03 18:22:12.685911282
+0000
@@ -0,0 +1,25 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2018-01-03
+
+--- node-promise-8.0.1.orig/build.js
++++ node-promise-8.0.1/build.js
+@@ -5,16 +5,12 @@ var rimraf = require('rimraf');
+ var acorn = require('acorn');
+ var walk = require('acorn/dist/walk');
+
+-var ids = [];
++var idx = 0;
+ var names = {};
+
+ function getIdFor(name) {
+ if (name in names) return names[name];
+- var id;
+- do {
+- id = '_' + Math.floor(Math.random() * 100);
+- } while (ids.indexOf(id) !== -1)
+- ids.push(id);
++ var id = '_' + idx++;
+ names[name] = id;
+ return id;
+ }
--- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series 2018-01-03 18:22:11.685904510 +0000
@@ -0,0 +1 @@
+reproducible-build.patch
--- End Message ---
--- Begin Message ---
--- End Message ---
--
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel