altsem / altsem/gitu

Provide a static binary with musl

Open
#403 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2.9k
Forks
164
PR merge metrics
No merged PRs in 30d

Description

I couldn't use the binary provided as it builds with GLIBC and I'm on an older ubuntu, then I tried to build the package myself and got a linker error in tree-sitter due to some missing link time dependency so i finally tried cross to build me a static binary with musl. It was as easy as:

cargo install cross --git https://github.com/cross-rs/cross
cross build --release --target x86_64-unknown-linux-musl

ldd target/x86_64-unknown-linux-musl/release/gitu
      statically linked

Providing it along with current releases will be good for users with older systems.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the reported cross build --release --target x86_64-unknown-linux-musl command as the starting point, and inspect how current releases produce their binaries. Done means releases also provide a statically linked x86_64-unknown-linux-musl binary, verifiable with ldd as shown in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
build-system, cli, release
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.