File: sconstruct-explicitly-add-source_date_ep.patch

package info (click to toggle)
glob2 0.9.4.4-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,848 kB
  • sloc: cpp: 89,685; python: 868; ansic: 259; sh: 49; makefile: 19
file content (22 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 2 May 2022 03:15:19 +0000
X-Dgit-Generated: 0.9.4.4-6 c563133b64ad20cbea8db1b4b6258823f9ea639f
Subject: SConstruct: Explicitly add SOURCE_DATE_EPOCH to the

environment. (Closes: #1010466)

https://tests.reproducible-builds.org/debian/issues/scons_doesnt_pass_environment_to_build_tools_issue.html

---

--- glob2-0.9.4.4.orig/SConstruct
+++ glob2-0.9.4.4/SConstruct
@@ -241,6 +241,8 @@ def main():
     except AttributeError:
         env.Clone = env.Copy
 
+    env.Append(ENV={'SOURCE_DATE_EPOCH': os.environ['SOURCE_DATE_EPOCH']})
+
     if not env['CC']:
         print("No compiler found in PATH. Please install gcc or another compiler.")
         Exit(1)