]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
rust: Add switch to skip bin check
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Jan 2022 13:58:46 +0000 (13:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 1 Feb 2022 13:50:32 +0000 (13:50 +0000)
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

index fb5745df062e6363575c18c6e9040267073c765d..3ae5425ee419526757a523b061ebe12a54b308a4 100644 (file)
@@ -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