From 79c878e1ed374a46e44b42176c90ac4885d86f4b Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sun, 22 Aug 2021 17:57:51 -0400 Subject: [PATCH] Use rust birthday for HeaderMode::Deterministic timestamp As described in rust-lang/crates.io#3859, the current arbitrary timestamp of 123456789 leads to Debian packages being auto-rejected due to the old timestamp. This happens for any timestamps before 1975. Instead of 123456789, use another, more recent arbitrary timestamp -- the timestamp of the first commit for what would become Rust. https://github.com/graydon/rust-prehistory/commit/b0fd440798ab3cfb05c60a1a1bd2894e1618479e --- src/header.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/header.rs b/src/header.rs index 3cfeca47..a76f78a6 100644 --- a/src/header.rs +++ b/src/header.rs @@ -741,8 +741,9 @@ impl Header { // // We just need things to be deterministic here so just pick // something that isn't zero. This time, chosen after careful - // deliberation, corresponds to Nov 29, 1973. - self.set_mtime(123456789); + // deliberation, corresponds to Jul 23, 2006 -- the date of the + // first commit for what would become Rust. + self.set_mtime(1153704088); self.set_uid(0); self.set_gid(0);