File 0130-sasl-Make-release-scripts-build-reproducibly.patch of Package erlang

From 2362c45f4563a58b2eb5a592a92e2d8487c5924b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20de=20Bretagne?=
 <jerome.debretagne@gmail.com>
Date: Sun, 28 Mar 2021 17:03:07 +0200
Subject: [PATCH] sasl: Make release scripts build reproducibly

Remove the current date/time in scripts generated by systools_make.

Contributes to #4417 (ERL-1445) and #4482 (ERL-1446).
---
 lib/sasl/src/systools_make.erl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/sasl/src/systools_make.erl b/lib/sasl/src/systools_make.erl
index 7b86bf58d0..ca4fb4300a 100644
--- a/lib/sasl/src/systools_make.erl
+++ b/lib/sasl/src/systools_make.erl
@@ -1,8 +1,8 @@
 %%
 %% %CopyrightBegin%
-%% 
-%% Copyright Ericsson AB 1996-2020. All Rights Reserved.
-%% 
+%%
+%% Copyright Ericsson AB 1996-2021. All Rights Reserved.
+%%
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.
 %% You may obtain a copy of the License at
@@ -14,7 +14,7 @@
 %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 %% See the License for the specific language governing permissions and
 %% limitations under the License.
-%% 
+%%
 %% %CopyrightEnd%
 %%
 -module(systools_make).
@@ -1198,8 +1198,8 @@ generate_script(Output, Release, Appls, Flags) ->
     ScriptFile = Output ++ ".script",
     case file:open(ScriptFile, [write,{encoding,utf8}]) of
 	{ok, Fd} ->
-	    io:format(Fd, "%% ~s\n%% script generated at ~w ~w\n~tp.\n",
-		      [epp:encoding_to_string(utf8), date(), time(), Script]),
+	    io:format(Fd, "%% ~s\n~tp.\n",
+		      [epp:encoding_to_string(utf8), Script]),
 	    case file:close(Fd) of
 		ok ->
 		    BootFile = Output ++ ".boot",
-- 
2.26.2

openSUSE Build Service is sponsored by