Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Debian support via static executable or deb package #6824

Closed
eliliam opened this issue Apr 19, 2023 · 16 comments
Closed

Debian support via static executable or deb package #6824

eliliam opened this issue Apr 19, 2023 · 16 comments
Labels
A-packaging Area: Packaging and bundling C-enhancement Category: Improvements E-help-wanted Call for participation: Extra attention is needed

Comments

@eliliam
Copy link

eliliam commented Apr 19, 2023

There are many users out there who use Debian for both their personal environments as well as in production, I being one of them. While there is a PPA for Ubuntu, this does not seem to work with Debian. I have tried the generic Linux version from the releases page, but am met with errors regarding GLIBC version mismatches. I have experienced this on Debian 11 and the only way that I can seem to get it to work is via building from source. However, building from source is not ideal, especially for smaller environments with minimal compute power and disk space, especially when the rust toolchain is also not available.

image

My suggestion would be to statically link the executable so that it can run on these systems, or to provide an official deb package that can be used on both Debian as well as Ubuntu.

@eliliam eliliam added the C-enhancement Category: Improvements label Apr 19, 2023
@the-mikedavis
Copy link
Member

We don't like to maintain many 'official' packages since there are so many package managers and formats and supporting many is a burden. Also I don't think any of the maintainers use debian frequently or package for it. Like the other packages though, it would be great if someone familiar with debian packaging could package Helix

@the-mikedavis the-mikedavis added E-help-wanted Call for participation: Extra attention is needed A-packaging Area: Packaging and bundling labels Apr 20, 2023
@bitbegin
Copy link

#6528

@yunfan
Copy link

yunfan commented Aug 13, 2023

@the-mikedavis then what about the other suggestion on providing static linked executable? it looks like could reduce much the work for providing different linux distrio

@tgross35
Copy link
Contributor

I think it is possible for this to be accepted into Debian repos, which should work for both Debian and Ubuntu without a ppa. I think that typically once you produce a .deb package, you just need a sponsor who can help get it entered into the bugtracker.

Links to some packages that have recently done the same:

@tgross35
Copy link
Contributor

tgross35 commented Aug 17, 2023

A better tutorial here: https://salsa.debian.org/rust-team/debcargo-conf/blob/master/README.rst / https://wiki.debian.org/Teams/RustPackaging

@pascalkuthe
Copy link
Member

yeah, that would be the ideal, but it requires somebody to volunteer to put the effort into this. As @the-mikedavis mentioned, we don't maintain the distro packages ourselves so somebody else needs to step up to do that (just like for any other distro)

@tgross35
Copy link
Contributor

tgross35 commented Aug 17, 2023

Of course; it would require both somebody to do the changes in this repo and a sponsor on the debian side. I'm just trying to collect some context in case anyone wants to have a go at it :)

@pascalkuthe
Copy link
Member

do the changes in this repo

I meant that we don't usually accept packaging files in this repo. Ideally, packaging should happen without our involvement (same as for other distros)

@tgross35
Copy link
Contributor

Ah; I did not realize that was the case. Do you know off the top of your head who maintains the PPA? (I can figure it out if not). I wonder if the PPA's packaging would be accepted into debian stable with a sponsor.

@pascalkuthe
Copy link
Member

No, I don't know that I am afraid, I think the PPA also had some issues (or was being abandoned?) but I might be mixing that up it's hard to keep track of all the distro packages. I am also pretty sure that the PPA downloads the official release from github instead of building from source which is a no go for an official package so you would need to start from scratch most likely.

@tgross35
Copy link
Contributor

Looks like the context is here #3640 and the packaging is at https://github.com/maveonair/helix-ppa. It seems like the rustc version available is prohibitive, but I thought there may be ways to get around that.

@sylvestre I think you maintain Rust packaging for Debian - is there any way Helix could make it into the Debian repos if the MSRV is greater than bookworm's rustc?

@pascalkuthe
Copy link
Member

rustc on debain unstable is new enough( (rustc 1.66) for helix 23.5 and likely the next release too. New packages usually don't get introduced to stable retroactively anyway afaik

@maveonair
Copy link

maveonair commented Aug 19, 2023

No, I don't know that I am afraid, I think the PPA also had some issues (or was being abandoned?) but I might be mixing that up it's hard to keep track of all the distro packages. I am also pretty sure that the PPA downloads the official release from github instead of building from source which is a no go for an official package so you would need to start from scratch most likely.

No, it's not abandoned, but I had some problems with the build process that were solved thanks to the support of the Helix community. So the PPA is fine, but Debian 12 ships an earlier version of Rustc that cannot be used at the moment to build Helix under Debian 12.

There might be a way to ship a newer version of Rustc via the Debian Backports, but I'm not sure if this is the preferred way.

@pascalkuthe
Copy link
Member

pascalkuthe commented Aug 19, 2023

Good to hear the Ubuntu PPA si still maintained.

I think getting into Debian unstable would be a good start (and like I said the rustc version is actually new enough). When the next Debian release comes around helix would then be included there

@FedericoCeratto
Copy link

The progress at building an official Debian package is being tracked at https://bugs.debian.org/1024683

@tgross35
Copy link
Contributor

tgross35 commented Mar 5, 2024

FYI for anyone looking to help - the main task is getting a version of all dependencies into debcargo. A pretty recent list of the missing packages is here https://salsa.debian.org/debian/hx/-/blob/debian/latest/debian/TODO, mostly various gix-* crates

@helix-editor helix-editor locked and limited conversation to collaborators Apr 20, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #10520 Apr 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
A-packaging Area: Packaging and bundling C-enhancement Category: Improvements E-help-wanted Call for participation: Extra attention is needed
Projects
None yet
Development

No branches or pull requests

8 participants