]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/rust-digest
rust 1.65 won't build if 'Cargo.toml.orig' is present in one of the crate files
[ipfire-2.x.git] / lfs / rust-digest
index f6f38f025d6eb6db0acee3afc4ed12802b54d5c2..f522543f8c671c8746cef2c240b5e2b07bef3b7c 100644 (file)
@@ -73,6 +73,11 @@ $(subst %,%_BLAKE2,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+
+       cd $(DIR_APP) && if [ -f Cargo.toml.orig ]; then \
+               rm -f Cargo.toml.orig; \
+       fi; \
+
        cd $(DIR_APP) && $(CARGO_PREPARE)
        cd $(DIR_APP) && $(CARGO_BUILD)
        cd $(DIR_APP) && $(CARGO_INSTALL)