A new user interface for you! Read more...

File fix.patch of Package elixir

Index: elixir-1.7.4/lib/mix/test/mix/tasks/compile.elixir_test.exs
===================================================================
--- elixir-1.7.4.orig/lib/mix/test/mix/tasks/compile.elixir_test.exs
+++ elixir-1.7.4/lib/mix/test/mix/tasks/compile.elixir_test.exs
@@ -123,7 +123,7 @@ defmodule Mix.Tasks.Compile.ElixirTest d
       Mix.shell().flush
       purge([A, B])
 
-      future = {{2020, 1, 1}, {0, 0, 0}}
+      future = {{2038, 1, 1}, {0, 0, 0}}
       File.touch!("lib/a.ex", future)
       Mix.Tasks.Compile.Elixir.run(["--verbose"])
 
@@ -177,7 +177,7 @@ defmodule Mix.Tasks.Compile.ElixirTest d
       Mix.shell().flush
       purge([A, B])
 
-      future = {{2020, 1, 1}, {0, 0, 0}}
+      future = {{2038, 1, 1}, {0, 0, 0}}
       File.touch!("lib/b.ex", future)
       Mix.Tasks.Compile.Elixir.run(["--verbose"])
 
@@ -226,7 +226,7 @@ defmodule Mix.Tasks.Compile.ElixirTest d
       purge([A, B])
 
       # Update local existing resource
-      File.touch!("lib/a.eex", {{2030, 1, 1}, {0, 0, 0}})
+      File.touch!("lib/a.eex", {{2038, 1, 1}, {0, 0, 0}})
       assert Mix.Tasks.Compile.Elixir.run(["--verbose"]) == {:ok, []}
       assert_received {:mix_shell, :info, ["Compiled lib/a.ex"]}
       refute_received {:mix_shell, :info, ["Compiled lib/b.ex"]}
@@ -238,7 +238,7 @@ defmodule Mix.Tasks.Compile.ElixirTest d
       purge([A, B])
 
       # Update external existing resource
-      File.touch!(tmp, {{2030, 1, 1}, {0, 0, 0}})
+      File.touch!(tmp, {{2038, 1, 1}, {0, 0, 0}})
       assert Mix.Tasks.Compile.Elixir.run(["--verbose"]) == {:ok, []}
       assert_received {:mix_shell, :info, ["Compiled lib/a.ex"]}
       refute_received {:mix_shell, :info, ["Compiled lib/b.ex"]}
@@ -328,7 +328,7 @@ defmodule Mix.Tasks.Compile.ElixirTest d
       assert_received {:mix_shell, :info, ["Compiled lib/b.ex"]}
       purge([A, B])
 
-      future = {{2020, 1, 1}, {0, 0, 0}}
+      future = {{2038, 1, 1}, {0, 0, 0}}
       File.touch!("lib/a.ex", future)
 
       assert Mix.Tasks.Compile.Elixir.run(["--verbose"]) == {:ok, []}
@@ -433,7 +433,7 @@ defmodule Mix.Tasks.Compile.ElixirTest d
       Mix.shell().flush
       purge([A, B])
 
-      future = {{2020, 1, 1}, {0, 0, 0}}
+      future = {{2038, 1, 1}, {0, 0, 0}}
       File.touch!("lib/a.ex", future)
       Mix.Tasks.Compile.Elixir.run(["--verbose"])
 
Index: elixir-1.7.4/lib/mix/test/mix/tasks/compile.xref_test.exs
===================================================================
--- elixir-1.7.4.orig/lib/mix/test/mix/tasks/compile.xref_test.exs
+++ elixir-1.7.4/lib/mix/test/mix/tasks/compile.xref_test.exs
@@ -44,7 +44,7 @@ defmodule Mix.Tasks.Compile.XrefTest do
       end)
 
       [manifest] = Mix.Tasks.Compile.Elixir.manifests()
-      future = {{2020, 1, 1}, {0, 0, 0}}
+      future = {{2038, 1, 1}, {0, 0, 0}}
       File.touch!(manifest, future)
 
       Mix.Task.reenable("xref")
Index: elixir-1.7.4/lib/mix/test/mix/tasks/format_test.exs
===================================================================
--- elixir-1.7.4.orig/lib/mix/test/mix/tasks/format_test.exs
+++ elixir-1.7.4/lib/mix/test/mix/tasks/format_test.exs
@@ -368,7 +368,7 @@ defmodule Mix.Tasks.FormatTest do
       [inputs: "a.ex"]
       """)
 
-      File.touch!("lib/sub/.formatter.exs", {{2030, 1, 1}, {0, 0, 0}})
+      File.touch!("lib/sub/.formatter.exs", {{2038, 1, 1}, {0, 0, 0}})
       Mix.Tasks.Format.run([])
 
       assert File.read!("lib/sub/a.ex") == """
@@ -388,7 +388,7 @@ defmodule Mix.Tasks.FormatTest do
       other_fun :baz
       """)
 
-      File.touch!("lib/extra/.formatter.exs", {{2030, 1, 1}, {0, 0, 0}})
+      File.touch!("lib/extra/.formatter.exs", {{2038, 1, 1}, {0, 0, 0}})
       Mix.Tasks.Format.run([])
 
       formatter_opts = Mix.Tasks.Format.formatter_opts_for_file("lib/extra/a.ex")
Index: elixir-1.7.4/lib/mix/test/mix/tasks/loadconfig_test.exs
===================================================================
--- elixir-1.7.4.orig/lib/mix/test/mix/tasks/loadconfig_test.exs
+++ elixir-1.7.4/lib/mix/test/mix/tasks/loadconfig_test.exs
@@ -63,7 +63,7 @@ defmodule Mix.Tasks.LoadconfigTest do
       assert Mix.Project.config_mtime() > mtime
 
       # Touching it should not have any deadlocks
-      File.touch!(config, {{2030, 1, 1}, {0, 0, 0}})
+      File.touch!(config, {{2038, 1, 1}, {0, 0, 0}})
       Mix.Task.run("loadconfig", [config])
       assert config in Mix.Project.config_files()
       assert Mix.Project.config_mtime() > mtime
Index: elixir-1.7.4/lib/mix/test/mix/utils_test.exs
===================================================================
--- elixir-1.7.4.orig/lib/mix/test/mix/utils_test.exs
+++ elixir-1.7.4/lib/mix/test/mix/utils_test.exs
@@ -38,8 +38,8 @@ defmodule Mix.UtilsTest do
   end
 
   test "extract stale" do
-    # 2030-01-01 00:00:00
-    time = 1_893_456_000
+    # 2038-01-01 00:00:00
+    time = 2_145_916_800
     assert Mix.Utils.extract_stale([__ENV__.file], [time]) == []
 
     # 2000-01-01 00:00:00