Skip to content
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

Remove zlib1g dependency from .NET ≥ 9 #26

Closed
Aldaviva opened this issue Oct 14, 2024 · 1 comment
Closed

Remove zlib1g dependency from .NET ≥ 9 #26

Aldaviva opened this issue Oct 14, 2024 · 1 comment
Assignees
Labels
dependencies Pull requests that update a dependency file
Milestone

Comments

@Aldaviva
Copy link
Owner

Aldaviva commented Oct 14, 2024

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

@Aldaviva Aldaviva added the dependencies Pull requests that update a dependency file label Oct 14, 2024
@Aldaviva Aldaviva self-assigned this Oct 14, 2024
@Aldaviva Aldaviva changed the title Remove zlib1g dependency from .NET ⪰ 9 Remove zlib1g dependency from .NET ≥ 9 Oct 14, 2024
@Aldaviva
Copy link
Owner Author

Completed, .NET 9 Runtime packages won't depend on zlib1g when they are created next month.

@Aldaviva Aldaviva added this to the 1.1.0 milestone Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant