-
-
Notifications
You must be signed in to change notification settings - Fork 873
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
Get typst
packaged for Debian and other repos
#3679
Comments
To track some of those dependencies already in Debian, I went through the Debian Rust Maintainers list and checked off the crates already present.
|
Edit: the binaries needed are mostly in
|
@boredsquirrel We do have official binaries attached to each release, e.g.: https://github.com/typst/typst/releases/tag/v0.11.0 |
I don't think so. Most binaries on Debian are severely outdated due to the the way they package the distribution, so that makes it very inconvenient to package via them. On a fully up-to-date Debian bookworm (bookworm is the newest version of Debian) system: $ sudo apt-get install neovim
$ nvim --version
NVIM v0.7.2 Nvim is at 0.9.5 since Dec 30, 2023. This old v0.7.2 was released Jun 26, 2022. So the newest Debian is one and a half year behind! The same occurs basically everywhere. It's inherent to Debian. That's why projects like Docker use a separate apt repository, which is also cumbersome. Instead, I second @boredsquirrel that using cargo or any other package manager than Debian is probably a better way to go. EDIT: @boredsquirrel could even install binaries directly via https://github.com/cargo-bins/cargo-binstall |
I agree that this is sort of an issue for Debian, not for typst itself. That being said, as a user, I prefer to have my software centrally managed by apt and dpkg than manually installed. Piping a script you got from wget into the shell is particularly scary to me. I understand that it's the Rust way to go and that's perfectly ok, but I really prefer not to do it at home. This issue remains very precious even if it's mostly a downstream issue for Debian, not an upstream issue for Typst, because of the careful breakup of missing dependencies that still need to be packaged. |
With $ cargo binstall typst assuming typst is set up to allow this. bininstall would use the official GitHub releases, so as long as nobody gains access to make releases, it should be safe. Wget/curl into shell is not inherently less safe than $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh enforces HTTPS. In this case, the extra |
Agreed, from the developer/upstream perspective this can be really painful. But from a user perspective having stuff packaged in the official repositories totally rocks. Also, that "Debian is outdated" trope tickles me to no end. First of all, it really depends on what you mean by outdated. If we are talking security-related patches, then any of the Debian releases is more likely to give you a more "up-to-date" binary then some random tarball that you downloaded half a year ago from some website you do not remember the name of. That's why I prefer having my software packages managed by the distribution whenever possible. Just one thing less I need to worry about. Secondly, Sorry for the digression ❤️ |
Description
In order to get
typst
installable via the Debian repos, all dependencies inCargo.lock
need to be available at https://qa.debian.org/[email protected]. The majority exist already, but from a cursory look maybe about 20% will need to be added if they can't be configured out.This happens by adding dependencies in salsa via debcargo https://salsa.debian.org/rust-team/debcargo-conf which anyone can do. Once all the missing dependencies are in, Typst itself can be added.
There is an existing RTP at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060888
There is also an incomplete https://github.com/jcbhmr/typst.deb, which I believe would be for a PPA. Being in the main repos is of course a better goal, if possible.
Use Case
It would be an awesome convenience to be able to install Typst via
apt
. I know the Typst maintainers will likely not want to get involved, but I think it seems reasonable to have a "help wanted" tracking issue.The text was updated successfully, but these errors were encountered: