net-im/libsignal-node: Fix build when git isn't installed

Git is not mandatory as we can use the 'patch' utility
This commit is contained in:
Mikael Urankar 2024-01-12 18:00:27 +01:00
parent 7024355110
commit 1ea4180eb7

View file

@ -1,5 +1,18 @@
--- ../boring-8245063ae6eb97d909982b89fad45bb7f0a2a1a0/boring-sys/build.rs.orig 2024-01-05 10:45:46 UTC
+++ ../boring-8245063ae6eb97d909982b89fad45bb7f0a2a1a0/boring-sys/build.rs
@@ -456,9 +456,9 @@ fn ensure_patches_applied() -> io::Result<()> {
lock_file.lock()?;
// NOTE: init git in the copied files, so we can apply patches
- if !has_git {
- run_command(Command::new("git").args(["init"]).current_dir(&src_path))?;
- }
+// if !has_git {
+// run_command(Command::new("git").args(["init"]).current_dir(&src_path))?;
+// }
if cfg!(feature = "pq-experimental") {
println!("cargo:warning=applying experimental post quantum crypto patch to boringssl");
@@ -482,11 +482,9 @@ fn apply_patch(patch_name: &str) -> io::Result<()> {
.canonicalize()?;