Debian Codegraph @

debian/patches/0003-reproducible.patch

raw symbols SCIP
1 From: Alastair McKinstry <[email protected]>
2 Date: Thu, 18 Nov 2021 21:38:04 -0400
3 Subject: Make builds bit-reproducible
4
5 Forwarded: no
6 Last-Updated: 2016-06-20
7 ---
8 jpyutil.py | 5 +++--
9 1 file changed, 3 insertions(+), 2 deletions(-)
10
11 --- a/jpyutil.py
12 +++ b/jpyutil.py
13 @@ -26,6 +26,7 @@
14 import sysconfig
15 import os
16 import os.path
17 +#import os.environ
18 import platform
19 import ctypes
20 import ctypes.util
21 @@ -634,7 +635,7 @@
22 py_api_config_file = os.path.join(out_dir, py_api_config_basename)
23 try:
24 with open(py_api_config_file, 'w') as f:
25 - f.write("# Created by '%s' tool on %s\n" % (tool_name, str(datetime.datetime.now())))
26 + f.write("# Created by '%s' tool\n" % tool_name)
27 f.write(
28 "# This file is read by the 'jpyutil' module in order to load and configure the JVM from Python\n")
29 if java_home_dir:
30 @@ -664,7 +665,7 @@
31 java_api_config_file = os.path.join(out_dir, java_api_config_basename)
32 java_api_properties = _get_java_api_properties(fail=req_java_api_conf, path=install_dir)
33 java_api_properties.store(java_api_config_file, comments=[
34 - "Created by '%s' tool on %s" % (tool_name, str(datetime.datetime.now())),
35 + "Created by '%s' tool" % tool_name,
36 "This file is read by the jpy Java API (org.jpy.PyLib class) in order to find shared libraries"])
37 logger.info("jpy Java API configuration written to '%s'" % java_api_config_file)
38 except Exception: