[23/50] python3-cryptography: Fix build against Rust

Message ID 20220222125135.1211290-24-michael.tremer@ipfire.org
State Dropped
Headers
Series [01/50] expat: Update to version 2.4.6 - Security/CVE fixes |

Commit Message

Michael Tremer Feb. 22, 2022, 12:51 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/python3-cryptography | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/lfs/python3-cryptography b/lfs/python3-cryptography
index 15e6c5697..47a46840f 100644
--- a/lfs/python3-cryptography
+++ b/lfs/python3-cryptography
@@ -36,6 +36,8 @@  PAK_VER    = 1
 
 DEPS       = python3-cffi
 
+export CARGOPATH = $(CARGO_PATH)
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -77,6 +79,8 @@  $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	@$(PREBUILD)
 	@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+	cd $(DIR_APP) && $(CARGO_PREPARE)
+	cd $(DIR_APP) && rm -vf src/rust/Cargo.lock
 	cd $(DIR_APP) && python3 setup.py build
 	cd $(DIR_APP) && python3 setup.py install --root=/
 	@rm -rf $(DIR_APP)