-
Notifications
You must be signed in to change notification settings - Fork 79
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
fix: Use xz compression to restore Debian stable support #495
base: main
Are you sure you want to change the base?
Conversation
The default compression on deb packages seems to have changed to zstd. Unfortunately, Debian does not support zstd (yet), so this specifies a friendlier format. Fixes twilio#482
.github/scripts/pack-debian-apt.js
Outdated
@@ -81,7 +81,8 @@ PATH=$PATH:$PWD/bin eval $(PATH=$PATH:$PWD/bin node -p "require('./package').scr | |||
await qq.chmod([workspace, 'usr/lib', config.dirname, 'bin', config.bin], 0o755); | |||
await qq.chmod([workspace, 'DEBIAN/postinst'], 0o755); | |||
await qq.x(`ln -s "../lib/${config.dirname}/bin/${config.bin}" "${workspace}/usr/bin/${pjson.oclif.bin}"`); | |||
await qq.x(`dpkg --build "${workspace}" "${qq.join(dist, debArch(arch), `${versionedDebBase}.deb`)}"`); | |||
// Use xz compression until Debian supports zstd (see issue #482) | |||
await qq.x(`dpkg --build --compression=xz "${workspace}" "${qq.join(dist, debArch(arch), `${versionedDebBase}.deb`)}"`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--compression
does not seems to be a valid flag in dpkg, could you confirm that this command works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking a look! You're right, that flag isn't valid. I saw it on a man page somewhere, but I must have been looking at the wrong command. I apologize for that.
I just pushed a commit that should fix it. As I said in the OP I don't really have a good environment to test this, but my understanding from here and here is that this should do the trick.
I am testing this fix. Will update soon. |
The default compression on deb packages seems to have changed to zstd. Unfortunately, Debian does not support zstd (yet), so this specifies a friendlier format.
Note that I don't know a good way to test this at the moment. I'm open to suggestions though.
Fixes #482
Checklist