HPE has a weird preference to prefix letters and zero-padding. Properly trim
them before processing.
CLA: trivial
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22891)
(cherry picked from commit
253c5667a92efbbd1498b2f5b883da23c11b8930)
[ 'HP-UX:.*',
sub {
my $HPUXVER = $RELEASE;
- $HPUXVER = s/[^.]*.[0B]*//;
+ $HPUXVER =~ s/[^.]*.[0B]*//;
# HPUX 10 and 11 targets are unified
return "${MACHINE}-hp-hpux1x" if $HPUXVER =~ m@1[0-9]@;
return "${MACHINE}-hp-hpux";
# If we got a version number, process it
if ($v) {
+ $v =~ s/[^.]*.0*// if $SYSTEM eq 'HP-UX';
$CCVENDOR = $k;
# The returned version is expected to be one of