File: reproducible.patch

package info (click to toggle)
node-jasmine 5.11.0%2B~cs10.12.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,380 kB
  • sloc: javascript: 52,616; sh: 77; makefile: 18
file content (16 lines) | stat: -rw-r--r-- 556 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: make build reproducible
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2025-08-25

--- a/jasmine-core/scripts/lib/buildDistribution.js
+++ b/jasmine-core/scripts/lib/buildDistribution.js
@@ -74,7 +74,7 @@
   ];
   const licenseBanner = {
     template: 'src/licenseBanner.js.ejs',
-    data: {currentYear: new Date(Date.now()).getFullYear()}
+    data: {currentYear: new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : Date.now()).getFullYear()}
   };
 
   for (const {src, dest} of configs) {