Reproducible openssl in new year

This commit is contained in:
Samuel Tyler 2026-01-01 17:20:43 +11:00
parent 3f67de5374
commit 85ea5a67c6
No known key found for this signature in database
GPG key ID: EB5091A5C77E8DC4
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,20 @@
SPDX-FileCopyrightText: 2026 Samuel Tyler <fosslinux@aussies.space>
SPDX-License-Identifier: Apache-2.0
Make the output of mkerr.pl reproducible.
Now the year in the copyright header depends firstly on SOURCE_DATE_EPOCH,
or if that is not set, the mtime of the config file.
--- openssl-3.6.0/util/mkerr.pl 2025-10-01 22:11:48.000000000 +1000
+++ openssl-3.6.0/util/mkerr.pl 2026-01-01 17:18:06.853472915 +1100
@@ -26,7 +26,7 @@
my %modules = ();
my $errors = 0;
-my @t = localtime();
+my @t = gmtime($ENV{SOURCE_DATE_EPOCH} || (stat($config))[9]);
my $YEAR = $t[5] + 1900;
sub phase

View file

@ -2,6 +2,8 @@ SPDX-FileCopyrightText: 2025 Samuel Tyler <fosslinux@aussies.space>
SPDX-License-Identifier: Apache-2.0
We intentionally have files missing.
--- openssl-3.6.0/Configure 2025-10-01 22:11:48.000000000 +1000
+++ openssl-3.6.0/Configure 2025-12-26 12:04:24.790872245 +1100
@@ -2729,7 +2729,6 @@