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

BUG: New debs are made with tar.zst (need to revert to ubuntu-20.04 or ubuntu-18.04) #152

Closed
theofficialgman opened this issue Apr 19, 2023 · 8 comments

Comments

@theofficialgman
Copy link

ubuntu-latest is now ubuntu 22.04

ubuntu has an extension to apt that uses tar.zst to compress file in debs. this is used by default by dpkg when packaging debs in 22.04

this prevents all debs from installing on debian/raspbian

you need to switch to building with ubuntu-20.04 or ubuntu-18.04 which do not use this functionality when packaging debs

https://github.com/Botspot/pi-apps/actions/runs/4738073287/jobs/8411536446#step:4:1613

alternativly you can specify the compression method as gzip through a dpkg command like option, debhelper override, or whatever method you use to build these debs

@dave-theunsub
Copy link
Owner

Thanks @theofficialgman ,

I'll take a look this weekend.

respectfully,
Dave M

@theofficialgman
Copy link
Author

you might find the information I posted in here helpful for getting a start on implementing the changes if you wish to continue using 22.04 to build
pychess/pychess#2049 (comment)

@dave-theunsub
Copy link
Owner

Hi @theofficialgman ,

Just to verify: building with 20.04.6 LTS (https://releases.ubuntu.com/20.04.6/) will do the trick? Any particular naming scheme I need to follow when building that you can think of?

respectfully,
Dave M

@theofficialgman
Copy link
Author

yes simply changing to 20.04 will work since tar.xz was still the default for dpkg building there. no other changes necessary.

depending on how you make your debs it might be simple enough to keep using 22.04 though and just specify the compression type that you want. I don't know how you are making your debs (what tool) so can't really give you more info than that. refer to the linked comment in my previous post for more.

@dave-theunsub
Copy link
Owner

Hi @theofficialgman ,

Care to test it out? Hashes have been updated as well:
https://github.com/dave-theunsub/clamtk/releases/tag/v6.15

respectfully,
Dave M

@theofficialgman
Copy link
Author

I see the _2004 deb

I don't think you understood what I was asking. Don't make two separate debs. Just use 20.04 to build the one deb and keep the name clamtk_6.15-1_all.deb. the contents of the archives in the deb are identical no matter what you package on since perl is not a compiled language.

@dave-theunsub
Copy link
Owner

6.16 is the first to use gzip compression.

https://github.com/dave-theunsub/clamtk/releases/tag/v6.16

@theofficialgman
Copy link
Author

awesome, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants