Skip to content

Remove zlib1g dependency from .NET ≥ 9 #26

Closed
@Aldaviva

Description

@Aldaviva

Rather than depending on a zlib system package as older .NET versions do, .NET 9 has changed to include a modified copy of zlib-ng bundled inside the runtime itself, so the system dependency isn't needed (although it won't cause problems if installed).

This means that no .NET 9 Runtime packages, regardless of CPU architecture or Debian version, should depend on any zlib packages. .NET 8 and earlier should remain unchanged and continue to depend on zlib1g.

This dependency is currently declared in DebianPackage.dependencyPackages. This list entry could be conditional based on version and maybe a nice call to Compact().

I also note that the official Docker images depend on ca-certificates, so it might be good to throw that in there too (for all .NET Runtime versions) - I think this used to be in here and was maybe removed for some reason.

There are no other dependency changes between the official Docker images between versions 8 and 9, so this change should hopefully be everything needed in this repository for .NET 9 compatibility.

Sources and additional context

Metadata

Metadata

Assignees

Labels

.netNew versions or changes in the .NET SDK or runtimesdependenciesPull requests that update a dependency file

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions