File 0860-erts-Remove-timestamps-in-a-few-scripts.patch of Package erlang
From 6af80c2e5666d3f4059ee29c19d7392aa502bbcb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20de=20Bretagne?=
<jerome.debretagne@gmail.com>
Date: Tue, 4 Jan 2022 23:38:44 +0100
Subject: [PATCH] erts: Remove timestamps in a few scripts
Remove timestamps in make_alloc_types, make_preload and
make_tables to get closer to deterministic builds.
---
erts/emulator/utils/make_alloc_types | 3 +--
erts/emulator/utils/make_preload | 4 ++--
erts/emulator/utils/make_tables | 4 ++--
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/erts/emulator/utils/make_alloc_types b/erts/emulator/utils/make_alloc_types
index 44232969a5..f306e749e9 100755
--- a/erts/emulator/utils/make_alloc_types
+++ b/erts/emulator/utils/make_alloc_types
@@ -183,8 +183,7 @@ print DST "/*
* -----------------------------------------------------------------------
*
* NOTE: Do *not* edit this file; instead, edit '", basename($src),"' and
- * build again! This file was automatically generated by
- * '$myname' on ", (scalar localtime), ".
+ * build again! It was automatically generated by '$myname'.
*
* -----------------------------------------------------------------------
*
diff --git a/erts/emulator/utils/make_preload b/erts/emulator/utils/make_preload
index 6627a1d20a..dc5e20f45a 100755
--- a/erts/emulator/utils/make_preload
+++ b/erts/emulator/utils/make_preload
@@ -213,8 +213,8 @@ sub header {
my $time = localtime;
<<END;
/*
- * DO NOT EDIT THIS FILE. It was automatically generated
- * by the `$progname' program on $time.
+ * Do *not* edit this file. It was automatically generated by
+ * `$progname'.
*/
END
}
diff --git a/erts/emulator/utils/make_tables b/erts/emulator/utils/make_tables
index 33417a42bc..5afc7bbd7a 100755
--- a/erts/emulator/utils/make_tables
+++ b/erts/emulator/utils/make_tables
@@ -423,8 +423,8 @@ sub comment {
print "$prefix$line\n";
}
} else {
- print "$prefix Warning: Do not edit this file. It was automatically\n";
- print "$prefix generated by '$progname' on ", (scalar localtime), ".\n";
+ print "$prefix Warning: Do *not* edit this file. It was automatically\n";
+ print "$prefix generated by '$progname'.\n";
}
if ($lang eq 'C') {
print " */\n";
--
2.31.1