mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
util/mknum.pl: Call OpenSSL::Ordinals::renumber() for real releases
When the source isn't in development any more (the version number doesn't the tags 'dev' or 'alpha'), we renumber the unassigned symbols to ensure that we have fixed numbers on all. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/10348)
This commit is contained in:
parent
e4f2d539f6
commit
8635730333
@ -88,6 +88,13 @@ foreach my $f (($symhacks_file // (), @ARGV)) {
|
||||
close IN;
|
||||
}
|
||||
|
||||
# As long as we're running in development or alpha releases, we can have
|
||||
# symbols without specific numbers assigned. When in beta or final release,
|
||||
# all symbols MUST have an assigned number.
|
||||
if ($version !~ m/^\d+\.\d+\.\d+(?:[a-z]+)?-(?:dev|alpha)/) {
|
||||
$ordinals->renumber();
|
||||
}
|
||||
|
||||
if ($checkexist) {
|
||||
my %new_names = map { $_->name() => 1 }
|
||||
$ordinals->items(comparator => sub { $_[0] cmp $_[1] },
|
||||
|
Loading…
Reference in New Issue
Block a user