]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
python3-cryptography: Fix build against Rust
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Jan 2022 16:27:54 +0000 (16:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Feb 2022 17:55:35 +0000 (17:55 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/python3-cryptography

index 15e6c56972cbb8b22c0e46ce2f55ee48844a5e6e..47a46840f4a01357fbc2eba736b3df9398669a29 100644 (file)
@@ -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)