]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/rust-pyo3-macros-backend
rust 1.65 won't build if 'Cargo.toml.orig' is present in one of the crate files
[ipfire-2.x.git] / lfs / rust-pyo3-macros-backend
index af30b32ab7758d9a508fc6701a2b2a0f1b81961a..f5c2c428d957f0d64370e505dc8d6d334b3cb4e8 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)