Bug#1139654: node-fuse.js: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Jun 10 17:52:48 BST 2026


Source: node-fuse.js
Version: 7.4.2-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
node-fuse.js could not be built reproducibly.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/build.mjs	2026-06-10 09:34:24.470690850 -0700
--- b/debian/build.mjs	2026-06-10 09:35:18.750489415 -0700
@@ -10,7 +10,9 @@
 
 const pkg = JSON.parse(readFileSync('package.json', 'utf8'))
 const version = process.env.VERSION || pkg.version
-const year = new Date().getFullYear()
+const epoch = Number(process.env["SOURCE_DATE_EPOCH"]);
+const timestamp = Number.isInteger(epoch) ? new Date(epoch * 1000) : new Date();
+const year = timestamp.getUTCFullYear()
 const banner = `/**
  * Fuse.js v${version} - ${pkg.description} (${pkg.homepage})
  *


More information about the Reproducible-bugs mailing list