[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#892664: dpkg: Please add support for zstd (Zstandard) compressed packages



Rustam wrote on 12 Oct 2021:

Hi Guillem,
Any news on the proposed patch?
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892664#49
Can it be merged already? ;)
Ubuntu packages are already using zstd compression. So tools like Mainline don't work on Debian any more, see e.g.
https://github.com/bkw777/mainline/issues/121

More than that: AFAIU Ubuntu has in fact switched its default compressor to zstd [1], so Debian's tools haven't been able to understand Ubuntu's freshly generated packages from 2021-06-14 on.

I have applied [2] Bálint's commit to *current* dpkg from git:

* there was a trivial merge conflict in man/deb.pod, which is easily fixed [3]
* in my dpkg git repo and zstd branch I have changed the patch author
  (including the merge conflict fix) back from me to Bálint [3], which
  might not be the right/clean way to do things, but that's a minor thing
  I can fix if Guillem would want that
* dpkg-buildpackage built the patched package fine
* I only did a smoketest with the resulting dpkg :
  `dpkg -x sbsigntool_0.9.4-2ubuntu1_amd64.deb foodir` [4]
  which successfully unpacked Ubuntu's zstd compressed sbsigntool package
  into the foodir directory

So I am reporting that Bálint's patch [4] applies cleanly (with a trivially to solve merge conflict (see above)) and works (again see above for the minimal testing I did), has been in production in Ubuntu since 2021-04-14 and zstd is beeng used as default compressor in Ubtuntu since 2021-06-14.

Of course I would welcome it very much if Debian's tools would be compatible and allow to work with Ubtuntu's packages. Concrete point in case: it would have made my life easier figuring out Ubuntu's mechanism to sign user-generated modules [5].

Thanks a lot to all involved! For Guillem's work on dpkg, Bálint for the patch and all others for their contributions here and in Ubuntu!!!

Greets,
*t

[1] http://changelogs.ubuntu.com/changelogs/pool/main/d/dpkg/dpkg_1.20.9ubuntu2/changelog
[2] https://salsa.debian.org/tpo/dpkg/-/tree/zstd
[3] https://salsa.debian.org/tpo/dpkg/-/commit/e7cb231bc289d356f563c1e2c761d94c85aa7055
[4] https://packages.ubuntu.com/impish/amd64/sbsigntool/download
[5] https://salsa.debian.org/rbalint/dpkg/-/commit/eb38de93eeb9524a54e80525c480df249828e84f
[6] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=939392


Reply to: