[Buildroot] [git commit] package/rust/rust.mk: add missing host-zlib dependency

Yann E. MORIN yann.morin.1998 at free.fr
Sat Mar 2 21:28:53 UTC 2024


commit: https://git.buildroot.net/buildroot/commit/?id=953230e176ef4357d5cc28039eb913951b79f513
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Several rust tools are linking against zlib, so add the depedency
explicitly in HOST_RUST_DEPENDENCIES.

For now, host-rust build system is not able to find zlib provided
by Buildroot in HOST_DIR due to at least two issues that will be
fixed in followup commits.

Note that host-zlib is already in the dependency chain, by way of
host-openssl, but since rust needs for itself, we need to add it
as an explicit dependency.

Signed-off-by: Romain Naour <romain.naour at smile.fr>
[yann.morin.1998 at free.fr: add not about transitive dependency]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
 package/rust/rust.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/rust/rust.mk b/package/rust/rust.mk
index f7a5c0fcd5..16a397407f 100644
--- a/package/rust/rust.mk
+++ b/package/rust/rust.mk
@@ -20,6 +20,7 @@ HOST_RUST_DEPENDENCIES = \
 	host-python3 \
 	host-rust-bin \
 	host-openssl \
+	host-zlib \
 	$(BR2_CMAKE_HOST_DEPENDENCY)
 
 HOST_RUST_VERBOSITY = $(if $(VERBOSE),2,0)



More information about the buildroot mailing list