summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssl/openssl-1.0.2o/reproducible-mkbuildinf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl-1.0.2o/reproducible-mkbuildinf.patch')
-rw-r--r--meta/recipes-connectivity/openssl/openssl-1.0.2o/reproducible-mkbuildinf.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl-1.0.2o/reproducible-mkbuildinf.patch b/meta/recipes-connectivity/openssl/openssl-1.0.2o/reproducible-mkbuildinf.patch
new file mode 100644
index 0000000000..b556731219
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl-1.0.2o/reproducible-mkbuildinf.patch
@@ -0,0 +1,21 @@
1If SOURCE_DATE_EPOCH is present in the environment, use it as build date.
2Also make sure to use UTC time.
3
4Upstream-Status: Backport [ https://github.com/openssl/openssl/blob/master/util/mkbuildinf.pl ]
5
6Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
7
8--- mkbuildinf.pl 2018-03-06 14:20:09.438048058 -0800
9+++ mkbuildinf.pl 2018-03-06 14:19:20.722045632 -0800
10--- a/util/mkbuildinf.pl
11+++ b/util/mkbuildinf.pl
12@@ -3,7 +3,8 @@
13 my ($cflags, $platform) = @ARGV;
14
15 $cflags = "compiler: $cflags";
16-$date = localtime();
17+my $date = gmtime($ENV{'SOURCE_DATE_EPOCH'} || time()) . " UTC";
18+
19 print <<"END_OUTPUT";
20 #ifndef MK1MF_BUILD
21 /* auto-generated by util/mkbuildinf.pl for crypto/cversion.c */