[openssl] master update

Matt Caswell matt at openssl.org
Fri May 15 10:48:24 UTC 2020


The branch master has been updated
       via  11d7d903447ab866d037fb8bba4ceb49c7d89191 (commit)
      from  d30ef639647ad263d09740c931a5bfb5a8b6a5f6 (commit)


- Log -----------------------------------------------------------------
commit 11d7d903447ab866d037fb8bba4ceb49c7d89191
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Thu Mar 5 20:39:05 2020 +0100

    If SOURCE_DATE_EPOCH is defined, use it for copyright year
    
    Using the date from SOURCE_DATE_EPOCH instead of the current date makes
    it possible to reproduce a build that was built on a different year:
    https://reproducible-builds.org/specs/source-date-epoch/
    
    This is fixing an issue we had while building Tor Browser:
    https://trac.torproject.org/projects/tor/ticket/33535
    
    CLA: trivial
    
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    Reviewed-by: Ben Kaduk <kaduk at mit.edu>
    (Merged from https://github.com/openssl/openssl/pull/11296)

-----------------------------------------------------------------------

Summary of changes:
 util/mkrc.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/mkrc.pl b/util/mkrc.pl
index 8ff358857d..5b1111abd9 100755
--- a/util/mkrc.pl
+++ b/util/mkrc.pl
@@ -25,7 +25,7 @@ if ( $filename =~ /openssl/i ) {
     $vft = "VFT_APP";
 }
 
-my $YEAR = [localtime()]->[5] + 1900;
+my $YEAR = [gmtime($ENV{SOURCE_DATE_EPOCH} || time())]->[5] + 1900;
 print <<___;
 #include <winver.h>
 


More information about the openssl-commits mailing list