Skip to content

Conversation

@mislav
Copy link
Member

@mislav mislav commented Sep 8, 2025

System openssl version reported by pkg-config --modversion openssl might end with a letter, e.g. "1.0.2k", due to OpenSSL versioning policy prior to OpenSSL v3: https://www.openssl-library.org/policies/general/versioning-policy/#history

The letter would trip up the normalize_semver function due to it only handling numbers.

This change switches to semver parsing via awk instead of doing it clumsily in bash. This also changes the multiplication factor of major version numbers, from 100000 to 10000, and adjusts static version comparisons accodingly.

Fixes #2567
Followup to #2547

System openssl version reported by `pkg-config --modversion openssl` might end
with a letter, e.g. "1.0.2k", due to OpenSSL versioning policy prior to OpenSSL v3:
https://www.openssl-library.org/policies/general/versioning-policy/#history

The letter would trip up the normalize_semver function due to it only handling numbers.

This change switches to semver parsing via awk instead of doing it clumsily in
bash.  This also changes the multiplication factor of major version numbers,
from 100000 to 10000, and adjusts static version comparisons accodingly.
@mislav mislav merged commit 93a20ae into master Sep 8, 2025
6 checks passed
@mislav mislav deleted the normalize-semver branch September 8, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants