From patchwork Thu May 1 20:40:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 62317 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74214C3ABBC for ; Thu, 1 May 2025 20:41:02 +0000 (UTC) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by mx.groups.io with SMTP id smtpd.web11.4661.1746132062080237677 for ; Thu, 01 May 2025 13:41:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=D6Revz99; spf=pass (domain: konsulko.com, ip: 209.85.219.49, mailfrom: scott.murray@konsulko.com) Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-6f0ad74483fso17599376d6.1 for ; Thu, 01 May 2025 13:41:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1746132060; x=1746736860; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=mXE7fQxuYWlnZ8Yw7gEE3QdEGm6uMlWQ5DJE7YqFOcA=; b=D6Revz99l9+8zW/KnZlZFgMkHl5RGTDamryO65oiUPezf8vsST4yggkGkT5CjLCFYn UB/kJyzKYwazuP7iTvfxHTIi+81N2h+uvtxM5cFkMbymULE8abKyR8dlnZNzIMk75AcM /5WrbauV0pn5QNX7qfjZiezEPxdcAm/7NdBMI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746132060; x=1746736860; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state: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Received: by 2002:ad4:5d42:0:b0:6e4:4484:f35b with SMTP id 6a1803df08f44-6f5155f3deemr9828256d6.30.1746132060612; Thu, 01 May 2025 13:41:00 -0700 (PDT) Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6f50f3b03ddsm9086216d6.7.2025.05.01.13.40.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 May 2025 13:41:00 -0700 (PDT) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][kirkstone/rust][PATCH 26/38] rust-source: Fix remove_gcc_directory Date: Thu, 1 May 2025 16:40:02 -0400 Message-ID: <283e7ba99036eabcb6c8a00c0544f57df5606a28.1746130391.git.scott.murray@konsulko.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 01 May 2025 20:41:02 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/1453 From: Richard Purdie The patch works for rust-native but not other recipes which change ${S}. Set it to use the correct path so it works for llvm-rust, cargo and others, maximising the space saving. Signed-off-by: Richard Purdie (adapted from oe-core commit 1aee0bc109c1457159440c279ddc1fe5a8d89586) Signed-off-by: Scott Murray --- recipes-devtools/rust/rust-source.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-devtools/rust/rust-source.inc b/recipes-devtools/rust/rust-source.inc index e4df87a..f9ef7c0 100644 --- a/recipes-devtools/rust/rust-source.inc +++ b/recipes-devtools/rust/rust-source.inc @@ -17,7 +17,7 @@ RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" #After updating to Rust 1.85 we can revert this removal of "src/gcc" remove_gcc_directory() { # Ensure the gcc directory exists - gcc_dir="${S}/src/gcc" + gcc_dir="${RUSTSRC}/src/gcc" if [ -d "$gcc_dir" ]; then rm -rf "$gcc_dir" fi