friendica (DFRN) - Link to source

Add zstd compression support to dpkg on mxlinux


Starting with the 5.15.x kernel releases, kernel.org now uses zstd compression in the .deb packages the make bindeb-pkg creates. Ubuntu added zstd compression support three years ago but for some reason the most current mxlinux-21 still does not support it. The following also works for Debian.

I added it myself and tested by taking the source from github.com/guillemj/dpkg.git (git clone github.com/guillemj/dpkg.git which creates a source directory dpkg), cd'ing to that directory and applying a patch I found at bugs.debian.org/cgi-bin/bugrep… ... atch;msg=5 using the command patch -p1 -t -c < ../0001-dpkg-Add-Zstandard-compression-support.patch where the patch file was in the parent directory, then ./configure with the appropriate -with-zstd (as well as other compression libs), make, and make install and now my mxlinux-21 system properly handles zst compression.

I know that MxLinux is the we hate not invented here Linux but some of us for reasons of custom hardware requiring third party drivers or kernel modifications need the ability to install upstream kernels. Given the triviality of building the package with zstd installed, I'm hoping the developers might see fit to make this standard, but I'm not holding my breath.