From: Richard Levitte Date: Wed, 25 May 2022 02:54:54 +0000 (+0200) Subject: Configurations/gentemplate.pm: Generate generators too, when necessary X-Git-Tag: openssl-3.2.0-alpha1~2605 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42b4a8ab961e3d3be4abffe3aea458448b2e47b4;p=thirdparty%2Fopenssl.git Configurations/gentemplate.pm: Generate generators too, when necessary A generator in a `GENERATE[generated]=generator` build.info statement may itself be generated. That needs to be taken into account. This was always meant to be, but we missed the spot, for lack of use cases. Now we have one. Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/18263) --- diff --git a/Configurations/gentemplate.pm b/Configurations/gentemplate.pm index 4bf19af9c2c..3fd5f675c9c 100644 --- a/Configurations/gentemplate.pm +++ b/Configurations/gentemplate.pm @@ -227,6 +227,10 @@ sub dogenerate { foreach (@{$self->{info}->{depends}->{$src} // []}) { $self->dogenerate($_, $obj, $bin, %opts); } + # The generator itself may be is generated + if ($self->{info}->{generate}->{$script}) { + $self->dogenerate($script, $obj, $bin, %opts); + } } $cache{$src} = 1; }