bkw777 / mainline

Install mainline kernel packages from kernel.ubuntu.com
GNU General Public License v3.0
1.04k stars 72 forks source link

Add override dh_builddeb to use xz compression on issue #121 #266

Closed Elshirak closed 1 year ago

Elshirak commented 1 year ago

The -Zxz option is passed to dpkg-deb through dh_builddeb with "--".

It instructs dpkg-deb to use the 'xz' compression format for the resulting .deb package. 'xz' is a widely used compression algorithm in Debian packages, known for its high compression ratio.

So, it won't cause problem like "dpkg-deb: error: archive uses unknown compression for member 'control.tar.zst' "

https://github.com/bkw777/mainline/issues/121

bkw777 commented 1 year ago

Please explain what the problem is supposed to be. 1 - First, xz is actually a terrible format, regardless if it's popular. (It compresses well enough, but has bad data integrity). So I would not use it unless it was somehow absolutely required. I find that unlikely. 2 - That past issue was about the kernel .deb packages not about this apps .deb package. We have no control over those. I don't make them. Are you saying there is some problem building or installing this app on debian? Could you post a session log or something that actually shows what the problem is?

The more I think the more confused I get. How can it be possible that it's required to deviate from a default setting to build and install on the same platform? debian 11 produces a deb that it then can't install? Something is missing from this story. If you're trying to install one of cappelikan's ubuntu packages on debian, well, those are built for ubuntu, not debian. To install on debian, you should make a debian .deb. Install pbuilder-dist, run make make deb_env_create once, then make deb or make release_deb, and install the deb that that produces.