Repository navigation
feat(packaging): build .deb packages for Debian and Ubuntu - #577
Merged
Merged
Conversation
This was referenced Sep 28, 2026
Releases shipped RPMs but nothing for Debian or Ubuntu. - packaging/debian/build-deb.sh builds the release binary without self-update (apt owns it, as dnf does for the RPM), with the same features as the RPM, and packages it with dpkg-deb: the binary, bash/zsh/fish completions it generates, the copyright file and the README. dpkg-shlibdeps fills Depends: — with rustls and bundled SQLite, only libc6 (>= 2.34) and libgcc-s1. - Built in ubuntu:22.04, the oldest glibc among the targets, so one package per architecture installs on Ubuntu 22.04+ and Debian 12+. - deb.yaml builds amd64 and arm64 on demand and on packaging changes, then installs and runs each package on Debian 12, Debian 13, Ubuntu 22.04 and Ubuntu 24.04. - The release workflow's deb_build job attaches the packages to each release, and the completeness check expects them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
In a `container:` job, `run:` steps default to `sh`, which is dash on
Debian and Ubuntu and stops at `set -o pipefail` ("Illegal option"), so
both .deb builds failed before building anything. The Fedora jobs never
hit this: their `sh` is bash.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
LeMyst
force-pushed
the
ci/deb-packages
branch
from
September 28, 2026 21:03
ee977f0 to
7b1e093
Compare
LeMyst
marked this pull request as ready for review
September 28, 2026 21:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #576.
What changes
packaging/debian/build-deb.sh, modelled onpackaging/fedora:--no-default-features --features server,import,lsp,sync, the same set as the RPM. There is noself-update, socook updateis absent and apt owns the binary.dpkg-deb, with nodebian/source tree:/usr/bin/cook;/usr/share/doc/cookcli/{copyright,README.md}.copyrightuses the machine-readable format and includes the MIT text.Depends:comes fromdpkg-shlibdeps. With rustls and bundled SQLite that islibc6 (>= 2.34), libgcc-s1 (>= 4.2), so the renamed OpenSSL package on Ubuntu 24.04 / Debian 13 (libssl3t64) is not a concern.DEB_REVISIONsets the Debian revision andDEB_MAINTAINERthe maintainer. Maintainers may want to setDEB_MAINTAINER: the repo has no contact email, so the default is the issue tracker URL.Build environment. CI builds in
ubuntu:22.04, whose glibc 2.35 is the oldest among the targets. One package per architecture then covers Ubuntu 22.04+ and Debian 12+. Rust comes from rustup, because the distributions' ownrustcis too old; dpkg-deb, unlike rpmbuild, does not check build dependencies.deb.yaml(on demand, and onpackaging/debian/**changes):debian:bookworm,debian:trixie,ubuntu:22.04andubuntu:24.04, then runscook --version, checks the three completion files, and checks thatcook updateis absent.release.yaml:deb_buildjob,continue-on-errorlike the other package builds.cook-deb-{amd64,arm64}, soupload_artifactschecksums thecookcli_<version>-1_<arch>.debfiles and attaches them.Docs. A "Debian / Ubuntu" section in the README, and
packaging/debian/README.md.Testing
ubuntu:22.04exactly as the workflow does. The result:cookcli_0.37.0-1_amd64.deb, 8.7 MB, root-owned files.aptand runs on Debian 12, Debian 13, Ubuntu 22.04 and Ubuntu 24.04:cookcli 0.37.0 - in food we trust, completions 3/3,cook updateabsent.Debcheck builds and install-tests it.build-deb.sh..debartifacts correctly.🤖 Generated with Claude Code