Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/rust: use cargo environment during installation
@ 2026-10-06 19:59 James Hilliard
  2026-10-07  7:53 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: James Hilliard @ 2026-10-06 19:59 UTC (permalink / raw)
  To: buildroot; +Cc: Eric Le Bihan, James Hilliard

Pass HOST_PKG_CARGO_ENV to x.py dist, as is already done for x.py build.
This ensures Cargo uses Buildroot's configured CARGO_HOME instead of
falling back to the user's default cache, and keeps the host RUSTFLAGS
consistent between the build and installation steps.

Fixes:
 - https://autobuild.buildroot.net/results/02b/02b2fc6ba7329852d7bf6ae4935c120c4de47b3e

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/rust/rust.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/rust/rust.mk b/package/rust/rust.mk
index ca68de589c..7546ad39fe 100644
--- a/package/rust/rust.mk
+++ b/package/rust/rust.mk
@@ -79,7 +79,8 @@ endef
 endif
 
 define HOST_RUST_INSTALL_CMDS
-	cd $(@D); $(HOST_MAKE_ENV) $(HOST_DIR)/bin/python$(PYTHON3_VERSION_MAJOR) x.py dist
+	cd $(@D); $(HOST_MAKE_ENV) $(HOST_PKG_CARGO_ENV) \
+		$(HOST_DIR)/bin/python$(PYTHON3_VERSION_MAJOR) x.py dist
 	$(HOST_RUST_INSTALL_RUSTC)
 	$(HOST_RUST_INSTALL_LIBSTD_TARGET)
 endef
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-07  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 19:59 [Buildroot] [PATCH 1/1] package/rust: use cargo environment during installation James Hilliard
2026-10-07  7:53 ` Thomas Petazzoni via buildroot
2026-10-07  9:45   ` James Hilliard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox