zstd default compression level changed in 1.22.2ubuntu1

Bug #2048137 reported by Dan Bungert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Fix Released
Undecided
Dan Bungert

Bug Description

In this commit, a refactor is intended to remove usage of a magic number:
https://git.launchpad.net/ubuntu/+source/dpkg/commit/?id=80f4e7dea37b1c7e1bd710c29ae31a185b4fb7a0

default_level is changed to be initialized with ZSTD_CLEVEL_DEFAULT instead of a hardcoded 19, but ZSTD_CLEVEL_DEFAULT is set earlier in the file, so appears to be a valid refactor.

However, if we are building with WITH_LIBZSTD, then ZSTD_CLEVEL_DEFAULT will not be set to 19, and instead use the library default value (of 3). This means that in this upload, the compression level was changed from 19 to 3.

Revision history for this message
Dan Bungert (dbungert) wrote :
Changed in dpkg (Ubuntu):
assignee: nobody → Dan Bungert (dbungert)
status: New → In Progress
Dan Bungert (dbungert)
Changed in dpkg (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dpkg - 1.22.2ubuntu2

---------------
dpkg (1.22.2ubuntu2) noble; urgency=medium

  * Set zstd compression level back to 19. (LP: #2048137)

 -- Dan Bungert <email address hidden> Thu, 04 Jan 2024 17:24:19 -0700

Changed in dpkg (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.