From 86a8b8cccae290df390f7b20158c194bfd1b8bcc Mon Sep 17 00:00:00 2001 From: Maximilien Baumann Date: Thu, 8 Aug 2024 16:53:09 +0200 Subject: [PATCH] Add proxy definition for download Depending of the network, proxies can be necessary to go on internet To allow download, keep proxies environment variable Signed-off-by: Maximilien Baumann --- classes/cargo_bin.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/cargo_bin.bbclass b/classes/cargo_bin.bbclass index 2c0416d..4b52590 100644 --- a/classes/cargo_bin.bbclass +++ b/classes/cargo_bin.bbclass @@ -104,6 +104,12 @@ cargo_bin_do_compile() { export LDFLAGS="" export RUSTFLAGS="${RUSTFLAGS}" export SSH_AUTH_SOCK="${SSH_AUTH_SOCK}" + export http_proxy="${http_proxy}" + export https_proxy="${https_proxy}" + export ftp_proxy="${ftp_proxy}" + export ALL_PROXY="${ALL_PROXY}" + export all_proxy="${all_proxy}" + export no_proxy="${no_proxy}" # This "DO_NOT_USE_THIS" option of cargo is currently the only way to # configure a different linker for host and target builds when RUST_BUILD ==