From 9f01010958b9f57ef51903f69c7223eaefabf139 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Sun, 31 Dec 2023 13:36:26 +0800 Subject: [PATCH] rust: unexport host sccache env variable Users might configure their own env variables on the host, and sometimes it can lead build failure or unexpected behavior. Fixes: #22889 Signed-off-by: Tianling Shen --- lang/rust/Makefile | 2 +- lang/rust/rust-values.mk | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lang/rust/Makefile b/lang/rust/Makefile index ba322cf1dc..b8f03ae949 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rust PKG_VERSION:=1.74.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=rustc-$(PKG_VERSION)-src.tar.gz PKG_SOURCE_URL:=https://static.rust-lang.org/dist/ diff --git a/lang/rust/rust-values.mk b/lang/rust/rust-values.mk index 7a4d1fcf88..534aaa02a0 100644 --- a/lang/rust/rust-values.mk +++ b/lang/rust/rust-values.mk @@ -2,6 +2,12 @@ # # Copyright (C) 2023 Luca Barbato and Donald Hoskins +# Clear environment variables which should be handled internally, +# as users might configure their own env on the host + +# CCache +unexport RUSTC_WRAPPER + # Rust Environmental Vars RUSTC_HOST_SUFFIX:=$(word 4, $(subst -, ,$(GNU_HOST_NAME))) RUSTC_HOST_ARCH:=$(HOST_ARCH)-unknown-linux-$(RUSTC_HOST_SUFFIX) -- 2.30.2