[06/10] rust: Add switch to skip bin check

Message ID 20220201135246.4096955-6-michael.tremer@ipfire.org
State Accepted
Commit c16dd3aa0c89dbc73f1766a1fbde7bd85dff2b59
Headers
Series [01/10] make.sh: Set a good default for rustc flags |

Commit Message

Michael Tremer Feb. 1, 2022, 1:52 p.m. UTC
  This does not seem to work very reliable, so we need manually disable
this for some packages.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/Config | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
  

Patch

diff --git a/lfs/Config b/lfs/Config
index fb5745df0..3ae5425ee 100644
--- a/lfs/Config
+++ b/lfs/Config
@@ -182,6 +182,9 @@  replace-with = "local-registry"
 endef
 export CARGO_CONFIG
 
+# Set to false if you want to skip the binary install step
+CARGO_HAS_BIN = true
+
 CARGO = \
 	CARGOPATH=$(CARGO_PATH) \
 	RUSTC_BOOTSTRAP=1 \
@@ -219,7 +222,7 @@  define CARGO_INSTALL
 		install -v -m 644 Cargo.toml.deps $(CRATE_PATH)/Cargo.toml && \
 		echo "{\"files\":{},\"package\":\"\"}" > $(CRATE_PATH)/.cargo-checksum.json; \
 	fi && \
-	if $(call CARGO_TARGET_CHECK,bin); then \
+	if $(CARGO_HAS_BIN) && $(call CARGO_TARGET_CHECK,bin); then \
 		$(CARGO) install $(CARGO_OPTIONS) --no-track --path .; \
 	fi
 endef