diff options
author | Richard Levitte <levitte@openssl.org> | 2021-08-23 08:48:02 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2022-05-22 17:44:57 +0200 |
commit | 7d78017bd88758cc4cc1337da282f5439c17719a (patch) | |
tree | f95edb8c161f351d10b36fffee6c44779ad9f960 /configdata.pm.in | |
parent | fa229d4e07267052adaa7a52281a1a1c1ab1f2f0 (diff) |
Configuration: only produce a new configdata.pm if it has changed contents
The goal is to avoid having too much of the OpenSSL source rebuilt
because configdata.pm got a new time stamp. The conditions for
updating configdata.pm are now:
1. its time stamp is older than Configure's, or...
2. its contents has changed.
Fixes #16377
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/16378)
(cherry picked from commit 764cf5b26306a8712e8b3d41599c44dc5ed07a25)
Diffstat (limited to 'configdata.pm.in')
-rw-r--r-- | configdata.pm.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configdata.pm.in b/configdata.pm.in index 14da489cd3..5c1f354754 100644 --- a/configdata.pm.in +++ b/configdata.pm.in @@ -111,7 +111,6 @@ unless (caller) { use lib '{- sourcedir('Configurations') -}'; use gentemplate; - print 'Creating ',$buildfile_template,"\n"; open my $buildfile_template_fh, ">$buildfile_template" or die "Trying to create $buildfile_template: $!"; foreach (@{$config{build_file_templates}}) { @@ -120,6 +119,7 @@ unless (caller) { } gentemplate(output => $buildfile_template_fh, %gendata); close $buildfile_template_fh; + print 'Created ',$buildfile_template,"\n"; use OpenSSL::Template; @@ -131,7 +131,6 @@ use lib '{- $config{builddir} -}'; use platform; _____ - print 'Creating ',$buildfile,"\n"; open BUILDFILE, ">$buildfile.new" or die "Trying to create $buildfile.new: $!"; my $tmpl = OpenSSL::Template->new(TYPE => 'FILE', @@ -148,6 +147,7 @@ _____ close BUILDFILE; rename("$buildfile.new", $buildfile) or die "Trying to rename $buildfile.new to $buildfile: $!"; + print 'Created ',$buildfile,"\n"; exit(0); } |