projects/guix·blob python-team · refs

23 lines · 714 B

1Fix one of upstream non-determinism, tracked here:
2
3https://github.com/JuliaLang/julia/issues/34115
4https://github.com/JuliaLang/julia/issues/25900
5
6
7Patch by Nicoló Balzarotti <[email protected]>.
8
9--- a/base/loading.jl
10+++ b/base/loading.jl
11@@ -1131,7 +1131,10 @@ function _include_dependency(mod::Module, _path::AbstractString)
12 end
13 if _track_dependencies[]
14 @lock require_lock begin
15- push!(_require_dependencies, (mod, path, mtime(path)))
16+ push!(_require_dependencies,
17+ (mod, path,
18+ haskey(ENV, "SOURCE_DATE_EPOCH") ?
19+ parse(Float64, ENV["SOURCE_DATE_EPOCH"]) : mtime(path)))
20 end
21 end
22 return path, prev
23 end