mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: julia: Fix patch.
* gnu/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch: replaced with actual patch. It was a patch creating the patch. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
4fc231a730
commit
3c125ac00e
1 changed files with 21 additions and 27 deletions
|
@ -1,28 +1,22 @@
|
||||||
--- /dev/null
|
Fix one of upstream non-determinism, tracked here:
|
||||||
+++ b/gnu/packages/patches/julia-SOURCE_DATE_EPOCH-mtime.patch
|
|
||||||
@@ -0,0 +1,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
|
|
||||||
+@@ -807,7 +807,10 @@
|
|
||||||
+ path = normpath(joinpath(dirname(prev), _path))
|
|
||||||
+ end
|
|
||||||
+ if _track_dependencies[]
|
|
||||||
+- 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
|
|
||||||
+ return path, prev
|
|
||||||
+ end
|
|
||||||
--
|
|
||||||
2.26.0
|
|
||||||
|
|
||||||
|
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
|
||||||
|
@@ -807,7 +807,10 @@
|
||||||
|
path = normpath(joinpath(dirname(prev), _path))
|
||||||
|
end
|
||||||
|
if _track_dependencies[]
|
||||||
|
- 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
|
||||||
|
return path, prev
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue