Debian Codegraph @

debian/patches/reproducible_builds.patch

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