From: Michael Tremer Date: Fri, 28 Jan 2022 16:27:54 +0000 (+0000) Subject: python3-cryptography: Fix build against Rust X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ede22717f8b0e80e3cb11d9368aa9b9a48b249d2;p=people%2Fms%2Fipfire-2.x.git python3-cryptography: Fix build against Rust Signed-off-by: Michael Tremer --- diff --git a/lfs/python3-cryptography b/lfs/python3-cryptography index 15e6c56972..47a46840f4 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)