-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[release/v7.4.15] Mirror .NET/runtime ICU version range in PowerShell #27138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2125,17 +2125,37 @@ function Get-PackageDependencies | |
|
|
||
| # These should match those in the Dockerfiles, but exclude tools like Git, which, and curl | ||
| $Dependencies = @() | ||
|
|
||
| # ICU version range follows .NET runtime policy. | ||
| # See: https://github.com/dotnet/runtime/blob/3fe8518d51bbcaa179bbe275b2597fbe1b88bc5a/src/native/libs/System.Globalization.Native/pal_icushim.c#L235-L243 | ||
| # | ||
| # Version range rationale: | ||
| # - The runtime supports ICU versions >= the version it was built against | ||
| # and <= that version + 30, to allow sufficient headroom for future releases. | ||
| # - ICU typically releases about twice per year, so +30 provides roughly | ||
| # 15 years of forward compatibility. | ||
| # - On some platforms, the minimum supported version may be lower | ||
| # than the build version and we know that older versions just works. | ||
| # | ||
| $MinICUVersion = 60 # runtime minimum supported | ||
| $BuildICUVersion = 74 # current build version for v7.4.15 | ||
| $MaxICUVersion = $BuildICUVersion + 30 # headroom | ||
|
|
||
| if ($Distribution -eq 'deb') { | ||
| $Dependencies = @( | ||
| "libc6", | ||
| "libgcc1", | ||
| "libgssapi-krb5-2", | ||
| "libstdc++6", | ||
| "zlib1g", | ||
| "libicu74|libicu72|libicu71|libicu70|libicu69|libicu68|libicu67|libicu66|libicu65|libicu63|libicu60|libicu57|libicu55|libicu52", | ||
| (($MaxICUVersion..$MinICUVersion).ForEach{ "libicu$_" } -join '|'), | ||
| "libssl3|libssl1.1|libssl1.0.2|libssl1.0.0" | ||
|
Comment on lines
+2140
to
2152
|
||
| ) | ||
|
|
||
| } elseif ($Distribution -eq 'rh') { | ||
| $Dependencies = @( | ||
| "openssl-libs", | ||
| "libicu" | ||
| ) | ||
| } elseif ($Distribution -eq 'rh') { | ||
| $Dependencies = @( | ||
| "openssl-libs", | ||
|
|
@@ -5733,4 +5753,4 @@ function Test-IsProductFile { | |
| } | ||
|
|
||
| return $false | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar in comment: “older versions just works” should be “older versions just work”.