From 8e31928756c8f9fdac424da62da51a2bfa1bb09b Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Wed, 25 Sep 2024 08:13:19 +0200 Subject: [PATCH] Stop storing mtime in hog files This allows for reproducible builds. I could not even find where the timestamp value is used. Maybe it is write-only-data. --- tools/HogMaker/HogFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/HogMaker/HogFormat.cpp b/tools/HogMaker/HogFormat.cpp index 18877b829..3b0269fa7 100644 --- a/tools/HogMaker/HogFormat.cpp +++ b/tools/HogMaker/HogFormat.cpp @@ -36,7 +36,7 @@ m_real_path = input; m_flags = 0; m_len = (uint32_t)file_size(input); - m_timestamp = (uint32_t)to_time_t(last_write_time(input)); + m_timestamp = 0; auto name = input.filename().u8string(); std::copy(name.begin(), name.end(), m_name.begin()); }