Source: node-mocha Severity: normal Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
The build date is embedded in various .js files: https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/node-mocha.html /usr/share/nodejs/workerpool/dist/worker.js ·*·@date····2023-03-24 vs. ·*·@date····2024-04-26 The attached patch fixes this by removing the code which adds the build date and removing the date from the relevent template file. If a date is for some reason necessary to embed in these files, another option might be to use the SOURCE_DATE_EPOCH environment variable: https://reproducible-builds.org/docs/source-date-epoch/ Unfortunately, there may be other non-deterministic issues which prevent node-mocha from building reproducibly, but applying this patch should significant reduce the noise generated from timestamps. Thanks for maintaining node-mocha! live well, vagrant
From e3664f17ccb2003f012d503191b76a7fd1b368b5 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Mon, 1 May 2023 16:17:23 -0700 Subject: [PATCH 1/3] workerpool/src/*.js: Do not embed the date. --- workerpool/gulpfile.js | 1 - workerpool/src/header.js | 1 - 2 files changed, 2 deletions(-) diff --git a/workerpool/gulpfile.js b/workerpool/gulpfile.js index dba3ab1..29ea1a8 100644 --- a/workerpool/gulpfile.js +++ b/workerpool/gulpfile.js @@ -16,7 +16,6 @@ function createBanner() { var version = require('./package.json').version; // module version return String(fs.readFileSync('./src/header.js')) - .replace('@@date', today) .replace('@@version', version); } diff --git a/workerpool/src/header.js b/workerpool/src/header.js index 8beef14..c8bc50a 100644 --- a/workerpool/src/header.js +++ b/workerpool/src/header.js @@ -5,7 +5,6 @@ * Offload tasks to a pool of workers on node.js and in the browser. * * @version @@version - * @date @@date * * @license * Copyright (C) 2014-2022 Jos de Jong <[email protected]> -- 2.39.2
signature.asc
Description: PGP signature
-- Pkg-javascript-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel
