Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / compilers / julia / allow_nix_mtime.patch
blobe4a164cfa1ad8e73204ff966282591e4cda853db
1 From f79775378a9eeec5b99f18cc95735b12d172aba3 Mon Sep 17 00:00:00 2001
2 From: Tom McLaughlin <pyro777@gmail.com>
3 Date: Wed, 12 Dec 2018 13:01:32 -0800
4 Subject: [PATCH] Patch to make work better with nix
6 ---
7 base/loading.jl | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/base/loading.jl b/base/loading.jl
11 index 51201b98b6..b40c0690f6 100644
12 --- a/base/loading.jl
13 +++ b/base/loading.jl
14 @@ -1384,7 +1384,7 @@ function stale_cachefile(modpath::String, cachefile::String)
15 # Issue #13606: compensate for Docker images rounding mtimes
16 # Issue #20837: compensate for GlusterFS truncating mtimes to microseconds
17 ftime = mtime(f)
18 - if ftime != ftime_req && ftime != floor(ftime_req) && ftime != trunc(ftime_req, digits=6)
19 + if ftime != ftime_req && ftime != floor(ftime_req) && ftime != trunc(ftime_req, digits=6) && ftime != 1.0
20 @debug "Rejecting stale cache file $cachefile (mtime $ftime_req) because file $f (mtime $ftime) has changed"
21 return true
22 end
23 --
24 2.17.1