Don't try to make configuration leaner
authorRichard Levitte <levitte@openssl.org>
Wed, 20 Jul 2022 10:49:54 +0000 (12:49 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 24 Jul 2022 02:14:03 +0000 (04:14 +0200)
commit55461bf22a57a35d299f052323dfb659620a1dcd
treeaa8c74660bee9fc5e426d7c394dadfbb033e4a83
parent08fcfaed8582ac8d56a647485b0a983cfaab90da
Don't try to make configuration leaner

This partially reverts Github PR #16378:
commit 764cf5b26306a8712e8b3d41599c44dc5ed07a25, titled "Configuration:
only produce a new configdata.pm if it has changed contents"

Unfortunately, the attempt to make configuration leaner didn't take
into account all the files that may or may not affect the outcome of
`configdata.pm`, and most of all, didn't take into account that `Makefile`
has clauses of its own to determined when a reconfiguration is needed, all
based on time stamps.

Something as simple as a changed `Configurations/10-main.conf`, where the
change doesn't affect the resulting `configdata.pm` gets `make` into a
reconfiguration loop, because `configdata.pm` is older than `10-main.conf`.

The lesson to remember is not to try to outsmart `make` in cases like this.

We retain the other parts of the PR mentioned, as they are still valid.

needed to be taken into account (all the Configurations/*.conf
as well as all the build.info)

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/18832)

(cherry picked from commit 54a84f02998b72fa63cd5309d915e43cfd85a06b)
Configure