all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob d156807dabbe5f8769b6aca550b08ff46740d100 709 bytes (raw)
name: gnu/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
Fix one of upstream non-determinism, tracked here:

https://github.com/JuliaLang/julia/issues/34115
https://github.com/JuliaLang/julia/issues/25900


Patch by Nicoló Balzarotti <nicolo@nixo.xyz>.

--- a/base/loading.jl
+++ b/base/loading.jl
@@ -1131,7 +1131,10 @@ function _include_dependency(mod::Module, _path::AbstractString)
     end
     if _track_dependencies[]
         @lock require_lock begin
-        push!(_require_dependencies, (mod, path, mtime(path)))
+          push!(_require_dependencies,
+                (mod, path,
+                 haskey(ENV, "SOURCE_DATE_EPOCH") ?
+                 parse(Float64, ENV["SOURCE_DATE_EPOCH"]) : mtime(path)))
         end
     end
     return path, prev

debug log:

solving d156807dab ...
found d156807dab in https://yhetil.org/guix/87y1wd6f1z.fsf@akirakyle.com/
found b60f284923 in https://git.savannah.gnu.org/cgit/guix.git
preparing index
index prepared:
100644 b60f28492341379989733b4a410299c787e6afe3	gnu/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch

applying [1/1] https://yhetil.org/guix/87y1wd6f1z.fsf@akirakyle.com/
diff --git a/gnu/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch b/gnu/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch
index b60f284923..d156807dab 100644

Checking patch gnu/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch...
Applied patch gnu/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch cleanly.

index at:
100644 d156807dabbe5f8769b6aca550b08ff46740d100	gnu/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.