Skip to content
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

Add vendored-libgit2 feature to git2 dependency #192

Merged
merged 2 commits into from
Sep 4, 2023

Conversation

gierens
Copy link
Member

@gierens gierens commented Sep 4, 2023

This builds libgit2 into the binary to avoid dependency problems on systems that don't have the required version of libgit2 yet.

Background:

When building the deb package from eza tag v0.11.0 and installing it you run into this problem:
Screenshot from 2023-09-04 09-26-31

I'm not exactly sure why this didn't appear before and how we got into this, but my best guess is this #182 where be bumped the https://github.com/rust-lang/git2-rs/ version. Somehow the new version requires the vendored-libgit2 feature to be set to ship libgit2 with it and before it didn't, although I can't really tell where from their changelog.

You might wonder why don't we just add this as dependency to our deb package ... well, neither the newest Ubuntu nor Debian have the required libgit2 v1.7 in their repos but only v1.1 or v1.5.

This builds libgit2 into the binary to avoid dependency problems on
systems that don't have the required version of libgit2 yet.

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
@gierens gierens added dependencies Pull requests that update a dependency file packaging › deb labels Sep 4, 2023
Refs: eza-community#192
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Copy link
Member

@cafkafk cafkafk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay that sounds reasonable.

I added some documentation, and this seems to work. Now we just wait for CI to finish and merge this.

@cafkafk cafkafk merged commit 721eddf into eza-community:main Sep 4, 2023
14 checks passed
Omnikron13 pushed a commit to Omnikron13/eza that referenced this pull request Mar 17, 2024
Refs: eza-community#192
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file packaging › deb
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants