File 0002-make-escriptize-reproducible-with-erlang-27.1.patch of Package rebar3

From 3fa323b2a63b2cdfb54a25b3197e6d5ef35cd9f0 Mon Sep 17 00:00:00 2001
From: Igor Goryachev <igor@goryachev.org>
Date: Wed, 18 Sep 2024 20:39:43 +0300
Subject: [PATCH] make escriptize reproducible with erlang 27.1

---
 apps/rebar/src/rebar_prv_escriptize.erl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/apps/rebar/src/rebar_prv_escriptize.erl b/apps/rebar/src/rebar_prv_escriptize.erl
index 5000e78f..43250ed6 100644
--- a/apps/rebar/src/rebar_prv_escriptize.erl
+++ b/apps/rebar/src/rebar_prv_escriptize.erl
@@ -246,7 +246,9 @@ read_file(Prefix, Filename, Dir) ->
     FilePath = filename:join(Dir, Filename),
     {ok, FileInfo0} = file:read_file_info(FilePath),
     DateTime = {{1970, 1, 1}, {0, 0, 1}},
-    FileInfo = FileInfo0#file_info{mtime = DateTime},
+    FileInfo = FileInfo0#file_info{atime = DateTime,
+                                   ctime = DateTime,
+                                   mtime = DateTime},
     [dir_entries(filename:dirname(Filename1)),
      {Filename1, file_contents(FilePath), FileInfo}].
 
-- 
2.43.0

openSUSE Build Service is sponsored by