tenseleyflow/fussr / e18d9ce

Browse files

fix: add build.rs to force linking system libgit2/libssh2

Authored by espadonne
SHA
e18d9ce09a2cab396dee92b17ba6500454223162
Parents
5c42838
Tree
fcfb0d9

4 changed files

StatusFile+-
M Cargo.lock 1 1
M Cargo.toml 1 1
A build.rs 7 0
M fussr.spec 1 1
Cargo.lockmodified
@@ -285,7 +285,7 @@ dependencies = [
285285
 
286286
 [[package]]
287287
 name = "fussr"
288
-version = "0.2.6"
288
+version = "0.2.7"
289289
 dependencies = [
290290
  "anyhow",
291291
  "clap",
Cargo.tomlmodified
@@ -1,6 +1,6 @@
11
 [package]
22
 name = "fussr"
3
-version = "0.2.6"
3
+version = "0.2.7"
44
 edition = "2021"
55
 description = "A git staging TUI tool - Rust port of fuss"
66
 authors = ["Matthew Wolffe"]
build.rsadded
@@ -0,0 +1,7 @@
1
+fn main() {
2
+    // Force linking to system libgit2 and libssh2
3
+    // This ensures the linker includes these libraries even when
4
+    // libgit2-sys's build.rs has issues detecting them via pkg-config
5
+    println!("cargo:rustc-link-lib=git2");
6
+    println!("cargo:rustc-link-lib=ssh2");
7
+}
fussr.specmodified
@@ -1,5 +1,5 @@
11
 Name:           fussr
2
-Version:        0.2.6
2
+Version:        0.2.7
33
 Release:        1%{?dist}
44
 Summary:        A git staging TUI tool - Rust port of fuss
55