From patchwork Mon Nov 30 00:52:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106331 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23232.1795999964325147682 for ; Sun, 29 Nov 2026 16:52:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=Wn52hoMj; spf=pass (domain: konsulko.com, ip: 209.85.160.171, mailfrom: scott.murray@konsulko.com) Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-55d6deecef6so101210341cf.2 for ; Sun, 29 Nov 2026 16:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999963; x=1796604763; 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:content-type; bh=l/C2o+p4JGt0cE5yqEQz86s5h0RPf+BNDVP1Etnn+WQ=; b=Wn52hoMjzRQLYaLpNCEXJeT46GsWKs8ofFigg8T4EQBqGlY54zrPseMxrBcXFVYObY tBPXCQ/Mhl323+zbZ3YMnzvR9zJ1niSDv/y04LJFkle3J0hFpV/E9MMobupAlmw5I3G+ SD1e8bx0Ony+R0udirfps1ZUUTkWGsPle6dK8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999963; x=1796604763; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=l/C2o+p4JGt0cE5yqEQz86s5h0RPf+BNDVP1Etnn+WQ=; b=d2Pl+copaQz1PEoFJWtIPTPTDyCHUCPB0WnvCwCWz/YfQtfFJPME6LLksyNr4DkaY7 Ps1QiTgtWfzWF52vl6jBM/l9u72BvAE2r4izAdcv0eZYBEUHAm/RaFF2TkgSiRgFE91F QytAsA9hARf9VSxxbj8Btr+rrobYnpqEfRSGMbyxgq8Cn7t+rZeRsX+dBUjcZX7QLWO7 YJzorBYBmMQ7jNBGggZlYOCddBpn4PfJxr9gsXuyEJrGbgCiCdtMjdMDlSjaY3y39t2z yxq1/GnRg5es/gBkN3tB/WzBR7K9JFMX9KBV7M+7W07ER5hu6wL09hXd4Zrba1Q3nvLX hkEg== X-Gm-Message-State: APuU4Z9YubK7uQqIY4VPmmO4pbyeu9WTBUKF2ANtmf/gekwdb+V6LykS WH5bqHIWFt95pPDC68jAmOwfx59nVowDQw54Y8E55qUX44DvQbk70ps3qLORzPciM/TH8+mt4zL p1Hvc X-Gm-Gg: AZFdTZdfVEDaW8OO+q9TL5n6hnzDk9voXwHAhX4+cFo0boySxSU/ZGwT2LZmCE+B/Sb 8N6M8bKcFhA1BQy3ziY+CBxxEmO/C4s4BzKU4VTcz5O/hoBVa+YVhToVtRmAoyjOpa2bIrk0rI5 ro7aAX/xeewwOmoDn1t4YVwPXXfYmIk6cyV1i57rFFn7kCUDZsu+WSLoW5Q40wCrtba4qXHGjT6 c2W09SrNrMs9xM6qL/TejkEx2PorKGWaE1N1iIldAgfBxTP8aq5cOv7qQTGTftQwkXFWNbFsiMC J9ZF5jjalVf1NlBfjr4RsAd5lsGCY8SuNoQ/3sqfKb36VzcU86998dcEJ0vnywT4HENuHk9Y4kw qXJlqkCEKkNydSyW1Yx2YcS0Xx8D1gpDw2fgBbtX/4rlffkhbrEJL5VlUmw9Y4vh96JnpyjK2Lz uhL3fmKc0Una1HXS4a4nHvH0oAQ37XBp4O72qM8Wmw/2piPC9/ZgnVHiDTe+XQY/Yt6Tm+J5Fxl eRFiMR1EL7j6vIdKyketZpT27ji7XqeD4RROIOt+tN4b6OBM0MguT5lMDBSjSy6G8ChEYWiEwf6 VytWQ22OKA9YO09dbDDA/NELHZwfLRwOZxjxFDWQJ6SqVVsiclv+9pdtl4Nkn/tifmysJLydDMA vZudRTInAXjw2b6IVGJa1xlu0qzdn5Yo8WhyBJ5tiLtTbsY0vIq3JJkLfVks45xK4YQ== X-Received: by 2002:a05:620a:199b:b0:949:7502:69c with SMTP id af79cd13be357-949bab7ee59mr5898092185a.73.1795999963071; Sun, 29 Nov 2026 16:52:43 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:42 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 01/10] rust-target-config.bbclass: Add i128:128 to mips64 data layouts Date: Sun, 29 Nov 2026 19:52:19 -0500 Message-ID: X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5588 From: Michal Sieron LLVM 22 added i128:128 to the default MIPS64 data layout. rustc rejects a target spec whose data-layout differs from the one LLVM reports, so building libstd for mips64 fails: error: data-layout for target `mips64-octeon2-linux-gnu`, `E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128`, differs from LLVM target's `mips64-octeon2-linux-gnu` default layout, `E-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128` Add i128:128 to the mips64 and mips64el entries to match, as already done for the other 64-bit architectures. mips64-n32 is left alone. AI-Generated: Uses Cursor Signed-off-by: Michal Sieron Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (adapted from oe-core commit 781e3a54a8cf13c092fd68c46cd87d80ca8679f0) Signed-off-by: Scott Murray --- classes-recipe/rust-target-config.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes-recipe/rust-target-config.bbclass b/classes-recipe/rust-target-config.bbclass index fee19a1..1faaaef 100644 --- a/classes-recipe/rust-target-config.bbclass +++ b/classes-recipe/rust-target-config.bbclass @@ -225,7 +225,7 @@ TARGET_C_INT_WIDTH[mipsel] = "32" MAX_ATOMIC_WIDTH[mipsel] = "32" ## mips64-unknown-linux-{gnu, musl} -DATA_LAYOUT[mips64] = "E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128" +DATA_LAYOUT[mips64] = "E-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" TARGET_ENDIAN[mips64] = "big" TARGET_POINTER_WIDTH[mips64] = "64" TARGET_C_INT_WIDTH[mips64] = "32" @@ -239,7 +239,7 @@ TARGET_C_INT_WIDTH[mips64-n32] = "32" MAX_ATOMIC_WIDTH[mips64-n32] = "64" ## mips64el-unknown-linux-{gnu, musl} -DATA_LAYOUT[mips64el] = "e-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128" +DATA_LAYOUT[mips64el] = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" TARGET_ENDIAN[mips64el] = "little" TARGET_POINTER_WIDTH[mips64el] = "64" TARGET_C_INT_WIDTH[mips64el] = "32" From patchwork Mon Nov 30 00:52:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106329 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23233.1795999964790338755 for ; Sun, 29 Nov 2026 16:52:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=MTobgHbi; spf=pass (domain: konsulko.com, ip: 209.85.219.53, mailfrom: scott.murray@konsulko.com) Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-9213922de73so81296756d6.1 for ; Sun, 29 Nov 2026 16:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999964; x=1796604764; 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:content-type; bh=WG7v3+Z5MqSzAcv4v0+T7AXYeIRRvvlJEH//7+zsA5o=; b=MTobgHbi8wZNrank5qndq61vi6QfWvWA922P7Xi6T2ljQGzt+3VpJqbkaCRNyQxdfM ICfC+FrPbKYGNPkiu0FFHqqQttEIMo/l5c1lc/wbdePg3cElsbiUAcTl39V8DXYsRBB3 updylGHVEFRaTIdCANQcLu0ZMMfrrrPWf4wzU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999964; x=1796604764; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=WG7v3+Z5MqSzAcv4v0+T7AXYeIRRvvlJEH//7+zsA5o=; b=rs2kstUUtvufFjjrU7DysDzJaxwbODGg1WTpqUku8uqn5BCvla4+iQNRgljB11yAKS 7WnfmXyhtpFdLNp5/+wBZByrSlbkQtI5n99+yi8QJUmRDRAE0KrFpqLLVhyJ5ip5XpPZ kxJEy6YSoq/gnQagPJtkesX4zVM/2jD/jIEWpbyJiDUuqdzgAJnvekK+pdr6NshS4K00 DMDz+FDcUQnA9x6oh2zE9dZAVnufqq39AC+nBJhMqaytfCVeZ/FBVFBdL27J7XlYUyNU 53m9yZocR+7/AzZIwZDlbrJG2RumfbUUTVw9mXkypHiv6rxbS5STikuNoT0zoH2Xk1n7 CAwA== X-Gm-Message-State: APuU4Z/z+QDGes2vNTNg5gzoC3bkVR8XPpfmwFkqHOBLnj8I0FLhNNNR KExBIgvE1+jw0pdoas5+4OqVF5fyFRqZGPP6E4JUUuwPqAHLI2SVDX+MwAgp4gkRnFn8K6PoTPP TwY7r X-Gm-Gg: AZFdTZd3z4NtPZNjJH0crbKGgtx8+Y6sdhr6C/uIpieHoj47d32h2ivgCZvyjIQrHKZ H633zl3zizmdi3aanx3hradOx8lUsHfaGeVhz7mRaiXKwKS/zcsUxt+56VMVTyNJHDn8qt6uNqJ WsMa+jsK2wIHoauEkeRpa/sJ/zpww1AnK2IlHVDGsaSsjR/S2ZSVNPa/T3qoGt9TgfBfkkyltrE 2OVlVoT4ODB0IMjKbzHcG7uPcfxjxK5wyJcCBC0tY2mmd0WEITROIzDmKM6lDIZED8kFLe9PDIa 18Q3aeHvPL2/xWCLyOOS6HyFo7lsy1J5xxvsgS/Z+GDGoT60TY5f2kFsZFVu755n5sbligiXKmf ArPcAYFIaW+YaIXEmdyVgVaqQy9uzjR1y+nGzlaimDbd1Cl1oZIjXHejqTH9cfpH6WlfHWSBu6T mOswSqGlBtYHv/FETxjbP4v0P/9bRNXhC4ZoF1nwH702hSusNoxLX26LBnrao2zu5sf2UrzLc53 9jIuzs1k7yY41X3zXTigDLtSJKpWr7N0L/0Ytrpo0NrNLssDiD9y4dIgqRKPboEE4F67RnVoC4v 5D9MdhOKEsmEG7vJ81HasWdGv/4Au0KeVoJWwBV594DShYS+DUTlvTyR/wIpuOOv9DG9kaDRA16 +cQe6lQu1bI2LiD47IqO7BLaG9JgbNMSh8GksXwQRx18Y642yt5Glpcjc2APOUfuYag== X-Received: by 2002:a05:6214:2389:b0:921:57c6:57d4 with SMTP id 6a1803df08f44-92157c65bb2mr427138516d6.26.1795999963612; Sun, 29 Nov 2026 16:52:43 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:43 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 02/10] rust-target-config.bbclass: Set llvm-abiname for mips64 targets Date: Sun, 29 Nov 2026 19:52:20 -0500 Message-ID: X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5589 From: Michal Sieron Recent rustc requires 64-bit MIPS target specs to name the LLVM ABI and fails the build of libstd otherwise: error: LLVM ABI must be specified for 64-bit MIPS targets Set llvm-abiname to n64 for mips64 and mips64el, and to n32 for the mips64-n32 variant, matching the ABIs the data layouts already describe. AI-Generated: Uses Cursor Signed-off-by: Michal Sieron Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (adapted from oe-core commit 9518ce9aa2a6cbce678895ef9a95cd27939dae2a) Signed-off-by: Scott Murray --- classes-recipe/rust-target-config.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes-recipe/rust-target-config.bbclass b/classes-recipe/rust-target-config.bbclass index 1faaaef..2faecd5 100644 --- a/classes-recipe/rust-target-config.bbclass +++ b/classes-recipe/rust-target-config.bbclass @@ -418,6 +418,10 @@ def rust_gen_target(d, thing, wd, arch): tspec['llvm-abiname'] = d.getVar('TUNE_RISCV_ABI') if "loongarch64" in tspec['llvm-target']: tspec['llvm-abiname'] = "lp64d" + if arch_abi == "mips64-n32": + tspec['llvm-abiname'] = "n32" + elif rust_arch in ("mips64", "mips64el"): + tspec['llvm-abiname'] = "n64" if "powerpc64le" in tspec['llvm-target']: tspec['llvm-abiname'] = "elfv2" elif "powerpc64" in tspec['llvm-target']: From patchwork Mon Nov 30 00:52:21 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106326 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.23417.1795999965409287833 for ; Sun, 29 Nov 2026 16:52:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=mOeGlJxt; spf=pass (domain: konsulko.com, ip: 209.85.219.53, mailfrom: scott.murray@konsulko.com) Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-91c847584b8so105662446d6.0 for ; Sun, 29 Nov 2026 16:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999964; x=1796604764; 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:content-type; bh=nFLDCZWxxqpGR70qElHFKsQCTr4qr98l1shdU7xxw6k=; b=mOeGlJxtxE0N6jtzZrdqhnlTdF0IOrG2NYsDbCWRCHdhFQKl3lkuwoJX8+Rohpqmy9 BOYpbHnQy3edp9ItFkoygcGnW1hSnEEcVpdMTWSlcczesRkU64WbmD+Knlgk7kCdzstl k2cR4hL3g9012E5Z9xp23jBWTrtScM23l73QQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999964; x=1796604764; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=nFLDCZWxxqpGR70qElHFKsQCTr4qr98l1shdU7xxw6k=; b=22E11UwWJLVWg5Lfhe2W9n0OWT77N93m93o11FUNuvxHUZhsxhllsqXx3zIUmO2p7l V1mAQkav6Ds1XMlkDxUwqCLTTs7lH5gpmGWP8qnrpwe+TKHy7JQLi0czbxCVbbHlMeID tcnCMeNXrhh2cozlFhUGM+PL0rzYTcqI7yDpq+MJZk3+AiodOcWl9TV+FdqFslvIO2Rz FlIE688HR0R/k6zJlnFbxbiu3VIBsOqT6Qs5q87MgSVwNwbVcFZali3RZ0u2RmvjydLt Wu9le9e01Kd++5Y56cF3ADNbSiy5sWfmlUoaFehbRRo6DqTj8MQzBM3loSOBo8AUSslj nr2g== X-Gm-Message-State: APuU4Z/yNG972O53M9HYxbD1vHgfhtW5B8TkfLzdeN22nWVuKmRcu579 S80J6uoNxr5tsxMTMGQXseg77ssfsXDs9A5m//F2P4I9fayZ5esNQRvpU2fgumpOxkmCfr2n0fY fsCjn X-Gm-Gg: AZFdTZf3S1rGjT6vLLywBixORKGrzMsTkhZhNtiSTz7fGbcSWC/eLCwpgSZlkdPbrd4 aaC2rg2L+Kw+RPtyVHH6Y3R6ETYW1WW3L6EniXAjmtQqphK+E6OAJrtcPU35Uqu5qPsB5IMyf4j ImWzSWrxhNdQmYJUiBLwD9nJ3mywvBH2mGYjnHdeFLDeIPFVUhTldfJhJCdWoVxs+kifNEAvMgK Y8qRkM9KSDq1ww90vziJ++eDxcUo6kdkpLnc3HM8QPUWo+qHr65G/2inOTAoCVOB8gtSdqhSTgd lzud9LK5+JrVGiImT0qsVL6A0v3wlHRUGcXf+J2Y5uvNzuV4AFLU6G1D/MkuMVfX4ph5MpFTHnI JTtC+PgV0/4MlJIgR3vk0jqkJ+7SFNIkQF2lMqWdiZA92okZ6f9am/EmvrOwKRNb4c7Fuf8WcvM OYG0H7hOFUueL0EmEqLCXuCO46ZGBKtsZ3CrsWKkzH4QAVhBkpy/pSF9b7+g57aGiDh/atlU3G7 j/JRwjUdgXLPeTtEfrNSc6Uh/QuX6iB8ztElVY94tqNxYV95yhsIe6rHCgNiprLqlaq6Enl2woi 1kAo2NwyIOLIW7HvMzDSIrsIkxMgV6thqNmRIJVSs34FsBAb5bQAtZgmMmRmxnVMnhHjP5UflYZ AhXRKERUwLPhGnaO70te15nENX6O0r9FgWNUhy0nazWWSevJ5SZUo9wFTDMWfnSgeUw== X-Received: by 2002:a05:6214:124e:b0:921:1542:c8a6 with SMTP id 6a1803df08f44-92134b7875amr580602216d6.21.1795999964134; Sun, 29 Nov 2026 16:52:44 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:43 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 03/10] rust: add rust-analyzer to the SDK behind a PACKAGECONFIG Date: Sun, 29 Nov 2026 19:52:21 -0500 Message-ID: X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5590 From: Benhur Tessele Add a rust-analyzer PACKAGECONFIG option which, when enabled, installs it for the nativesdk variant and packages it as rust-tools-analyzer. The option is disabled by default. Two additional pieces are required for the tool to be usable: - The proc-macro server, rust-analyzer-proc-macro-srv, which rust-analyzer looks up under /libexec. Install it into ${libexecdir}; without it, analysis of any crate using a derive or attribute macro fails with "cannot find proc-macro server in sysroot". - The standard library sources, which rust-analyzer analyses from source rather than from the compiled rlibs. Add an RDEPENDS on ${PN}-src-lib so that core/std items resolve. Both binaries link against librustc_driver from the main package, so the package also RDEPENDS on ${PN}. rust-analyzer is only installed for nativesdk, as a language server is used on the SDK host rather than on a target device. To get it into an SDK: SDK_FEATURES:append = " rust" PACKAGECONFIG:append:pn-nativesdk-rust = " rust-analyzer" TOOLCHAIN_HOST_TASK:append = " nativesdk-rust-tools-analyzer" Tested by building an SDK with the option enabled and confirming rust-analyzer resolves the standard library and expands proc-macros, and by building with the option disabled to confirm the default configuration is unaffected. AI-Generated: Kiro with Claude Opus 5 Signed-off-by: Benhur Tessele Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (adapted from oe-core commit bfeb93bd978c1f03947a90b137bb9237807cc842) Signed-off-by: Scott Murray --- recipes-devtools/rust/rust_1.99.1.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/recipes-devtools/rust/rust_1.99.1.bb b/recipes-devtools/rust/rust_1.99.1.bb index 4fa6f1a..5933578 100644 --- a/recipes-devtools/rust/rust_1.99.1.bb +++ b/recipes-devtools/rust/rust_1.99.1.bb @@ -24,6 +24,8 @@ RDEPENDS:${PN}:append:class-target = " gcc g++ binutils" PACKAGECONFIG ??= "llvm-shared" PACKAGECONFIG[llvm-shared] = ",,," +# Only used by the nativesdk variant; rust-analyzer runs on the SDK host +PACKAGECONFIG[rust-analyzer] = ",,," S = "${RUSTSRC}" # Separate build directory from the shared source tree so that multiple @@ -282,17 +284,21 @@ do_test_compile () { ALLOW_EMPTY:${PN} = "1" PACKAGES =+ "${PN}-rustdoc ${PN}-tools-clippy ${PN}-tools-rustfmt ${PN}-src-lib" +PACKAGES:prepend:class-nativesdk = "${@bb.utils.contains('PACKAGECONFIG', 'rust-analyzer', '${PN}-tools-analyzer ', '', d)}" FILES:${PN}-rustdoc = "${bindir}/rustdoc" FILES:${PN}-tools-clippy = "${bindir}/cargo-clippy ${bindir}/clippy-driver" FILES:${PN}-tools-rustfmt = "${bindir}/rustfmt" +FILES:${PN}-tools-analyzer = "${bindir}/rust-analyzer ${libexecdir}/rust-analyzer-proc-macro-srv" FILES:${PN}-src-lib = "${libdir}/rustlib/src/rust" RDEPENDS:${PN}-rustdoc = "${PN}" RDEPENDS:${PN}-tools-clippy = "${PN}" RDEPENDS:${PN}-tools-rustfmt = "${PN}" +RDEPENDS:${PN}-tools-analyzer = "${PN} ${PN}-src-lib" SUMMARY:${PN}-tools-clippy = "A collection of lints to catch common mistakes and improve your Rust code" SUMMARY:${PN}-tools-rustfmt = "A tool for formatting Rust code according to style guidelines" +SUMMARY:${PN}-tools-analyzer = "A language server providing IDE features for Rust" do_install () { rust_do_install @@ -314,6 +320,10 @@ rust_do_install:class-nativesdk() { rust_runx install rust_runx install clippy rust_runx install rustfmt + if ${@bb.utils.contains('PACKAGECONFIG', 'rust-analyzer', 'true', 'false', d)}; then + rust_runx install rust-analyzer + rust_runx build rust-analyzer-proc-macro-srv + fi unset PSEUDO_UNLOAD install -d ${D}${bindir} @@ -322,6 +332,14 @@ rust_do_install:class-nativesdk() { patchelf --set-rpath "\$ORIGIN/../lib" ${D}${bindir}/$i done + if ${@bb.utils.contains('PACKAGECONFIG', 'rust-analyzer', 'true', 'false', d)}; then + install -d ${D}${libexecdir} + cp rust-build/${RUST_BUILD_SYS}/stage2-tools/${RUST_HOST_SYS}/release/rust-analyzer ${D}${bindir} + patchelf --set-rpath "\$ORIGIN/../lib" ${D}${bindir}/rust-analyzer + cp rust-build/${RUST_BUILD_SYS}/stage2-tools/${RUST_HOST_SYS}/release/rust-analyzer-proc-macro-srv ${D}${libexecdir} + patchelf --set-rpath "\$ORIGIN/../lib" ${D}${libexecdir}/rust-analyzer-proc-macro-srv + fi + chown root:root ${D}/ -R rm ${D}${libdir}/rustlib/uninstall.sh rm ${D}${libdir}/rustlib/install.log From patchwork Mon Nov 30 00:52:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106328 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.23418.1795999966924712023 for ; Sun, 29 Nov 2026 16:52:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=SEmaUjGg; spf=pass (domain: konsulko.com, ip: 209.85.160.169, mailfrom: scott.murray@konsulko.com) Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-55b8cd4e2abso102238651cf.1 for ; Sun, 29 Nov 2026 16:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999966; x=1796604766; 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:content-type; bh=dp/J44xua5fayAc5+/BvPkMidQ+Ol+d7mGIRpnlHSQg=; b=SEmaUjGgV4VDAex0ziNiYwiwPC38zrDy2sflJqvA6r9V86HC/jlhYRygIdYnzxEe+j s1PhmXIdBsDnWmKkpfBydmC8eG1BLh45LfBGu1Yx78ejNjnzLzYdCgogJ7z9ZinLFyNj W3aI2WXFMyIicG29CNdEuV29i2DUAc+c/XLBU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999966; x=1796604766; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=dp/J44xua5fayAc5+/BvPkMidQ+Ol+d7mGIRpnlHSQg=; b=gN3L4N1bECdKxwZWJEVm7GUlJ3IV5MXN6YlJpv+UjqTyX+WVjeK8i6MioMASuzGrMG P7R41ACa35+BVx6Khd/7TKqVmEEWZqEcUU07J9E+zgB7cQg2esjW+UQ5y0OSAlmjr98H kLvDkTpr/ouP81JSbJLUS0/gNadeRwGS4cgGv9JipmIPInBLNzS2BNBiXEjr4N/WeisD GoWNjYbtmki/S05bdE3LLKh6/KZuaxh1/r5twPjQA7S6yd+4ci2hEpFkpXzTkR99+g5W 34K9qH4d8I4umHwB9mscFDpqhYS3O/fwuoZaiqjRXydp8ypBny50gs+W9ViM403lzlUj 2ajw== X-Gm-Message-State: APuU4Z9wgph8QqOq1bsMnWPP3/P6ewY5PDbUUuHEabAioRv088H0ow7m mNXUVXxlq2sf4qsDnz/Bt2q4naVD6QkEpM5Xd3H0ewozsz62v+PIJWghdGhlvyIsziIjL7MSuYW vTKR6 X-Gm-Gg: AZFdTZc9cSXhKQwmhpriszmckH1stRLMpoF5xIFbizmZEbv94Mncvydl7dJAJgi1n/B FkXhMqpileesWsJ6ueww9pjmei2TswnfkdXqnCB9bL1nqSWajck136RBb9iV3As2kiEXVbagHro FjR++kam7hiOEzUDTTSEUUBkcrG4A+lHsJszEX577lcuqzra4gKsAczbNALoM+68WZatuoq9nvB HE3GX5sbuKlbg8gEGKYNi/KCAXlxnxawt0hWmwH6xxRntCNyFAJX3/TQNkNcLXo//mDjrlCMoy3 /ouAR6HAF6MxCefzsfMMF6+JoZ2kchdSfVow2RXmqrPAbm3ZHA93Tz3acChIOcM4VOvmRuMEzMN MZowh6CfiuMEX9TViD0xUllLQgMzqLCUzIgWPt8NKpb1aFOp7QKgYtWd/QY+IXBQ+rtk9yBajOX 65dtWZqzhBR2D06pHyFXADlHPGGswoTa6v5CqJrh9y8RhOWjsAdbvQHqrYkzBo23S5wUmRzfdo3 zW31t5ineiRL/ID7ThpwZg0pSNW8nejdx00fmcZrU+XbGEDnR2uWeqToBPWEG5mIkpYw4o9m8So dgDao5esnT0S/pMPHFqEbWeouIwVUnMI8LKMkL47Z/hbwJwkZBPg3vUXYl9kpwFGao+tp4ivPdB B0oZVGoTQ5hW8kvuK4+R3plWgJdh3gxkH/AthxaLWI06IEfD2hv1TfxH6kgCRN0vdGg== X-Received: by 2002:a05:622a:5512:b0:535:1d90:ebcd with SMTP id d75a77b69052e-55d76a6f9ecmr643336481cf.27.1795999965024; Sun, 29 Nov 2026 16:52:45 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:44 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 04/10] rust: Upgrade 1.99.1 -> 1.100.0 Date: Sun, 29 Nov 2026 19:52:22 -0500 Message-ID: <4c05db31f766436b201ff3085487fd51ed3c1e82.1795997683.git.scott.murray@konsulko.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5591 From: Hemanth Kumar M D Rust Changes: https://github.com/rust-lang/rust/releases/tag/1.100.0 Cargo Changes: https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html Update local patches: 0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch cc-hash-object-names-relative-to-source-roots.patch Drop merged patches: 0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch 0005-rustc-span-make-hygiene-encoding-order-deterministic.patch Backport 0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch to fix do_install with the new cargo lints [1]. libstd-rs: cargo now uses a new directory layout [2]. Each crate's artifacts are in build///out/ and deps/ is no longer created, so update do_install to copy the libraries from there. oe-selftest: exclude only the baseline revision of tests/ui/asm/arm-high-dregs.rs. It expects an error for the d16 register on an armv7 target without neon. OE's default configuration for qemuarm (tune-cortexa15.inc, DEFAULTTUNE cortexa15thf-neon) enables neon, so the expected error is not emitted [3]. Excluded tests: +---------+---------+---------+ | Before | After | Skipped | +---------+---------+---------+ | 44 | 45 | +1 | +---------+---------+---------+ [1] https://github.com/rust-lang/cargo/pull/17298 [2] https://github.com/rust-lang/cargo/pull/17354 [3] https://github.com/rust-lang/rust/blob/1.100.0/tests/ui/asm/arm-high-dregs.rs Test results: rust v1.100.0 (from autobuilder) +-------------+---------+---------+ | Machine | Passed | Skipped | +-------------+---------+---------+ | qemux86-64 | 24201 | 1083 | | qemux86 | 23934 | 1352 | | qemuarm | 23914 | 1371 | | qemuarm64 | 24028 | 1258 | | qemuriscv64 | 23969 | 1315 | +-------------+---------+---------+ Test results difference (1.100.0 - 1.99.1): +-------------+--------+---------+ | Machine | Passed | Skipped | +-------------+--------+---------+ | qemux86-64 | +510 | +61 | | qemux86 | +506 | +67 | | qemuarm | +506 | +66 | | qemuarm64 | +506 | +67 | | qemuriscv64 | +505 | +66 | +-------------+--------+---------+ Signed-off-by: Hemanth Kumar M D Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (adapted from oe-core commit fae96382d70aeb58de3a668edd53368693ef609c) Signed-off-by: Scott Murray --- conf/layer.conf | 4 +- lib/oeqa/selftest/cases/rust_mixin.py | 1 + .../{cargo_1.99.1.bb => cargo_1.100.0.bb} | 0 ...teps-tool.rs-switch-off-lto-for-rust.patch | 27 +- ...ip-StdarchVerify-when-remote-testing.patch | 30 -- ...host-triple-from-unit-metadata-hash.patch} | 0 ...ess-tests-adjust-for-new-Cargo-lints.patch | 287 ++++++++++++++++++ ...hygiene-encoding-order-deterministic.patch | 59 ---- ...bject-names-relative-to-source-roots.patch | 40 ++- ...bstd-rs_1.99.1.bb => libstd-rs_1.100.0.bb} | 10 +- ...99.1.bb => rust-cross-canadian_1.100.0.bb} | 0 recipes-devtools/rust/rust-snapshot.inc | 104 +++---- recipes-devtools/rust/rust-source.inc | 7 +- ...ource_1.99.1.bb => rust-source_1.100.0.bb} | 0 .../rust/{rust_1.99.1.bb => rust_1.100.0.bb} | 0 15 files changed, 385 insertions(+), 184 deletions(-) rename recipes-devtools/rust/{cargo_1.99.1.bb => cargo_1.100.0.bb} (100%) delete mode 100644 recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch rename recipes-devtools/rust/files/{0004-cargo-omit-host-triple-from-unit-metadata-hash.patch => 0003-cargo-omit-host-triple-from-unit-metadata-hash.patch} (100%) create mode 100644 recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch delete mode 100644 recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch rename recipes-devtools/rust/{libstd-rs_1.99.1.bb => libstd-rs_1.100.0.bb} (77%) rename recipes-devtools/rust/{rust-cross-canadian_1.99.1.bb => rust-cross-canadian_1.100.0.bb} (100%) rename recipes-devtools/rust/{rust-source_1.99.1.bb => rust-source_1.100.0.bb} (100%) rename recipes-devtools/rust/{rust_1.99.1.bb => rust_1.100.0.bb} (100%) diff --git a/conf/layer.conf b/conf/layer.conf index b563428..0a00792 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -13,8 +13,8 @@ LAYERSERIES_COMPAT_wrynose-rust-mixin = "wrynose" LAYERDEPENDS_wrynose-rust-mixin = "core" -RUSTVERSION ?= "1.99.1%" +RUSTVERSION ?= "1.100.0%" # For lack of a better place to put this since it needs to be visible # globally, carry it here. -RECIPE_MAINTAINER:pn-rust-source-1.99.1 = "Deepesh Varatharajan " +RECIPE_MAINTAINER:pn-rust-source-1.100.0 = "Deepesh Varatharajan " diff --git a/lib/oeqa/selftest/cases/rust_mixin.py b/lib/oeqa/selftest/cases/rust_mixin.py index 645b5d5..03af983 100644 --- a/lib/oeqa/selftest/cases/rust_mixin.py +++ b/lib/oeqa/selftest/cases/rust_mixin.py @@ -93,6 +93,7 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase): 'tests/rustdoc-js-std', 'tests/ui/abi/stack-probes-lto.rs', 'tests/ui/abi/stack-probes.rs', + 'tests/ui/asm/arm-high-dregs.rs#baseline', 'tests/ui/codegen/huge-stacks.rs', 'tests/ui/codegen/mismatched-data-layouts.rs', 'tests/codegen-llvm/rust-abi-arch-specific-adjustment.rs', diff --git a/recipes-devtools/rust/cargo_1.99.1.bb b/recipes-devtools/rust/cargo_1.100.0.bb similarity index 100% rename from recipes-devtools/rust/cargo_1.99.1.bb rename to recipes-devtools/rust/cargo_1.100.0.bb diff --git a/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch b/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch index 0bd32ec..7482c2a 100644 --- a/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch +++ b/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch @@ -18,17 +18,21 @@ Upstream-Status: Inappropriate [reported at https://github.com/rust-lang/rust/is Signed-off-by: Alexander Kanavin Signed-off-by: Deepesh Varatharajan --- - src/bootstrap/src/core/build_steps/tool.rs | 19 +++---------------- + src/bootstrap/src/core/build_steps/tool.rs | 22 ++++------------------ src/bootstrap/src/core/builder/mod.rs | 2 +- - 2 files changed, 4 insertions(+), 17 deletions(-) + 2 files changed, 5 insertions(+), 19 deletions(-) +diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs +index c4fae69..7c4e230 100644 --- a/src/bootstrap/src/core/build_steps/tool.rs +++ b/src/bootstrap/src/core/build_steps/tool.rs -@@ -13,14 +13,13 @@ +@@ -13,16 +13,16 @@ use std::ffi::OsStr; use std::path::{Path, PathBuf}; use std::{env, fs}; --use crate::core::build_steps::compile::is_lto_stage; +-use crate::core::build_steps::compile::{CargoMessage, is_lto_stage}; ++use crate::core::build_steps::compile::CargoMessage; + use crate::core::build_steps::dist::LLD_FILE_NAMES; use crate::core::build_steps::toolstate::ToolState; use crate::core::build_steps::{compile, llvm}; use crate::core::builder::{ @@ -36,12 +40,13 @@ Signed-off-by: Deepesh Varatharajan - StepMetadata, apply_pgo, cargo_profile_var, + StepMetadata, apply_pgo, }; + use crate::core::compiler::Compiler; -use crate::core::config::{Allocator, DebuginfoLevel, RustcLto, TargetSelection}; +use crate::core::config::{Allocator, DebuginfoLevel, TargetSelection}; + use crate::core::session::{FileType, Mode}; use crate::utils::exec::{BootstrapCommand, command}; use crate::utils::helpers::{self, add_dylib_path, exe, t}; - use crate::{Compiler, FileType, Mode}; -@@ -117,21 +116,7 @@ +@@ -121,21 +121,7 @@ impl Step for ToolBuild { cargo.env("RUSTC_WRAPPER", ccache); } @@ -64,14 +69,16 @@ Signed-off-by: Deepesh Varatharajan let pgo_config = match self.path { "src/tools/rustdoc" => Some(&builder.config.rustdoc_pgo), +diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs +index c221a97..4af0fda 100644 --- a/src/bootstrap/src/core/builder/mod.rs +++ b/src/bootstrap/src/core/builder/mod.rs -@@ -13,7 +13,7 @@ +@@ -13,7 +13,7 @@ use clap::ValueEnum; #[cfg(feature = "tracing")] use tracing::instrument; --pub use self::cargo::{Cargo, apply_pgo, cargo_profile_var}; -+pub use self::cargo::{Cargo, apply_pgo}; - pub use crate::Compiler; +-pub(crate) use self::cargo::{Cargo, apply_pgo, cargo_profile_var}; ++pub(crate) use self::cargo::{Cargo, apply_pgo}; use crate::core::build_steps::compile::{Std, StdLink, looks_like_codegen_backend}; + use crate::core::build_steps::llvm::{LlvmKind, get_llvm_build_status}; use crate::core::build_steps::tool::RustcPrivateCompilers; diff --git a/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch b/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch deleted file mode 100644 index a57765f..0000000 --- a/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch +++ /dev/null @@ -1,30 +0,0 @@ -From ca4541f4241f48f8344bc8b8dd7fcbb476ea6900 Mon Sep 17 00:00:00 2001 -From: Deepesh Varatharajan -Date: Wed, 26 Aug 2026 03:49:52 -0700 -Subject: [PATCH] bootstrap: skip StdarchVerify when remote testing is enabled - -When TEST_DEVICE_ADDR is set for cross-testing, the StdarchVerify step -incorrectly attempts to run on the remote target. Since stdarch-verify -is a host-only verification tool, skip it when remote testing is enabled. - -Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/ca4541f4241f48f8344bc8b8dd7fcbb476ea6900] -Signed-off-by: Deepesh Varatharajan - -diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs -index a2d05f8..3753aec 100644 ---- a/src/bootstrap/src/core/build_steps/test.rs -+++ b/src/bootstrap/src/core/build_steps/test.rs -@@ -962,7 +962,12 @@ impl Step for StdarchVerify { - } - - fn make_run(run: RunConfig<'_>) { -- run.builder.ensure(StdarchVerify); -+ let builder = run.builder; -+ if builder.remote_tested(run.target) { -+ builder.info("remote testing is not supported by stdarch-verify. skipping"); -+ return; -+ } -+ builder.ensure(StdarchVerify); - } - - fn run(self, builder: &Builder<'_>) { diff --git a/recipes-devtools/rust/files/0004-cargo-omit-host-triple-from-unit-metadata-hash.patch b/recipes-devtools/rust/files/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch similarity index 100% rename from recipes-devtools/rust/files/0004-cargo-omit-host-triple-from-unit-metadata-hash.patch rename to recipes-devtools/rust/files/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch diff --git a/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch b/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch new file mode 100644 index 0000000..6580b53 --- /dev/null +++ b/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch @@ -0,0 +1,287 @@ +From daa24324904fa6aa460a22de733068c8dcb0323d Mon Sep 17 00:00:00 2001 +From: Mark Rousskov +Date: Tue, 29 Sep 2026 08:13:20 -0400 +Subject: [PATCH] Re-bless tests / adjust for new Cargo lints + +Cargo 1.100 added its own lints (rust-lang/cargo#17298) and rustc no +longer emits unused_crate_dependencies under cargo. The target and +nativesdk rust are built with cargo-native 1.100, so do_install fails on +the unfulfilled expect in rustc-main and on unused dependencies in +library/sysroot, as warnings are denied. + +rust-native is still built with the 1.99 snapshot, so keep the attribute +in compiler/rustc/src/main.rs as allow instead of dropping it. + +Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/daa24324904fa6aa460a22de733068c8dcb0323d] +Signed-off-by: Hemanth Kumar M D +--- + compiler/rustc/src/main.rs | 2 +- + library/alloc/Cargo.toml | 4 ++++ + library/panic_unwind/Cargo.toml | 3 +++ + library/std/Cargo.toml | 4 ++++ + library/std_detect/Cargo.toml | 4 ++++ + library/sysroot/Cargo.toml | 5 +++++ + src/tools/clippy/clippy_test_deps/Cargo.toml | 4 ++++ + src/tools/miri/tests/deps/Cargo.toml | 4 ++++ + src/tools/miri/tests/deps/cross-crate-items/Cargo.toml | 4 ++++ + src/tools/rust-analyzer/Cargo.toml | 5 +++-- + src/tools/rust-analyzer/crates/macros/Cargo.toml | 3 +++ + .../crates/proc-macro-srv/proc-macro-test/Cargo.toml | 3 +++ + .../rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml | 3 +++ + tests/ui/array-slice-vec/vec-res-add.stderr | 1 - + ...st_equality_comparison_instead_of_pattern_matching.stderr | 4 ---- + tests/ui/pattern/deref-patterns/implicit-const-deref.stderr | 1 - + tests/ui/pattern/issue-115599.stderr | 1 - + tests/ui/pattern/pattern-tyvar-2.stderr | 1 - + 18 files changed, 45 insertions(+), 11 deletions(-) + +diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs +--- a/compiler/rustc/src/main.rs ++++ b/compiler/rustc/src/main.rs +@@ -1,7 +1,7 @@ + // We need this feature as it changes `dylib` linking behavior and allows us to link to `rustc_driver`. + #![feature(rustc_private)] + // Several crates are depended upon but unused so that they are present in the sysroot +-#![expect(unused_crate_dependencies)] ++#![allow(unused_crate_dependencies)] + + #[allow(unused_imports)] + use std::process::ExitCode; +diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml +index b32e5e991cc74..a1071d2cde5f0 100644 +--- a/library/alloc/Cargo.toml ++++ b/library/alloc/Cargo.toml +@@ -31,3 +31,7 @@ check-cfg = [ + 'cfg(no_rc)', + 'cfg(no_sync)', + ] ++ ++[lints.cargo] ++# compiler-builtins is claimed unused? ++unused_dependencies = "allow" +diff --git a/library/panic_unwind/Cargo.toml b/library/panic_unwind/Cargo.toml +index 72c1041b46795..3b7805a205492 100644 +--- a/library/panic_unwind/Cargo.toml ++++ b/library/panic_unwind/Cargo.toml +@@ -18,3 +18,6 @@ unwind = { path = "../unwind" } + + [target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies] + libc = { version = "0.2", default-features = false } ++ ++[lints.cargo] ++unused_dependencies = "allow" +diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml +index 1d35b42a53947..67eebd820ca59 100644 +--- a/library/std/Cargo.toml ++++ b/library/std/Cargo.toml +@@ -167,3 +167,7 @@ check-cfg = [ + 'cfg(target_has_reliable_f128)', + 'cfg(target_has_reliable_f128_math)', + ] ++ ++[lints.cargo] ++# panic_abort is not directly used but must be linked in ++unused_dependencies = "allow" +diff --git a/library/std_detect/Cargo.toml b/library/std_detect/Cargo.toml +index a6785bb20555d..c03fff827d5cd 100644 +--- a/library/std_detect/Cargo.toml ++++ b/library/std_detect/Cargo.toml +@@ -24,3 +24,7 @@ libc = { version = "0.2.0", default-features = false } + + [features] + std_detect_env_override = [] ++ ++[lints.cargo] ++# libc is definitely used in code but the lint doesn't realize that (unclear why) ++unused_dependencies = "allow" +diff --git a/library/sysroot/Cargo.toml b/library/sysroot/Cargo.toml +index 10562389d62d3..cef5532857b5e 100644 +--- a/library/sysroot/Cargo.toml ++++ b/library/sysroot/Cargo.toml +@@ -32,3 +32,8 @@ optimize_for_size = ["std/optimize_for_size"] + panic-unwind = ["std/panic-unwind"] + profiler = ["dep:profiler_builtins"] + windows_raw_dylib = ["std/windows_raw_dylib"] ++ ++[lints.cargo] ++# We expect some of these dependencies to not actually be used since this is ++# just an aggregator crate. ++unused_dependencies = "allow" +diff --git a/src/tools/clippy/clippy_test_deps/Cargo.toml b/src/tools/clippy/clippy_test_deps/Cargo.toml +index 880df6599c1e4..c3d236a17e1bb 100644 +--- a/src/tools/clippy/clippy_test_deps/Cargo.toml ++++ b/src/tools/clippy/clippy_test_deps/Cargo.toml +@@ -18,3 +18,7 @@ itertools = "0.15" + + # Make sure we are not part of the rustc workspace. + [workspace] ++ ++[lints.cargo] ++# Not all tests use all of the above dependencies ++unused_dependencies = "allow" +diff --git a/src/tools/miri/tests/deps/Cargo.toml b/src/tools/miri/tests/deps/Cargo.toml +index a377141f98aaf..6b6d4a9e2f443 100644 +--- a/src/tools/miri/tests/deps/Cargo.toml ++++ b/src/tools/miri/tests/deps/Cargo.toml +@@ -37,3 +37,7 @@ windows-sys = { version = "0.61", features = [ + # Make sure we are not part of the rustc workspace. + [workspace] + members = ["cross-crate-items"] ++ ++[lints.cargo] ++# Not all tests use all of the above dependencies ++unused_dependencies = "allow" +diff --git a/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml b/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml +index 1f9fc93cd5237..ca6818dc0fe25 100644 +--- a/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml ++++ b/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml +@@ -5,3 +5,7 @@ edition = "2021" + + [dependencies] + futures = { version = "0.3.0", default-features = false, features = ["alloc", "async-await"] } ++ ++[lints.cargo] ++# panic_abort is not directly used but must be linked in ++unused_dependencies = "allow" +diff --git a/src/tools/rust-analyzer/Cargo.toml b/src/tools/rust-analyzer/Cargo.toml +index d77e89df45e44..54e82148665b6 100644 +--- a/src/tools/rust-analyzer/Cargo.toml ++++ b/src/tools/rust-analyzer/Cargo.toml +@@ -68,10 +68,8 @@ parser = { path = "./crates/parser", version = "0.0.0" } + paths = { path = "./crates/paths", version = "0.0.0" } + proc-macro-api = { path = "./crates/proc-macro-api", version = "0.0.0" } + proc-macro-srv = { path = "./crates/proc-macro-srv", version = "0.0.0" } +-proc-macro-srv-cli = { path = "./crates/proc-macro-srv-cli", version = "0.0.0" } + profile = { path = "./crates/profile", version = "0.0.0" } + project-model = { path = "./crates/project-model", version = "0.0.0" } +-query-group = { package = "query-group-macro", path = "./crates/query-group-macro", version = "0.0.0" } + span = { path = "./crates/span", version = "0.0.0" } + stdx = { path = "./crates/stdx", version = "0.0.0" } + syntax = { path = "./crates/syntax", version = "0.0.0" } +@@ -167,6 +165,9 @@ hashbrown = { version = "0.17.0", features = [ + # We need to freeze the version of the crate, as the raw-api feature is considered unstable + dashmap = { version = "=6.2.1", features = ["raw-api", "inline"] } + ++[workspace.lints.cargo] ++unused_dependencies = "allow" ++ + [workspace.lints.rust] + # remember to update RUSTFLAGS in ci.yml if you add something here + +diff --git a/src/tools/rust-analyzer/crates/macros/Cargo.toml b/src/tools/rust-analyzer/crates/macros/Cargo.toml +index 8184cc6d1c03d..b0d0000268588 100644 +--- a/src/tools/rust-analyzer/crates/macros/Cargo.toml ++++ b/src/tools/rust-analyzer/crates/macros/Cargo.toml +@@ -17,3 +17,6 @@ proc-macro2 = "1" + quote = "1" + syn = "2.0.9" + synstructure = "0.13.0" ++ ++[lints] ++workspace = true +diff --git a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml +index 78630ddb4d7d8..668188340e5c8 100644 +--- a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml ++++ b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml +@@ -11,3 +11,6 @@ doctest = false + + [build-dependencies] + cargo_metadata = "0.23.0" ++ ++[lints] ++workspace = true +diff --git a/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml b/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml +index 0fa08bbbd0485..f17587e3f556c 100644 +--- a/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml ++++ b/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml +@@ -10,3 +10,6 @@ edition = "2024" + [dependencies] + write-json = "0.1.1" + ungrammar = { path = "../", version = "1.1.0" } ++ ++[lints] ++workspace = true +diff --git a/tests/ui/array-slice-vec/vec-res-add.stderr b/tests/ui/array-slice-vec/vec-res-add.stderr +index 6d5ad1d3c9694..4e13dbd0366d0 100644 +--- a/tests/ui/array-slice-vec/vec-res-add.stderr ++++ b/tests/ui/array-slice-vec/vec-res-add.stderr +@@ -8,7 +8,6 @@ LL | let k = i + j; + | + note: `Vec` does not implement `Add` + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec` is defined in another crate + +diff --git a/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr b/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr +index ab823c8fc73b9..38440af675feb 100644 +--- a/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr ++++ b/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr +@@ -123,7 +123,6 @@ LL | V => {} + | ^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +@@ -144,7 +143,6 @@ LL | if let V = vec![] {} + | ^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +@@ -160,7 +158,6 @@ LL | let V = vec![] else { return; }; + | ^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +@@ -176,7 +173,6 @@ LL | let V = Vec::new() else { return; }; + | ^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +diff --git a/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr b/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr +index c03137fcc4151..7c176162ad184 100644 +--- a/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr ++++ b/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr +@@ -8,7 +8,6 @@ LL | EMPTY => {} + | ^^^^^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec<()>` is not usable in patterns + | +diff --git a/tests/ui/pattern/issue-115599.stderr b/tests/ui/pattern/issue-115599.stderr +index 280516deba14b..f776623ff75b2 100644 +--- a/tests/ui/pattern/issue-115599.stderr ++++ b/tests/ui/pattern/issue-115599.stderr +@@ -8,7 +8,6 @@ LL | if let CONST_STRING = empty_str {} + | ^^^^^^^^^^^^ constant of non-structural type + | + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec` is not usable in patterns + | +diff --git a/tests/ui/pattern/pattern-tyvar-2.stderr b/tests/ui/pattern/pattern-tyvar-2.stderr +index 4761a4e829b85..6676d5129872b 100644 +--- a/tests/ui/pattern/pattern-tyvar-2.stderr ++++ b/tests/ui/pattern/pattern-tyvar-2.stderr +@@ -8,7 +8,6 @@ LL | fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; + | + note: `Vec` does not implement `Mul<{integer}>` + --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL +- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL + | + = note: `Vec` is defined in another crate + diff --git a/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch b/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch deleted file mode 100644 index 47a713f..0000000 --- a/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch +++ /dev/null @@ -1,59 +0,0 @@ -From 9c190d14f93bf27c7f1c94d400cda6f48f285a34 Mon Sep 17 00:00:00 2001 -From: Alejandro Enedino Hernandez Samaniego -Date: Tue, 15 Sep 2026 17:05:36 +0530 -Subject: [PATCH] rust: sort syntax contexts and expansions before encoding - -HygieneEncodeContext encodes the pending syntax contexts and expansions in -hash-map order, so the encoded rmeta depends on the build host. Sort both -before encoding. Upstream has fixed the same problem with a different -approach in https://github.com/rust-lang/rust/pull/161450, merged after -rust 1.99 branched, so this stays a local fix rather than a backport -until a rust upgrade contains it. - -Patch by Alejandro Enedino Hernandez Samaniego, from his strict-version-hash -v5 series for openembedded-core: -https://lists.openembedded.org/g/openembedded-core/topic/120939810 - -Upstream-Status: Inappropriate [OE-specific] - -Signed-off-by: Alejandro Enedino Hernandez Samaniego -Signed-off-by: Sunil Dora ---- - compiler/rustc_span/src/hygiene.rs | 10 ++++++---- - 1 file changed, 6 insertions(+), 4 deletions(-) - -diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs -index 1c74205..a464eca 100644 ---- a/compiler/rustc_span/src/hygiene.rs -+++ b/compiler/rustc_span/src/hygiene.rs -@@ -1313,12 +1313,12 @@ impl HygieneEncodeContext { - - // Consume the current round of syntax contexts. - // Drop the lock() temporary early. -- // It's fine to iterate over a HashMap, because the serialization of the table -- // that we insert data into doesn't depend on insertion order. - #[allow(rustc::potential_query_instability)] -- let latest_ctxts = { mem::take(&mut *self.latest_ctxts.lock()) }.into_iter(); -+ let mut latest_ctxts: Vec<_> = { mem::take(&mut *self.latest_ctxts.lock()) }.into_iter().collect(); -+ latest_ctxts.sort_by_key(|ctxt| ctxt.0); - let all_ctxt_data: Vec<_> = HygieneData::with(|data| { - latest_ctxts -+ .into_iter() - .map(|ctxt| (ctxt, data.syntax_context_data[ctxt.0 as usize].key())) - .collect() - }); -@@ -1330,9 +1330,11 @@ impl HygieneEncodeContext { - - // Same as above, but for expansions instead of syntax contexts. - #[allow(rustc::potential_query_instability)] -- let latest_expns = { mem::take(&mut *self.latest_expns.lock()) }.into_iter(); -+ let mut latest_expns: Vec<_> = { mem::take(&mut *self.latest_expns.lock()) }.into_iter().collect(); -+ latest_expns.sort_by_key(|expn| (expn.krate, expn.local_id)); - let all_expn_data: Vec<_> = HygieneData::with(|data| { - latest_expns -+ .into_iter() - .map(|expn| (expn, data.expn_data(expn).clone(), data.expn_hash(expn))) - .collect() - }); --- -2.43.0 diff --git a/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch b/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch index c128bd7..e0218bf 100644 --- a/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch +++ b/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch @@ -15,7 +15,7 @@ CARGO_MANIFEST_DIR as upstream already did. The OUT_DIR part is generic and is merged upstream as rust-lang/cc-rs commit fe27e7b6262, in a slightly different shape: the upstream tree -moved on from the cc 1.2.0 that rust vendors, so the change here keeps +moved on from the cc 1.4.3 that rust vendors, so the change here keeps the form that fits these sources. RUST_COMPILER_RT_ROOT is set by rust's own build system, so that part stays local to this patch. @@ -23,38 +23,34 @@ Upstream-Status: Backport [https://github.com/rust-lang/cc-rs/commit/fe27e7b6262 Signed-off-by: Sunil Dora --- - vendor/cc-1.2.0/.cargo-checksum.json | 2 +- - vendor/cc-1.2.0/src/command_helpers.rs | 18 +++++++++++++++--- + vendor/cc-1.4.3/.cargo-checksum.json | 2 +- + vendor/cc-1.4.3/src/command_helpers.rs | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) -diff --git a/vendor/cc-1.2.0/.cargo-checksum.json b/vendor/cc-1.2.0/.cargo-checksum.json -index 470ecbb..2ff8a08 100644 ---- a/vendor/cc-1.2.0/.cargo-checksum.json -+++ b/vendor/cc-1.2.0/.cargo-checksum.json +diff --git a/vendor/cc-1.4.3/.cargo-checksum.json b/vendor/cc-1.4.3/.cargo-checksum.json +index cc4144e..a8ab1fc 100644 +--- a/vendor/cc-1.4.3/.cargo-checksum.json ++++ b/vendor/cc-1.4.3/.cargo-checksum.json @@ -1 +1 @@ --{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"d6e26674a9d7de87dab83262a14f2377988a1e087e4b514f3983f8dd141ea813","CHANGELOG.md":"fb0a3bcb34301d2578bef86feabe93057068cb1906a7f10b584f58ff6123e8c6","Cargo.lock":"b661254fadca74408d53742755b371f7ae29e501e851aeae13bcd14a51883321","Cargo.toml":"50debe1b2fc050e8b305bdd514509d98cdbc59e96e5f10888df4b6fca19d3a75","Cargo.toml.orig":"0aff9dc74ddbe3bfe89ad9698212a6a18d6124b9593780aad25e277d28e9a71f","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"f1ddbede208a5b78333a25dac0a7598e678e9b601a7d99a791069bddaf180dfe","clippy.toml":"aa7850db4350883c8f373bd0d6b4d19bf3b75f13c1c238e24368c109cb52fb1d","src/command_helpers.rs":"b766a70e39b8ea7bb57afd288bcac205a23f6a26ac5619cb1d5b10f70c5dfdea","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/lib.rs":"221ba9475100303b5c694b2a02e5353452ee08a29e4e4d4d67ea8fcbd87605df","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/job_token.rs":"018a01cb00182270bbcb68e31e7a7c5c621a95f086e4c68cfa2bf557ac24e5f2","src/parallel/mod.rs":"bd9c1334d17d138c281961c690b8d8118a2d6295a7d6cd7296826255436fa063","src/parallel/stderr.rs":"74384d41198740a6fce0877f144262db09fb091225fa8fbfa771314bb11487c6","src/target.rs":"7313240db078ad85c1209a42a5fa96c3692b5d6e5093c7f366a1b99677247109","src/target/apple.rs":"6afbecac9f66aa72db55694413532f80b2753f28466a6213d1aa901a03c78bcd","src/target/generated.rs":"af067e1c291e895ddb591f92534eed0c48977cdb2b58f8239423e07c6de31cd3","src/target/llvm.rs":"e1db4a7fb8b905ee9853781f2fcc64a9d3b48154e4c8b6cb12f5373c5935da6e","src/target/parser.rs":"4f2129a24273d62bf8ab339098e7f758e4e42b0df369dd2b0eb1b20726be91f8","src/tempfile.rs":"ebafb5b0e5d08b0706916ed911d4245240e60c3e2d0c9a1630c520842988a2b3","src/tool.rs":"2e6550062e021f2b394388172bbb01e86fe6a94d2395bcb3c85a9e86690da1a9","src/utilities.rs":"52b30b24a1c31cdefb105309ee5220cfc9fca76eaf4e6d6509c3e19f431448fe","src/windows/com.rs":"a2800ddb81215fff2bf618336f5c4ff8e8bdb746dd18b795873c7304b3f2a5e3","src/windows/find_tools.rs":"0ff410bd71f08ee88e99609c15be5f1bc16ad7bd07a83918d13a70c8465642e2","src/windows/mod.rs":"34cfa201cfbcac7ccaa3ea5295d3e4200439af3cc5c6433baf81502596040a89","src/windows/registry.rs":"c521b72c825e8095843e73482ffa810ed066ad8bb9f86e6db0c5c143c171aba1","src/windows/setup_config.rs":"754439cbab492afd44c9755abcbec1a41c9b2c358131cee2df13c0e996dbbec8","src/windows/vs_instances.rs":"946527cf8fd32c3472f6a2884dcdec290763101097334c7478f9c24c3950db6b","src/windows/winapi.rs":"250d51c1826d1a2329e9889dd9f058cfce253dbf2a678b076147c6cdb5db046c","src/windows/windows_sys.rs":"e2714c8307bfa083b9745eb0e46cadd7f98d7b88abf45a7637172019324e34b8","src/windows/windows_targets.rs":"5b4648ebc22b028caca9f4b4bf8881fe2d094b7bec217264ba2e6e2c49d1ccee"},"package":"1aeb932158bd710538c73702db6945cb68a8fb08c519e6e12706b94263b36db8"} +-{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"067dd1727a66bb81a833e7ff9ed732d0a26c4dfb6f78600884cf20cc766b379e",".tombi.toml":"93f57361f60b03b6c14ede301446e5e2658abaa98cac39a4a96be0966b6b851a","CHANGELOG.md":"7e2c9bec874d564ceeedfa88587ab86f45d8a3d3df4a6f6ef19ad3db3997d74e","Cargo.lock":"f309ad15b2b17d7ff090e11005112ad2ed04495da92d8d11f758adb69c87d273","Cargo.toml":"c424f930665aa062f43c448c2837c98f9aad434a95cce4400605b0f2af7c820e","Cargo.toml.orig":"d1fc79a63899b64a816fe5595b403c27ade4612ea58c0e88556c05d307b431f0","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"cc952a506dc726eed3e128d47d62defbac4470bbb0e465f6a043ae8bf0c96d19","clippy.toml":"cf46251b0953d1a3c7a4f8f8941a08d8a416d5fc348dfe3f3c520eb93fcc18ea","src/command_helpers.rs":"650c9682edc3d7732249e327c1026c7cc733f3702f4867b9580223e97522d3c6","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/flags.rs":"1a80855f51db6808cdcb5c0e6bd1c0973e86463014082ef7ed1d0fbe7b89cf93","src/lib.rs":"61391623eed3591d6d06977867b7a772348daa1385c1fefd8e82ab8e9adbc71b","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/command_runner.rs":"1d17d9a037de93b31cc7ee6a914a1e1f6c1ac156cf8619f0014dcbaca6a0b215","src/parallel/job_token.rs":"1aa1ecc639e09845eea0f1e11a76c39ad2604eaac3268059652f56add8890089","src/parallel/mod.rs":"bf156170790d40a76015a8c78cc2a391cbe1b60bb96c1fac1d047d26e342386a","src/parallel/stderr.rs":"b68d728087667fd568921d61cd40d0dc6b56c59bde6e671cb50cb0c43dcdf56d","src/target.rs":"a9d2d347a3a08015531f00b32bc8a7478f5636822cc8e0237ea9efa3f07d4cd4","src/target/apple.rs":"da9411b2c4db419e0fa39f765ee53b8665b3837fb39827679a53238734a4a1c1","src/target/generated.rs":"f93008829c57e9da3f5d6ac84643c04d8438a319fe9517533604dfe47e9cb8d7","src/target/llvm.rs":"525680a605fb57e038c3103d3efc9201c1af7b99162adf5dbc399da1d5007efe","src/target/parser.rs":"5ea311fc57b6a6d1aecd7e5433ee5f79b403b58e40be18650fdd81cf514614cb","src/tempfile.rs":"77963fe55b63d3a30cccae46f763b8d61ed722247fe208e8485858770f6a67f7","src/tool.rs":"52a7bc134154fde7fecb1ef691f0179eb617e2f17a10d71dfa71afbcb061555b","src/utilities.rs":"ebb59ac01fb9588bcea0d0ee786e5d5a5696b4284a1245657625db03e830b72e"},"package":"509591b7bcd67f4ef775afad7662703b4935daaa6ec0e5605cfb1090b32a2b6d"} \ No newline at end of file -+{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"d6e26674a9d7de87dab83262a14f2377988a1e087e4b514f3983f8dd141ea813","CHANGELOG.md":"fb0a3bcb34301d2578bef86feabe93057068cb1906a7f10b584f58ff6123e8c6","Cargo.lock":"b661254fadca74408d53742755b371f7ae29e501e851aeae13bcd14a51883321","Cargo.toml":"50debe1b2fc050e8b305bdd514509d98cdbc59e96e5f10888df4b6fca19d3a75","Cargo.toml.orig":"0aff9dc74ddbe3bfe89ad9698212a6a18d6124b9593780aad25e277d28e9a71f","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"f1ddbede208a5b78333a25dac0a7598e678e9b601a7d99a791069bddaf180dfe","clippy.toml":"aa7850db4350883c8f373bd0d6b4d19bf3b75f13c1c238e24368c109cb52fb1d","src/command_helpers.rs":"010873ba1ab0ea4b7e3b5eac72aed5f50e535d42cb94da943d2aa3d74904aa0f","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/lib.rs":"221ba9475100303b5c694b2a02e5353452ee08a29e4e4d4d67ea8fcbd87605df","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/job_token.rs":"018a01cb00182270bbcb68e31e7a7c5c621a95f086e4c68cfa2bf557ac24e5f2","src/parallel/mod.rs":"bd9c1334d17d138c281961c690b8d8118a2d6295a7d6cd7296826255436fa063","src/parallel/stderr.rs":"74384d41198740a6fce0877f144262db09fb091225fa8fbfa771314bb11487c6","src/target.rs":"7313240db078ad85c1209a42a5fa96c3692b5d6e5093c7f366a1b99677247109","src/target/apple.rs":"6afbecac9f66aa72db55694413532f80b2753f28466a6213d1aa901a03c78bcd","src/target/generated.rs":"af067e1c291e895ddb591f92534eed0c48977cdb2b58f8239423e07c6de31cd3","src/target/llvm.rs":"e1db4a7fb8b905ee9853781f2fcc64a9d3b48154e4c8b6cb12f5373c5935da6e","src/target/parser.rs":"4f2129a24273d62bf8ab339098e7f758e4e42b0df369dd2b0eb1b20726be91f8","src/tempfile.rs":"ebafb5b0e5d08b0706916ed911d4245240e60c3e2d0c9a1630c520842988a2b3","src/tool.rs":"2e6550062e021f2b394388172bbb01e86fe6a94d2395bcb3c85a9e86690da1a9","src/utilities.rs":"52b30b24a1c31cdefb105309ee5220cfc9fca76eaf4e6d6509c3e19f431448fe","src/windows/com.rs":"a2800ddb81215fff2bf618336f5c4ff8e8bdb746dd18b795873c7304b3f2a5e3","src/windows/find_tools.rs":"0ff410bd71f08ee88e99609c15be5f1bc16ad7bd07a83918d13a70c8465642e2","src/windows/mod.rs":"34cfa201cfbcac7ccaa3ea5295d3e4200439af3cc5c6433baf81502596040a89","src/windows/registry.rs":"c521b72c825e8095843e73482ffa810ed066ad8bb9f86e6db0c5c143c171aba1","src/windows/setup_config.rs":"754439cbab492afd44c9755abcbec1a41c9b2c358131cee2df13c0e996dbbec8","src/windows/vs_instances.rs":"946527cf8fd32c3472f6a2884dcdec290763101097334c7478f9c24c3950db6b","src/windows/winapi.rs":"250d51c1826d1a2329e9889dd9f058cfce253dbf2a678b076147c6cdb5db046c","src/windows/windows_sys.rs":"e2714c8307bfa083b9745eb0e46cadd7f98d7b88abf45a7637172019324e34b8","src/windows/windows_targets.rs":"5b4648ebc22b028caca9f4b4bf8881fe2d094b7bec217264ba2e6e2c49d1ccee"},"package":"1aeb932158bd710538c73702db6945cb68a8fb08c519e6e12706b94263b36db8"} ++{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"067dd1727a66bb81a833e7ff9ed732d0a26c4dfb6f78600884cf20cc766b379e",".tombi.toml":"93f57361f60b03b6c14ede301446e5e2658abaa98cac39a4a96be0966b6b851a","CHANGELOG.md":"7e2c9bec874d564ceeedfa88587ab86f45d8a3d3df4a6f6ef19ad3db3997d74e","Cargo.lock":"f309ad15b2b17d7ff090e11005112ad2ed04495da92d8d11f758adb69c87d273","Cargo.toml":"c424f930665aa062f43c448c2837c98f9aad434a95cce4400605b0f2af7c820e","Cargo.toml.orig":"d1fc79a63899b64a816fe5595b403c27ade4612ea58c0e88556c05d307b431f0","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"cc952a506dc726eed3e128d47d62defbac4470bbb0e465f6a043ae8bf0c96d19","clippy.toml":"cf46251b0953d1a3c7a4f8f8941a08d8a416d5fc348dfe3f3c520eb93fcc18ea","src/command_helpers.rs":"f878c574ad193473ef07d9b41afe4f7c27b735cc33492615a53c7a454aee3cc9","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/flags.rs":"1a80855f51db6808cdcb5c0e6bd1c0973e86463014082ef7ed1d0fbe7b89cf93","src/lib.rs":"61391623eed3591d6d06977867b7a772348daa1385c1fefd8e82ab8e9adbc71b","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/command_runner.rs":"1d17d9a037de93b31cc7ee6a914a1e1f6c1ac156cf8619f0014dcbaca6a0b215","src/parallel/job_token.rs":"1aa1ecc639e09845eea0f1e11a76c39ad2604eaac3268059652f56add8890089","src/parallel/mod.rs":"bf156170790d40a76015a8c78cc2a391cbe1b60bb96c1fac1d047d26e342386a","src/parallel/stderr.rs":"b68d728087667fd568921d61cd40d0dc6b56c59bde6e671cb50cb0c43dcdf56d","src/target.rs":"a9d2d347a3a08015531f00b32bc8a7478f5636822cc8e0237ea9efa3f07d4cd4","src/target/apple.rs":"da9411b2c4db419e0fa39f765ee53b8665b3837fb39827679a53238734a4a1c1","src/target/generated.rs":"f93008829c57e9da3f5d6ac84643c04d8438a319fe9517533604dfe47e9cb8d7","src/target/llvm.rs":"525680a605fb57e038c3103d3efc9201c1af7b99162adf5dbc399da1d5007efe","src/target/parser.rs":"5ea311fc57b6a6d1aecd7e5433ee5f79b403b58e40be18650fdd81cf514614cb","src/tempfile.rs":"77963fe55b63d3a30cccae46f763b8d61ed722247fe208e8485858770f6a67f7","src/tool.rs":"52a7bc134154fde7fecb1ef691f0179eb617e2f17a10d71dfa71afbcb061555b","src/utilities.rs":"ebb59ac01fb9588bcea0d0ee786e5d5a5696b4284a1245657625db03e830b72e"},"package":"509591b7bcd67f4ef775afad7662703b4935daaa6ec0e5605cfb1090b32a2b6d"} \ No newline at end of file -diff --git a/vendor/cc-1.2.0/src/command_helpers.rs b/vendor/cc-1.2.0/src/command_helpers.rs -index adedab2..c911306 100644 ---- a/vendor/cc-1.2.0/src/command_helpers.rs -+++ b/vendor/cc-1.2.0/src/command_helpers.rs -@@ -315,13 +315,25 @@ pub(crate) fn objects_from_files(files: &[Arc], dst: &Path) -> Result], dst: &Path) -> Result//out/ instead of deps/. The dependency + # files are only needed to incrementally rebuild libstd, don't install them. + rm -f ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/build/*/*/out/*.d + cp ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/build/*/*/out/* ${D}${rustlibdir} } BBCLASSEXTEND = "nativesdk" diff --git a/recipes-devtools/rust/rust-cross-canadian_1.99.1.bb b/recipes-devtools/rust/rust-cross-canadian_1.100.0.bb similarity index 100% rename from recipes-devtools/rust/rust-cross-canadian_1.99.1.bb rename to recipes-devtools/rust/rust-cross-canadian_1.100.0.bb diff --git a/recipes-devtools/rust/rust-snapshot.inc b/recipes-devtools/rust/rust-snapshot.inc index f5865d4..1082c0d 100644 --- a/recipes-devtools/rust/rust-snapshot.inc +++ b/recipes-devtools/rust/rust-snapshot.inc @@ -4,58 +4,58 @@ ## The exact (previous) version that has been used is specified in the source tarball. ## The version is replicated here. -SNAPSHOT_VERSION = "1.98.0" - -SRC_URI[rustc-snapshot-aarch64.sha256sum] = "00590657f2356d7163ca5ef295283523974c340fa21bb94b420ce794f29b358c" -SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "a36f7ac98af20ef0ba6368aace0345efabbebaef7962eba99f47190fd256162d" -SRC_URI[cargo-snapshot-aarch64.sha256sum] = "5784379d73ac881d15a9e67eed2882cd58c747c276221c23cdf9aff37e015ff6" -SRC_URI[clippy-snapshot-aarch64.sha256sum] = "bc9b5636170e4b067794bfb8962c6f22b2aee5cb7358f4d9523072bb2976062a" - -SRC_URI[rustc-snapshot-i686.sha256sum] = "5244bd76687b64cd7305ef038d8f349774eee494174899474535c23dcbeaa009" -SRC_URI[rust-std-snapshot-i686.sha256sum] = "11c7a5cfa324e4324611793692a863490902bdff8b9ccd197404711cb8dc24d4" -SRC_URI[cargo-snapshot-i686.sha256sum] = "b768fe07ae4bd233e5c3f864f935620abb8b72139f7369c869e964a0c30ae419" -SRC_URI[clippy-snapshot-i686.sha256sum] = "df4f34169dffa12cfc75fd246c75092734f2ff3837299531b0dad432d58f959a" - -SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "5af789de2072c185302377c0bf6af5f6ce518670eaec62363142d60a90209986" -SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "397eb65ab17005c709a86e7bf7cb03d8aa9dae4303783a19c06ba8963247d537" -SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "e00ba627af9f098f0d9527c5b15f1a6886486c93f0139eee6f36cb104543a182" -SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "7bda4fb4a971d23598bd488047fe8a4083f72c9af221a6018a84a8e304663c61" - -SRC_URI[rustc-snapshot-powerpc.sha256sum] = "a4848482dbb50b808495a32d35ed5c7a7a9de86d5c9d7de1ca34a5590ce6056f" -SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "ae6a38ebf8ab0b8bd20da34aedc3de6f78d8314f10a6e373bd76a0dc90f22133" -SRC_URI[cargo-snapshot-powerpc.sha256sum] = "4e5760b7898b00c5b772fe7b1e48d75a0b4035b4a7d4de3ba6fc5b1544966196" -SRC_URI[clippy-snapshot-powerpc.sha256sum] = "a5c37e43b380adfeb14149ec0d9c4a76c985ec8d532ac669be9055094d05f166" - -SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "c9833ed9d2abde4c6b8f4067408e9ff4a758e4252e87257d3acf780c31d3531d" -SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "e33d1517443f93dcbf151c46e3969bdbe4c9df4c847455915eecd6caee08cee2" -SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "fff7e0ca647951a4a42c2272c857fa749e28746853190e8211849da35d1fb45d" -SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "02cc96e76c2ca4e22608fbf9080455211f0f6b51dc0ec7da0f54430181de7262" - -SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "a940bca1bce862b2233a5cc07bdfb3f24b285744fc6ecb6dbb174853a41bff6a" -SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "ec370e4ad9712cde2f6664f18a022bd8de34c71b8517040b4d14144fcf1ef3e7" -SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "98b90455b3c57086b7ee6456da1075c929a495ac76850411db1e3cf76cf0cf48" -SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "2318acbbf599bd57084e4ccc75252723fefd7a9f7d4acd03ee1513b41c212b46" - -SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "2f76a343190d8ffbe6c44666fdab32b6a6696a3e1176f6d84222b6e6221a382c" -SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "68ce716d38bcc15c6fe3686bc7133f5adbadd28f5f5a8a73ef1172b4f60149fc" -SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "9fcbf7ebb55a3eefdc2145a29b1cc797380edee0cee1163742c5ee06c4622347" -SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "12b08f51925b9eafae1b3ddccbab49024a05827fa965e65dbccdd63422f84b1e" - -SRC_URI[rustc-snapshot-s390x.sha256sum] = "c6e39df3937b6e2c2c66eb67406738036ed80f79072d136e122e61747b139b85" -SRC_URI[rust-std-snapshot-s390x.sha256sum] = "c9bcf3eb8348e04502a49345a0847576e6c6fbd6600d566ef7cc74f6c2d06048" -SRC_URI[cargo-snapshot-s390x.sha256sum] = "0bc2062d88993fc590007ea2374f5e784fb5b7f1eec6c024b1fb3459ccd50212" -SRC_URI[clippy-snapshot-s390x.sha256sum] = "25aad07f775b7eaac2139f1f233855f8fd81e40ea8450e2220ce9906bab5f123" - -SRC_URI[rustc-snapshot-x86_64.sha256sum] = "0e37cb339f447fc44d6d781073bacacebfdc5612f2600e4c7e84c266f5f3aced" -SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "f5022e6c95a5ad23cca2513dc8281200f585fa188de6370aa37b128a43f876a3" -SRC_URI[cargo-snapshot-x86_64.sha256sum] = "2f512d170d3dd23e16ababcda32ee2e6d5172d861a7af1f504e0b1e270cafab9" -SRC_URI[clippy-snapshot-x86_64.sha256sum] = "646c6bd2450ea4c32a3c78ad7a3727294eea1f1519718a3f1487424021695ffa" - -SRC_URI[rust-std-snapshot-i586.sha256sum] = "7d150f9ec40eaaeb4ae453dedf5416855b9245420fd89203a5da420f692ead38" - -SRC_URI[rust-std-snapshot-riscv64a23.sha256sum] = "81fec8bb25e1377e8f143c33441d12ac115781da496475ecca5601cc791be56b" - -SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "9e0a10697c2e68707573fbcc01aa927d32b9652deb771ca87d69a9b7225580ed" +SNAPSHOT_VERSION = "1.99.0" + +SRC_URI[rustc-snapshot-aarch64.sha256sum] = "89c0f1a3a44df63c95e5d5f2ba093d0a12c5f5f57f8635f8a7a0ce50cf86600e" +SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "1cf7e2ef58ed1cfa6f1adea18e155cbf254c1951f39e5f5e3376879f55fd64a4" +SRC_URI[cargo-snapshot-aarch64.sha256sum] = "113229fcc16cc1ba004923a4cc275fbf3281dafaaf8b97269f9c00189d497fd4" +SRC_URI[clippy-snapshot-aarch64.sha256sum] = "42e49dc02d29949395c0c072585961f6c9b5408110236087828d4e2f94ca96ef" + +SRC_URI[rustc-snapshot-i686.sha256sum] = "17d94ac00b3a5ae896022aabd9e73fb56f01881c9bd3d5095e08d9c9e608f4ac" +SRC_URI[rust-std-snapshot-i686.sha256sum] = "b13902a225a6109588de09167831da111c70a30bedb2d9b9754d9fb13dc6e558" +SRC_URI[cargo-snapshot-i686.sha256sum] = "a6cdcfd06454695375a3aa89c37b0431b5146d55b1111fc323ac92a15d1d087a" +SRC_URI[clippy-snapshot-i686.sha256sum] = "e3295d8f8fc7658e8135a3fdad3a9f7d7dc34d38540f4efc720502dcf952fc86" + +SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "70e0b964f64c462ebb0b9ef1c4e08c3a87a724fbae16b1ca866127e68d4f5e7d" +SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "31418c9492c57eff5893f7d80d6cf776d968dfcfe1750be8c2bf2c05b19689d9" +SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "dd5901c5668513c0640fff626aa7fce42d33ceb18afecc91e1163063ea859cd1" +SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "ef24b5ed352469eb5efd9eed4e68928ff684682865a70c5e74c372b5d356f034" + +SRC_URI[rustc-snapshot-powerpc.sha256sum] = "ad672e3d515cfbb33e8e05d4fb15a5dfa745988b9699f5b62d1cb9ba13dde81c" +SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "f2ce1424fc9272a64f358f8d28c72f277f7fa626c256f115daae0ecfa12a8999" +SRC_URI[cargo-snapshot-powerpc.sha256sum] = "a511dd7f315fe6097a12de73c1b4041ae6b5c2880e88ed2afba2b36d79074bf7" +SRC_URI[clippy-snapshot-powerpc.sha256sum] = "bfc3191f0086878a7e72b3362f8a36ccd9bb9a88ad14c122334443b16eb39f28" + +SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "fd891495f63d0aa1168875f8a0160ec1587d2ef6bb83979f03e9aa7c21ca8362" +SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "8b9ac17c3410a1ca895c2280c839fd1d1df7adcb6435137eb3030bb255ee69cf" +SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "18134aecb63ee24aa980c9843cf24bdaeb9c2dd8aeca832ae5b88ca5d8856981" +SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "388e0748e40ec77ab799806e1f48b615ab8e65220d3c9a6838dfa172bea8b4a0" + +SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "308c82f4c4ba93e7614a27660347ed6b419f3570c5bc1046f73d840b7728dbc9" +SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "8c1a6857ba1be316ff453efc4d2aefd43756ecdb6d549a3d64be7351c4a55bdd" +SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "bbdf0aa56ce2dd7347e9a06861f9bd2d8015e2dadcf80edcb843892efc68174a" +SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "4ce616ff452ec0491876d00fe1c89fab786b6ce7fd0289c0e0f47da1bfac7039" + +SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "80db2efdcf26ba75b1c38c6da896ff332d1bb6d0fbde6b1d2336a7ea475c6e40" +SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "646847eb1d0b58c55118390a2b1a6af871e4bc581651b5047dcbdfd0a24629f9" +SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "999311c0ee828b3988f16abcd586d1189ebab6d37081197d89a9883c4b7d2134" +SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "c4ae4e5e03e3ce8c2f2b93a4b59e2f3c8f47a1647de29458f8e26e76079b0d61" + +SRC_URI[rustc-snapshot-s390x.sha256sum] = "b598d8f89ac024fa9839de2393787eb85bed071528236f0a282e8100d852cb4a" +SRC_URI[rust-std-snapshot-s390x.sha256sum] = "ec386455256a3ef1d16bccb02a040cbb6978af565f716fdc26684054b19dd0d0" +SRC_URI[cargo-snapshot-s390x.sha256sum] = "c6f4d75baf64f08a449d89d1f5cacb4e14a3be40a8623a00ea1530a6e3fa9d9e" +SRC_URI[clippy-snapshot-s390x.sha256sum] = "ad97b001f4c73442307434176fc97cdcf7a80820d728f48bebfb31237ca8b55c" + +SRC_URI[rustc-snapshot-x86_64.sha256sum] = "77171ba2a0345fdf2abc4fedda55d6de078dae7a68527c28be8c77dcc9604bd5" +SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "3e58dff2d0b72196b5ea4e90536e174d400de88564a52694686b81e091169933" +SRC_URI[cargo-snapshot-x86_64.sha256sum] = "d7674918d28093097614cd9728b6ca60db9ea3038f640f0bd1e9a4188c7568ce" +SRC_URI[clippy-snapshot-x86_64.sha256sum] = "982442e32ad8dd3f0bb3a30db74038da5f71fd9bf1a865cc71da8ea5d4ec71ec" + +SRC_URI[rust-std-snapshot-i586.sha256sum] = "0d2e0687934fd8f79e75a092e9a4c1240ca8346b61aa22dae0921a3d66274b18" + +SRC_URI[rust-std-snapshot-riscv64a23.sha256sum] = "e63bf434820d6a2f95396428d1659dac8ef915bc1432d730091ae399518d5fbe" + +SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "ef4399ed88f527bb71b937583a7e5bf36177d83fb55b8c58973ae146579c5ed6" SRC_URI += " \ ${RUST_DIST_SERVER}/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \ diff --git a/recipes-devtools/rust/rust-source.inc b/recipes-devtools/rust/rust-source.inc index b384a0c..8b5b59b 100644 --- a/recipes-devtools/rust/rust-source.inc +++ b/recipes-devtools/rust/rust-source.inc @@ -5,11 +5,10 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n file://cc-hash-object-names-relative-to-source-roots.patch;patchdir=${RUSTSRC} \ file://0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch;patchdir=${RUSTSRC} \ file://0002-Fix-rust-build-failure-with-unstable-options.patch;patchdir=${RUSTSRC} \ - file://0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch;patchdir=${RUSTSRC} \ - file://0004-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \ - file://0005-rustc-span-make-hygiene-encoding-order-deterministic.patch;patchdir=${RUSTSRC} \ + file://0003-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \ + file://0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch;patchdir=${RUSTSRC} \ " -SRC_URI[rust.sha256sum] = "6451598a99e77f07571960f6b21d577399d3a30f33e80cbd2e3a4aae6535d265" +SRC_URI[rust.sha256sum] = "90dab90b8084eb57c35ae2b1d0b70c8e5138ace6023b22c60a5a400f586f63b2" # Point UNPACKDIR into the work-shared location so rust-source.bb and all # consumers (via S/RUSTSRC) reference a single shared source tree. diff --git a/recipes-devtools/rust/rust-source_1.99.1.bb b/recipes-devtools/rust/rust-source_1.100.0.bb similarity index 100% rename from recipes-devtools/rust/rust-source_1.99.1.bb rename to recipes-devtools/rust/rust-source_1.100.0.bb diff --git a/recipes-devtools/rust/rust_1.99.1.bb b/recipes-devtools/rust/rust_1.100.0.bb similarity index 100% rename from recipes-devtools/rust/rust_1.99.1.bb rename to recipes-devtools/rust/rust_1.100.0.bb From patchwork Mon Nov 30 00:52:23 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106330 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23234.1795999967044210636 for ; Sun, 29 Nov 2026 16:52:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=IEYdyZ/4; spf=pass (domain: konsulko.com, ip: 209.85.222.173, mailfrom: scott.murray@konsulko.com) Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-94958650b09so954330185a.1 for ; Sun, 29 Nov 2026 16:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999966; x=1796604766; 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:content-type; bh=ZR36cT2WtrfrO1hj5VhVHL109gge+XefjHpbQygSt5s=; b=IEYdyZ/4K47wVDU1u/r2qeX0+PIIXBO0jZJmRffkisPEegr6UBGiZjTkbl8A8ghUbS wUV132a9Hc4Qn9KEFJDLueB3uyAJysZjnLHDBMAve1B0V1hiFaTtPUhcsZ52rtOV7LEi ZSiCCdJJ/FI2NuChhsNMfTaE6MfUvIQr+ayCw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999966; x=1796604766; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=ZR36cT2WtrfrO1hj5VhVHL109gge+XefjHpbQygSt5s=; b=g6T6Zbz/nHtWxV+EYGQq9vfb1eZN3/vYU/iwagAZ4BVrWQOTN2eKrrx8bnVyXZoUVr iLeDpmK9+hg1ZXIh1y0fa5Ypjkcn4PefRUSTlG9j2BRkVUG3rBWZU18fpMJntUWOil0C hUtVTOIbuZqU8yBeVS5oiiTus8mfb/XRpkT/9X5x2S2yajrt8SOG7R5vaY4ID7C8Hq65 4juO20AJeZYXPwjb3B/wsYwLRC+l2I2hYhdlcZf5H28P7/018/4fNEtahRjPTzDw8XoY uhjuMKn96CPfpp8fZp4ib5MT6IAr/eqaTUN4PogDAgZlblv83zzsY5yTkmZtvcxI++b5 uiYA== X-Gm-Message-State: APuU4Z9sgx/mjS726/K3e4PKa8wurzbT1rmjadhl5JYiH2FoL5vvFRb3 C4SrSh8vRWJL7NG4MCREwxS2iNUI8liqc3SQsUs4S39F4CuYpn3kUdPZnnSLLpzcoKuWd1DPyg0 cbiPD X-Gm-Gg: AZFdTZcv2jCCbTCJx4rnz14LIXxJENm/l9zyAQH4ctc6ag0AQD3hlXRhQHrpkfou57S rqSjMjBtNdM+ANEFhrdELPou9RyWcK6RQQ4WsRV9C2WOcydakxzAMdTaiN2lMQZu9TeK/KjT7Nt d30vJ3Jd7qzAPfY9DG8fl5xhLxk49fmEhNCNTwGxOzeddBrefJ9Pt9+Y9QXQhfrMDETx+vpvCvc GgsjfC7IknqgRGWbzrY/fHsj0j5i6G7s8cbn/IShDGyLX8nICAyKe3RcuEyw06+xb5SfxVrlChh JuCbIoHpX6KmBI4InUvZlyjZRPjL8KTkGREywG1vEw/sdXu2oDU1evTcMryX+nU0BUkj4Lzg7IY 3QczNvbUjff6eyckAIsjAcb7vRx1Qds29pvVrLbtiFgxe+v2HakmkwByUQr9/pfCROkD7hi+WVK 8HS+JsD3T8Yqx4bAFQkF0yCdqtYffOtzd+f+XZN09hCNhPFLyb5TMWbbipKFIcDEMmwzuzB4ktW GS29ncAtAUpEQ1QwPb3wugZFTd2aGt2eYGSXtqngiAp5d7st6uulhapGay2d/fzXg3e0MXK1D9N pVasWVTiOP17pFtcfcUXMwCypW9lC8BLCXDtfbqK0SWJOgXmvaETOBKzn2J0PvLBr/JufAzj3UK gxj8Dn8l4mMtva+TNpJxio6W8kCOngs/soXEzWx/gMvlwA9HHP9uZIr+zVPO1bqUyVw== X-Received: by 2002:a05:620a:1713:b0:948:e2fc:177a with SMTP id af79cd13be357-949baa0d7a2mr5750017985a.60.1795999965675; Sun, 29 Nov 2026 16:52:45 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:45 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 05/10] rust: drop native libLLVM path for non-host architectures Date: Sun, 29 Nov 2026 19:52:23 -0500 Message-ID: X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5592 From: Hemanth Kumar M D With the recent refactoring of the LLVM handling in rust bootstrap [1], the library search path of the native LLVM (recipe-sysroot-native/usr/lib) is added to the link of the target rustc_llvm when rustc is cross-built. rustc_llvm/build.rs only adjusts these -L paths by replacing the host triple with the target triple. In OE the native and target sysroot paths do not contain a triple, so the native path is kept and the linker finds the native libLLVM before the target one. A linker that cannot read the native library fails with: libLLVM-23.so: file not recognized: file format not recognized Add a patch to drop -L paths that point into recipe-sysroot-native when cross-building. The target libLLVM is still found through the target --sysroot. This is a workaround. The issue has been reported upstream [2] and the patch can be dropped once it is fixed there. [1] https://github.com/rust-lang/rust/pull/161247 [2] https://github.com/rust-lang/rust/issues/165385 Signed-off-by: Hemanth Kumar M D Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (adapted from oe-core commit 49c30208e9fc84bd8bf054ee7ffc853126fdd0bd) Signed-off-by: Scott Murray --- ...native-sysroot-L-when-cross-building.patch | 49 +++++++++++++++++++ recipes-devtools/rust/rust-source.inc | 1 + 2 files changed, 50 insertions(+) create mode 100644 recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch diff --git a/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch b/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch new file mode 100644 index 0000000..8fd17c1 --- /dev/null +++ b/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch @@ -0,0 +1,49 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Hemanth Kumar M D +Date: Mon, 16 Nov 2026 03:14:17 -0800 +Subject: [PATCH] rustc_llvm: drop native sysroot -L when cross-building + +With the recent refactoring of the LLVM handling in rust bootstrap [1], +the library search path of the native LLVM +(recipe-sysroot-native/usr/lib) is added to the link of the target +rustc_llvm when rustc is cross-built. + +rustc_llvm/build.rs only adjusts these -L paths by replacing the host +triple with the target triple. In OE the native and target sysroot +paths do not contain a triple, so the native path is kept and the +linker finds the native libLLVM before the target one. A linker that +cannot read the native library fails with: + + libLLVM-23.so: file not recognized: file format not recognized + +Drop -L paths that point into recipe-sysroot-native when +cross-building. The target libLLVM is still found through the target +--sysroot. + +Upstream-Status: Inappropriate [https://github.com/rust-lang/rust/issues/165385] + +[1] https://github.com/rust-lang/rust/pull/161247 + +Signed-off-by: Hemanth Kumar M D +--- + compiler/rustc_llvm/build.rs | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs +index 450b98f..05ff9dc 100644 +--- a/compiler/rustc_llvm/build.rs ++++ b/compiler/rustc_llvm/build.rs +@@ -452,7 +452,12 @@ fn main() { + if let Some(stripped) = lib.strip_prefix("-LIBPATH:") { + println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target)); + } else if let Some(stripped) = lib.strip_prefix("-L") { +- println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target)); ++ // OE: the build-machine llvm-config reports a libdir in the ++ // native sysroot, which holds a wrong-arch libLLVM. ++ let rewritten = stripped.replace(&host, &target); ++ if !rewritten.contains("recipe-sysroot-native") { ++ println!("cargo:rustc-link-search=native={rewritten}"); ++ } + } + } else if let Some(stripped) = lib.strip_prefix("-LIBPATH:") { + println!("cargo:rustc-link-search=native={stripped}"); diff --git a/recipes-devtools/rust/rust-source.inc b/recipes-devtools/rust/rust-source.inc index 8b5b59b..ed779f3 100644 --- a/recipes-devtools/rust/rust-source.inc +++ b/recipes-devtools/rust/rust-source.inc @@ -7,6 +7,7 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n file://0002-Fix-rust-build-failure-with-unstable-options.patch;patchdir=${RUSTSRC} \ file://0003-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \ file://0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch;patchdir=${RUSTSRC} \ + file://0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch;patchdir=${RUSTSRC} \ " SRC_URI[rust.sha256sum] = "90dab90b8084eb57c35ae2b1d0b70c8e5138ace6023b22c60a5a400f586f63b2" From patchwork Mon Nov 30 00:52:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106325 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23235.1795999967561293366 for ; Sun, 29 Nov 2026 16:52:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=Pg6rh7RS; 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-91ebf4cd218so88124106d6.3 for ; Sun, 29 Nov 2026 16:52:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999966; x=1796604766; 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:content-type; bh=hVUXGlMfWdYcdwyKWVMUGIEqdZStB8tHMaZKsBE6odU=; b=Pg6rh7RSqqeZGavb9ZEhHtZocO2Um+KlX7GcgL5/w8tsPIvNhowi/Al97jaTa/uESz gwa+ZzPowZr9zILMpVkIYzVuAPmUVe4BpISWxU1A/DEZEPZq/A6zSLAEBieMgHRrLiYT XhnwAqIr6bi3bxc5nCmX/pA0RtSYUMZbKSygU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999966; x=1796604766; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=hVUXGlMfWdYcdwyKWVMUGIEqdZStB8tHMaZKsBE6odU=; b=yqtYYsZnCrfbCwfHReutqDz9Yg8cGXvJaULZuiLFpoyTkjT4CwWH2I6VhpbHVTDoDp kofBGdKJSGZ2vXoab968H9vOiFXW7JVl/dWnZNhoh20LazZTpL5aOUoyczUANVnUkcp8 7TOm+Ic+Vtncu5QY+VdAZVUcqh3OGQVtuZKQOQ8DunHMZF8ECzFcmZS9SWlXCqPgRdk8 2SiS6qhMz3y8Dy+k5IBUSFK8QBNa7IjNd5b3jjEOOH4WoMTBvZfH8V3CY8jt4PAPCTPg BgfibuqWrh3R8IuE7uiC49/Us7gZCKJaL4MSLxQlepRC94Gaqp8bLCPZf3jLrhmJhdMT bKFA== X-Gm-Message-State: APuU4Z/pP54cj4fwqxr/yfOiH19QOlsEk9viEv86NXhLwYOJP8dK/vJr XmHomW3aW1S2DBu18ZswDYnNPWu+Lt0QWVJoYnmLnKtsWa4OkxFeT4lGzY7lY155MPFw9vkV8SH k4Rzq X-Gm-Gg: AZFdTZcDefcaFmLvJS1WuyvnjDT0kEzHqUQpWQaVcfI/5bRdfxOYvrQ1MNf1Sij90LB JoaNeAOxKn6IC+H65xS3dQdWJ7C4xwsruTLQs2hF2cMIvVmeCtpRkz4LbKfmPKYdnlf9ezK0Mnv tWKmQbdek/8Dc2dVqdrsZP+WB7IlwP2GYOisvOL76xjNGmpvGuW3Gg9K3atyZMvdbDtBGstcnFa MRcVreKudOSjl7tCh0+pNtEwA7eW/PecZ9XG2kbWVRF5japsPBr7v2qOtY8KabK9Z8T+UGdL5lf e9iIdmpC5+SxtD5K0QYlTsI7dmMpuRL5wo0ECTclsoPEoT/d4v+oLNZ/4adYxnx0rejyYw1hXq7 nyeFQ+pvvnMd4CjQaimUQRbPFgR5S+TdHG+XtnUPoDOdLdupoLVcpyiNG2M6rmO37TuJiwQPQe3 cP5rWh9G4Ofvw+5i6Qe90nx00M9f9kOl16P/de4CP3hhcjEliqnjvzwz2zyiWnbXkjfFpHftC8u LfvojCCi0Zc015RDHr0M9CdMEdDSgplfMTR2bPy0L+peOfH+wrC7sAUqc/Fnh2zg+BOsgTu+w+n LtRey2wdLideBjRH0i8HfKkGSxNoTKjLu8NVVDsHD6GIwjQc5XQ2vJEh11F+rNuSLyZZSp5Cr01 LONFRsa51+0CRtKnuZOgBdAlz049h6yMbhMJAOMbeXXP4Qp3w2TUBXqF80Ub4TvAFKA== X-Received: by 2002:a05:6214:528a:b0:91c:7a0e:3385 with SMTP id 6a1803df08f44-92134b28611mr614145396d6.49.1795999966225; Sun, 29 Nov 2026 16:52:46 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:45 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 06/10] rust: Fix intermittent test failure Date: Sun, 29 Nov 2026 19:52:24 -0500 Message-ID: X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5593 From: Deepesh Varatharajan Fixes [YOCTO #16460] Fix an intermittent test failure by backporting the upstream Rust commit. https://github.com/rust-lang/rust/commit/a292cb16d5cfc32923be91c86afaf727682a38dc Signed-off-by: Deepesh Varatharajan Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (adapted from oe-core commit 5dbd586fa8a9ad1a5e0193986f1ed67e14b8c3ae) Signed-off-by: Scott Murray --- ...se-thread-local-in-c_str_alloc_error.patch | 64 +++++++++++++++++++ recipes-devtools/rust/rust-source.inc | 1 + 2 files changed, 65 insertions(+) create mode 100644 recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch diff --git a/recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch b/recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch new file mode 100644 index 0000000..f213220 --- /dev/null +++ b/recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch @@ -0,0 +1,64 @@ +From a292cb16d5cfc32923be91c86afaf727682a38dc Mon Sep 17 00:00:00 2001 +From: Jules Bertholet +Date: Mon, 16 Nov 2026 09:24:03 -0500 +Subject: [PATCH] alloctests: use thread-local in `c_str_alloc_error` + +Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/a292cb16d5cfc32923be91c86afaf727682a38dc] +Signed-off-by: Deepesh Varatharajan + +diff --git a/library/alloctests/tests/c_str_alloc_error.rs b/library/alloctests/tests/c_str_alloc_error.rs +index 1e7d54d75b3..fc572169583 100644 +--- a/library/alloctests/tests/c_str_alloc_error.rs ++++ b/library/alloctests/tests/c_str_alloc_error.rs +@@ -15,20 +15,22 @@ + #![feature(alloc_error_hook)] + + use std::alloc::{GlobalAlloc, Layout, System, set_alloc_error_hook}; ++use std::cell::Cell; + use std::ffi::CString; + use std::panic::{AssertUnwindSafe, catch_unwind}; +-use std::sync::atomic::{AtomicBool, Ordering}; + + // Once armed, the first allocation of 8 bytes or more fails and disarms, so the + // reallocation inside `clone_into`'s grow path fails while the runtime's own + // smaller allocations keep succeeding. + struct OneShotFailingAlloc; + +-static ARMED: AtomicBool = AtomicBool::new(false); ++thread_local! { ++ static ARMED: Cell = const { Cell::new(false) }; ++} + + unsafe impl GlobalAlloc for OneShotFailingAlloc { + unsafe fn alloc(&self, layout: Layout) -> *mut u8 { +- if layout.size() >= 8 && ARMED.swap(false, Ordering::SeqCst) { ++ if layout.size() >= 8 && ARMED.replace(false) { + return core::ptr::null_mut(); + } + unsafe { System.alloc(layout) } +@@ -39,7 +41,7 @@ unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { + } + + unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { +- if new_size >= 8 && ARMED.swap(false, Ordering::SeqCst) { ++ if new_size >= 8 && ARMED.replace(false) { + return core::ptr::null_mut(); + } + unsafe { System.realloc(ptr, layout, new_size) } +@@ -59,11 +61,11 @@ fn clone_into_alloc_failure_leaves_target_valid() { + let src = CString::new("a fairly long value").unwrap(); + let mut target = CString::new("x").unwrap(); + +- ARMED.store(true, Ordering::SeqCst); ++ ARMED.set(true); + // Under Miri the failing allocator is honored, so this reallocation unwinds; in a + // normal build the allocator can't intercept it and `clone_into` just succeeds. + let res = catch_unwind(AssertUnwindSafe(|| src.as_c_str().clone_into(&mut target))); +- ARMED.store(false, Ordering::SeqCst); ++ ARMED.set(false); + + if cfg!(miri) { + assert!(res.is_err(), "clone_into should have unwound on the alloc failure"); +-- +2.49.0 + diff --git a/recipes-devtools/rust/rust-source.inc b/recipes-devtools/rust/rust-source.inc index ed779f3..94a20a5 100644 --- a/recipes-devtools/rust/rust-source.inc +++ b/recipes-devtools/rust/rust-source.inc @@ -8,6 +8,7 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n file://0003-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \ file://0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch;patchdir=${RUSTSRC} \ file://0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch;patchdir=${RUSTSRC} \ + file://0006-alloctests-use-thread-local-in-c_str_alloc_error.patch;patchdir=${RUSTSRC} \ " SRC_URI[rust.sha256sum] = "90dab90b8084eb57c35ae2b1d0b70c8e5138ace6023b22c60a5a400f586f63b2" From patchwork Mon Nov 30 00:52:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106324 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.23419.1795999968047520144 for ; Sun, 29 Nov 2026 16:52:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=Jt0GW3cQ; spf=pass (domain: konsulko.com, ip: 209.85.160.170, mailfrom: scott.murray@konsulko.com) Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-5569551d19dso113080051cf.0 for ; Sun, 29 Nov 2026 16:52:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999967; x=1796604767; 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:content-type; bh=yIlXuHHQCRSHgJr+43F30KbvdyePymq7sk3wOreJGD4=; b=Jt0GW3cQSYVRQuAbFJhI8J1QV0xIOUUTOW0c+/XFkyjnHSodANgbn246cQwT5yksPd H5PJY68z+ml8WCqmtQWwegqKRhy3mxNBJe2pef9LpIpZuQ6EmNEMjRol6aHnGih19OBh aE3jNfer+/5Edcrk6qX8zkgolnfrc3HM/kZaA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999967; x=1796604767; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=yIlXuHHQCRSHgJr+43F30KbvdyePymq7sk3wOreJGD4=; b=jeABXZBKFgEWZ2SV8CL9T0FEMf+61j+fyIYAfYpGDEH6vXVGfc+NbSaSJhIRzloPMw liqipth2A7RMFbGbN5zTTiA6Rq5GoNhDVXQwp3YLA0PsGuYmqUUIF1VlzGA7GTBVIRBK A5ptsFYQ+zqUH6Qrp+CCx6owChBjD3QFx2GjN/gZEQPMLMDcECr5fdmKp/uN7kaZZVhH r2veqSqvOVE2pGxdGepQuwQxuqn5IEbbytAdI1XkC0ufF08kdytYb8NvLq5lP1jNvRPm YCtu2Nhw7kfmvyfnRyUx4Lj4ViA8xgNplplrfYiVlQIopJsAvAAGbT/94EcLnlPnEOT3 hN4w== X-Gm-Message-State: APuU4Z/xxoNQqUGISnqgud9z/C6N2xehoLKz4SgsIuTHCs22N0vFSDzb lM0hiX09Ff8YOt3IG2LAIWu6MljQMj8H2cUlqhUANvY+2Q0evcRO/2GXfRNrLC3QsOUsXPnXyTX +rjTn X-Gm-Gg: AZFdTZcpWY3ZVmqm6TZdLW0DYimGempou534rHuRNhUMwypvtmwEsQ7nieYrkPdOCsV fDKy+toVq1q6/P42MOPWUFm+jId+Kvj+6Eff8hrBGsK95KY1bMJDbhGuBdzTU52N6GM1mTOkDz9 dKsM/2hrxsLGnSqQuBo1g/eaaqacGPYKxEePhSPD3s/LTWc1n3jz5/6Mw8avzFqA0qZcrmdnDEW l8fq/CzzuCdlou9bl33C52dBOQ4BJIurvSBLl9J6dtzWuKsVV833OPHWK380c62zrPHTNgsFhid gUYL2B2jiM4f9oInx8tbkOIyHThzmWe9z+uAU2RthprU70x3653H20+IOQw5XWS4+0qYqxkCVX3 khdMsG98IMuQWg8SOyYseSoBWy+ZxVdCEvRAXROeJgK5V8hoz1JKCAIDZjgk18oFJCCXqar+64j VhaPbxnbP136SbqqzKmrjOOFz8NDiaW20YNhGzn1UKqcOSZtSzU0BBGgEARTJwfGskywhBPoM4B YcCH+TC/9a9k6OUde/SLYuHdlLeGKDOEV1447IXr6IJbaywvVthw9D2/7UizrRMNIzsbi2ebTpA WVHHVeDfyZx8sm4Vc8LU0irqt87rp7AFJHmMjvUMENUaEMMuO4dT7ARdnbDl+wirfZLGIm7ww3x dLzwomlYJYaHyv7CxFicUONiL26W0vqKxQC91GClNoZBzbsADlnbBUpVIttyOWY7Zww== X-Received: by 2002:a05:6214:328a:b0:921:22b1:f419 with SMTP id 6a1803df08f44-9212e125f67mr607600916d6.33.1795999966834; Sun, 29 Nov 2026 16:52:46 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:46 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 07/10] rust-target-config.bbclass: pass on all RISC-V extensions to LLVM Date: Sun, 29 Nov 2026 19:52:25 -0500 Message-ID: <442604caedc3e100243dfc203b25d0c8e24f7dc4.1795997683.git.scott.murray@konsulko.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5594 From: Trevor Gamblin llvm_features_from_tune() doesn't pass on all RISC-V extensions listed in TUNE_FEATURES, but rather has a fixed subset listed, and ignores others. This means that with new profiles and custom tunes, Rust code still gets compiled for riscv64gc plus a handful of extras. LLVM's RISC-V extension names match those we use for TUNE_FEATURES, so we can instead pass on each extension in the same order. Signed-off-by: Trevor Gamblin Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (adapted from oe-core commit 3b78f64f23d9ad1e0c94943f4a180189a57474eb) Signed-off-by: Scott Murray --- classes-recipe/rust-target-config.bbclass | 34 ++++++----------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/classes-recipe/rust-target-config.bbclass b/classes-recipe/rust-target-config.bbclass index 2faecd5..89fbd19 100644 --- a/classes-recipe/rust-target-config.bbclass +++ b/classes-recipe/rust-target-config.bbclass @@ -83,32 +83,14 @@ def llvm_features_from_tune(d): if 'cortexa57' in feat: f.append("+v8a") if 'rv' in feat: - if 'm' in feat: - f.append("+m") - if 'a' in feat: - f.append("+a") - if 'f' in feat: - f.append("+f") - if 'd' in feat: - f.append("+d") - if 'c' in feat: - f.append("+c") - if 'v' in feat: - f.append("+v") - if 'zicbom' in feat: - f.append("+zicbom") - if 'zicsr' in feat: - f.append("+zicsr") - if 'zifencei' in feat: - f.append("+zifencei") - if 'zba' in feat: - f.append("+zba") - if 'zbb' in feat: - f.append("+zbb") - if 'zbc' in feat: - f.append("+zbc") - if 'zbs' in feat: - f.append("+zbs") + # LLVM uses the same names as TUNE_FEATURES for RISC-V extensions, so + # pass on every single-letter (except the base i) and z, s or x + # extension, in TUNE_FEATURES order to keep the result stable. Other + # tune flags (e.g. "rv", "64" or core names) aren't extensions. + for e in dict.fromkeys(d.getVar('TUNE_FEATURES').split()): + if (len(e) == 1 and e.isalpha() and e != 'i') or \ + (len(e) > 1 and e[0] in 'zsx' and e.isalnum()): + f.append("+" + e) return f llvm_features_from_tune[vardepvalue] = "${@llvm_features_from_tune(d)}" From patchwork Mon Nov 30 00:52:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106323 Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.23420.1795999968572981791 for ; Sun, 29 Nov 2026 16:52:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=YiRoodF1; spf=pass (domain: konsulko.com, ip: 209.85.219.53, mailfrom: scott.murray@konsulko.com) Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-9210f2622ccso108532546d6.3 for ; Sun, 29 Nov 2026 16:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999967; x=1796604767; 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:content-type; bh=nvnzUQuQMN08BSpRGdQANn8Kzym9QYuHj6Hg2Nr9cT0=; b=YiRoodF1gpQIaknrE8F/K7UWSJz4nJ3A+Tw28UObTPgQR5nQIHcK5zPVlTzU7aRuZ/ SeB0W0uFCk6qR2v1od5Ytpz4sVJEB0+98duZXQA3vqTg6JPxRrZes4vlun1bDoM4qOyd 2xRpy9R3L6DXdF9WFgtT9mAYF9t6+NqrnbfGM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999967; x=1796604767; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=nvnzUQuQMN08BSpRGdQANn8Kzym9QYuHj6Hg2Nr9cT0=; b=M5Pz4hE4M1Mz9hwVJKgJT2th0xo0uMHeb/lmTEPVZlRxpDVbzpnNW5TnvoNKrvwvOp I6JVOPJEBbvnD5ahBq88iw7dNWytml6Toh5ih2Kq0mGBsdt89B8105e1Uy1k5brkRtoC L1UXdDcS06ZDGHkdNazwRTHtWAPIzZFhMHvMUtOJ5XIaxGUbyk5WztpdBA6P/iL7DT+/ EaAJrBYc/JiS9YlOHzna+16ZD2flNbm/Ge1OrZWQHrDskVllmkjjNOriaunDPW3IEh1j 6+WKTuGLj2Zv9/qnxjL3/N33KFiV7KiKWGnfkDG7VF7Xx9KY8RU1By1R0DzjQvOz1wDi Vewg== X-Gm-Message-State: APuU4Z/gx1YpXsQUDmHY4dpp1hjADzB6FYitljq2P0zKBmg6LskvYyu5 rPT46iK/5OIKq4ap43ZMpRRHyn8SCGw9ZABDssMPYex2LOMJF2YS6oziyhZtEwT659WzxbVg+iJ 0Ro4/ X-Gm-Gg: AZFdTZeBfJjXLkKy3Cnodxb5hhmHUA7peIcW2F4AmYbnde0uFLYRh1toBYXTHbfX/Y9 8qQK7GliJ4seESy0JDRbKMBg/mpihApsVlm9/+6trPL9+pciejqmIJ8MceOvOUteAIGGPwpFdiX kUEaKgOpQY0FKxpqov713cdv8vy08vrN6YbQIGZEZdQsfL3Y6hP1gaHWa/z3xlJfM800LLf/bPM lecCR+kMePNcChFfuAR4IfbNgCym7UIkdmFKjP3D/1HsSqp8ZLknPqXGqV4S7UX/hwud2F0nPkn b5KgsXDe/bC/HcwDGboJFZ0WzfBem5cTraAX92tC+LAKJEglSq7tudvDsIX06zTyYKXPXUWANuG mjAGaTNPWIPdBnxicqBSRqs0aIL05LD8JEi1FJ/Jm5FKWEf1YceXKQ4nfgUPIgsA7vlq8R72AdB rRw2BwABJ4i6l1gL8gtSYObpLMBRqXXwZLXHWRu5pxtie0WiA4Py7DvgTFkKUFo6m4tG7NWXN+5 6cxS7I/PcBfwjbnek+TjKlgfttqVxy/SR37Bu70DNeeWpEOHDC13y+rd8tqYEzvZD1L654mX9dF 8kIRUi8uhsMnhey5xaoWpsBEd8yC1x02jpps09hG/R2IFLsvJv3p3NyOU2QcYuE1MF14rEypket 40+tCx8oBfb9UOEIGQUvpbZDqM0kAlodtvEPQohlHOHX49th8JFIxIuG8Kb+7fr44IQ== X-Received: by 2002:a05:6214:4599:b0:921:fc6:bd94 with SMTP id 6a1803df08f44-9213477151bmr584774406d6.0.1795999967367; Sun, 29 Nov 2026 16:52:47 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:47 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 08/10] ptest-cargo.bbclass: run do_install_ptest_cargo as a postfunc Date: Sun, 29 Nov 2026 19:52:26 -0500 Message-ID: X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5595 From: Trevor Gamblin do_install_ptest_cargo appends to run-ptest, but run-ptest is only reset by do_install_ptest_base's cleandirs. This means that changes to its signature (e.g. by setting 'RUST_TEST_ARGS:pn-hyperfine = "--test-threads=1"' in local.conf) just append another block to run-ptest with an 'exit $rc' in between, so changed test arguments aren't actually used. Run do_install_ptest_cargo as a postfunc for do_install_ptest_base instead so that changes are always reflected. do_install_ptest_cargo is removed as a task. Tested by setting RUST_TEST_ARGS in local.conf as described above. Here is a snippet of what the double-appended run-ptest script would look like without this fix: |if ! /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7 |then | rc=1 | echo "FAIL: /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7" |else | echo "PASS: /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7" |fi |exit $rc | |echo "" |echo "## starting to run rust tests ##" |if [ -z "$rc" ]; then rc=0; fi |if ! /usr/lib/hyperfine/ptest/execution_order_tests-0fccc0f22d97e11e --test-threads=1 |then | rc=1 | echo "FAIL: /usr/lib/hyperfine/ptest/execution_order_tests-0fccc0f22d97e11e" |else AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin Signed-off-by: Mathieu Dubois-Briand (adapted from oe-core commit 24a1b261834bbbe1b131dd31e5e2454f130250b3) Signed-off-by: Scott Murray --- classes-recipe/ptest-cargo.bbclass | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/classes-recipe/ptest-cargo.bbclass b/classes-recipe/ptest-cargo.bbclass index 5cdd1c4..0173a2e 100644 --- a/classes-recipe/ptest-cargo.bbclass +++ b/classes-recipe/ptest-cargo.bbclass @@ -123,21 +123,19 @@ python do_install_ptest_cargo() { shutil.chown(os.path.join(root, f), "root", "root") } -do_install_ptest_cargo[dirs] = "${B}" -do_install_ptest_cargo[doc] = "Create or update the run-ptest script with rust test binaries generated" do_compile_ptest_cargo[dirs] = "${B}" do_compile_ptest_cargo[doc] = "Generate rust test binaries through cargo" addtask compile_ptest_cargo after do_compile before do_compile_ptest_base -addtask install_ptest_cargo after do_install_ptest_base before do_package -python () { - if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d): - d.setVarFlag('do_install_ptest_cargo', 'fakeroot', '1') - d.setVarFlag('do_install_ptest_cargo', 'umask', '022') +# Run as part of do_install_ptest_base so its cleandirs always provides a fresh +# run-ptest to append to. As a separate task, a signature change (e.g. +# RUST_TEST_ARGS) re-ran only this step, appending a second block after the +# first "exit $rc". +do_install_ptest_base[postfuncs] += "do_install_ptest_cargo" +python () { # Remove all '*ptest_cargo' tasks when ptest is not enabled if not(d.getVar('PTEST_ENABLED') == "1"): - for i in ['do_compile_ptest_cargo', 'do_install_ptest_cargo']: - bb.build.deltask(i, d) + bb.build.deltask('do_compile_ptest_cargo', d) } From patchwork Mon Nov 30 00:52:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106327 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23236.1795999969345138265 for ; Sun, 29 Nov 2026 16:52:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=nh6zLiey; spf=pass (domain: konsulko.com, ip: 209.85.160.170, mailfrom: scott.murray@konsulko.com) Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-55d03bfd477so112398081cf.1 for ; Sun, 29 Nov 2026 16:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999968; x=1796604768; 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:content-type; bh=GDC6k3i9BmW5UKUsV3R+VUoZFHhlGEnxzfpT5nWiUkc=; b=nh6zLieyrX5FHvH/6E/s/jdHqGgsvsea3SO3dMPgejizSpGxjQxutFiA+SdxIt4/bf tdcGJLJgk27NksubdvjEXKyYAkO59rRoHDufmDXkGv89fO0F3USk3W0zy7zvX+F4XWli 3aD+i4ppKOn0VubRNFnvMKnwsd6vdBrSVZuvU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999968; x=1796604768; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=GDC6k3i9BmW5UKUsV3R+VUoZFHhlGEnxzfpT5nWiUkc=; b=m/V0JRqYAXvI6/7tRiqb4Wch7f8o3A/3aNw3TYC/7FUO1Y7lexqGl6tSxy3quHB1/4 Jz0fgqlroWCPJBQe6Bi0F7qUl1d55jBSf4R2VfUGhdTYQdbfFA6R1GIgTjvme8ov+Hy4 Kp8IaVHfMFAax61/N3H78Iv8+07v6gTFVmPOn0D5wHl6hnJ07Vvpk3x1FNnWJ63eSU/q wr35QBpCTTriTB124mpfeLf2Ti2THei/hlryKZTRuPj0SQ9YU3KzcGoCn7nR+1tlTi+7 OxKnq7CZS+0sI9F6BU0uxHlXottX77Kacyj77VmImBElzEsP55gnTwuQTcLIeyu1V5PN uciQ== X-Gm-Message-State: APuU4Z8FArZJZIAwLcLxQ5EfTstZM1o7qB0gB0jEj2OGOQKxcRlv8Yr8 /edrxrfjd6Md0F6ckFbU2Q57as2IdzpIlLvcO9HMbB7SWgg6h1PqxJejcDiH/hFPmHCfJf1Ohzv bCNJq X-Gm-Gg: AZFdTZfZi2PiDfFc4B5oALl3UQaf7QDKy1NyYuIQ0GYVugjRA5B9xxMzJQPta6g/Gh4 RE2Pt+SHg4nTogwXExPY37CmipmBe/xv/FDSral0S/2ZtfdOrERlmr2jV1cmqQP+ibA27xOhfc+ V6MMbeIUEFJsC7Yh4XGj7YQ75j6kT/LtIjZaVpl76CTEHzQbSPnHk3RrtAmbcM1gi/4IOAp3BLM C85MN/RxLXK/HUG52Zt/XnkE+PCi1cT+B/YWwzY/MV4Wv0J+WynnGra+c1Wgcz76DLwKPe4/gEq vbGmtfh0sksAthezGn5Aif0LsgDCSLGqpEQ8EeriQUbFtf1lxUitv2D1DafukrZ9DJX5PZWDmDn G2AkqlHMF36DlT0C6SdatttR3bNRvaJoTQ+U4Uj09g/1lKW6MY+OEkG7JtMu0oIbS70e+fd6fMZ KUrrx1Ph1CruemU497ZBg6iyTcAYLqsOcrT3Igy9tRh2gLg2/W7X30Si+EzyDm4dub4N7b+4YOP yjbOQY5V35dKQX8ln0gzBMoSi0kvoL7ZdF+TO8vTWBGNV9gE8pEy9t+hpmau6FX1fgm3Dh4D5wZ 1hYs68fsVNC2lzoylhbAM8R3gdqChSemZ6DJN6M+b+CrD6bls77O3NsN2XwMbpRCL6pmZtn4LSu w9nlFRk4NTuIbKEzcdRdw2d7tWExFrWgkyaov9gOdcyZvP1wsoXIuxebK+6CayzRspQ== X-Received: by 2002:ac8:6101:0:b0:55d:32ed:38be with SMTP id d75a77b69052e-55d76aad556mr612169841cf.56.1795999968184; Sun, 29 Nov 2026 16:52:48 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:47 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 09/10] librsvg: make ptest symlink creation idempotent Date: Sun, 29 Nov 2026 19:52:27 -0500 Message-ID: <784732215a0ed33c322499df2446492e80a934ba.1795997683.git.scott.murray@konsulko.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5596 From: Trevor Gamblin do_install_ptest:append() for librsvg was creating a link for 'ptest' outside of PTEST_PATH, so it wasn't being removed during cleanup and would remain present on rebuild. This created a self-referencing link, leading to errors like: | 1509: follow_symlinks=follow_symlinks) | 1510: | 1511:def get_terminal_size(fallback=(80, 24)): | 1512: """Get the size of the terminal window. |Exception: OSError: [Errno 40] Too many levels of symbolic links: '/home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/image/usr/lib/librsvg/ptest/ptest' | |ERROR: Logfile of failure stored in: /home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/temp/log.do_install_ptest_base.2703564 |ERROR: Task (/home/tgamblin/workspace/ypbuilds/riscv-maint/layers/openembedded-core/recipes-gnome/librsvg/librsvg_2.63.4.bb:do_install_ptest_base) failed with exit code '1' Treat the link name as a normal file if it's a directory ('-n'; i.e. don't follow the link) and force-overwrite it ('-f') so that the link gets recreated on subsequent runs. AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin Signed-off-by: Mathieu Dubois-Briand (adapted from oe-core commit ae48606b96535839faa919765721b0de3a22a7d9) Signed-off-by: Scott Murray --- recipes-gnome/librsvg/librsvg_2.63.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-gnome/librsvg/librsvg_2.63.4.bb b/recipes-gnome/librsvg/librsvg_2.63.4.bb index 6e88270..a6fd4ce 100644 --- a/recipes-gnome/librsvg/librsvg_2.63.4.bb +++ b/recipes-gnome/librsvg/librsvg_2.63.4.bb @@ -87,7 +87,7 @@ do_install_ptest:append() { # the api tests look for the required files in rsvg folder, so simulate it # with a symlink that points to the current folder ln -s . ${D}${PTEST_PATH}/rsvg - ln -s ptest ${D}${PTEST_PATH}/../rsvg + ln -snf ptest ${D}${PTEST_PATH}/../rsvg } PACKAGES =+ "librsvg-gtk rsvg" From patchwork Mon Nov 30 00:52:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106322 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.23237.1795999969996161488 for ; Sun, 29 Nov 2026 16:52:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=bcb2ct8G; spf=pass (domain: konsulko.com, ip: 209.85.160.174, mailfrom: scott.murray@konsulko.com) Received: by mail-qt1-f174.google.com with SMTP id d75a77b69052e-55c38cdd5b7so96533931cf.2 for ; Sun, 29 Nov 2026 16:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795999969; x=1796604769; 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:content-type; bh=1GqdQ/ROLlxtuDfINUakVo6V0I2xL1J3vajwnTt6XVA=; b=bcb2ct8GkZRIvrfssFAF6N2TGfj7793FbN8sDtqvXgCk66EkyNKVd1tSpN2RaBzSgi +BJDhKXk7zOkmNbALQrOsjFvGGO+6qpoXDOn/OMdO816nFwDUwJ23nY0wBFJj5+RW6om VZB6x5CawXQvmzs5xes6ffPj9m7CCxqWtVVHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795999969; x=1796604769; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=1GqdQ/ROLlxtuDfINUakVo6V0I2xL1J3vajwnTt6XVA=; b=uOv6PbJkzznwss59vt9HCy8ZBrU4IGGvbrjscYpSxzcNFIksY9JWaSmGF5Am/oFdYl 78FfgPaaPnK4hgvmotVg87wfY2WvtzQ665Lqr8jDNub4/wtihbD9UcWxNbq9KIDxec3e 98zAGOlorrcplschfiRlgayQPJlBmYX60N5Xmv2ZsMC9c+YYcs6Ocd5EXA29s9hHDtF7 GZqBS/QTj8ic2r8vD0uXc+dqcty7EQZcdOV2wsOjhdEaNleunMQzfN2t/df9z/CHQXch 6YWCAZuq26QZff+ylzMMEEVUDAItxrDx1KeEf9NNogn7XkCQsfBeTFgz1nOXxu2/JpFC eC/w== X-Gm-Message-State: APuU4Z+4QQfIYC0JMKn8xgm92ZtLnaqFZqabTuoag13gweVphTc1KPlj 1Wv20OMZPoRqCRea3vCt9fq1UETLlQ80BTFyHHIHvKfbEn67sxV4ucbmzHGWsVyFUcnToYt3zl2 FjXfO X-Gm-Gg: AZFdTZcg29Qff+Jsw1bg/3i5gZJiC4HXeZZJ9ilAWJYU4/NsCGixBNMkB2e2e5V9MZx IP+ONheBk9NzzBhIC5XVq7M4ludY7KjDytG43Ca/mZI4txD3KWhN95jKU3HGfZeBA1+Y8/ai69D fjBCNvJ+hcmNvzs7LxZEC5XFmk+CYVIxPk0Ra0C9N8xQ4GVFElJQsqepU+DlUutDwA2vFowPKGh Gc4N4Qa0IMO9xY/pgbNOjbloMpFrhLDxzNCb3zu11DmVQUd3ACjEtEf57KLSPey+rPSUDMMCq8v d3lJqdaaxDEXkmR2rD1EVjz9f73BPF92T/zoSnHblz1MClyznMeWme+Tp2LIRc3FhRGLLu1NKf/ ShCJuCaGMFWrYgAZ3fShFDEzFsNM51LmgGagmzT6K0iieVwTELGM694aNIppRrTxuTzlBddrQPj b3RPT7vKwKOdzPpmF6tS/oSzwQ8fflLmgMHAGcvqUugHKiG0Wj5Go5BWpcJleIJP+Jhm61cbnh5 tXhFKZq35LlFLTnj6jLE0PAeFUIKgMG93ZBWyVCffDYbaQIo7ZD0oeDDodGL3bcisN+4OsI1dL4 OYuryNihiCVT3LO0Y/DgnF0vwlzSsId80WFOzqHNdtDTIEvpEJw5RhGik2aFXc8qQovAiXfbO89 dRJm5Vx107aVTC9KBIIb812cYjkDvBGS/w5Zmo609/VugQQdmgNZKNVSgxdhgZY6CEQ== X-Received: by 2002:a05:622a:988:b0:55d:5ba6:bf25 with SMTP id d75a77b69052e-55d767ab475mr619362651cf.0.1795999968810; Sun, 29 Nov 2026 16:52:48 -0800 (PST) Return-Path: Received: from ghidorah.spiteful.org (107-179-213-3.cpe.teksavvy.com. [107.179.213.3]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-921787fd72asm141946796d6.12.2026.11.29.16.52.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 16:52:48 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-lts-mixins][wrynose/rust][PATCH 10/10] ptest-cargo.bbclass: don't follow symlinks when chowning Date: Sun, 29 Nov 2026 19:52:28 -0500 Message-ID: X-Mailer: git-send-email 2.56.1 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 00:52:51 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5597 From: Trevor Gamblin Use os.lchown() instead of shutil.chown(), as the former follows symlinks. os.lchown changes the owner of the link itself. shutil.chown() didn't add the follow_symlinks option until Python 3.13[1], so we can't just add that argument. [1]: https://docs.python.org/3/library/shutil.html#shutil.chown AI-Generated: Uses Claude Opus 5.5 Signed-off-by: Trevor Gamblin Signed-off-by: Mathieu Dubois-Briand (adapted from oe-core commit c88df9d0ef9b1418d96fea347475c331e54d5dd0) Signed-off-by: Scott Murray --- classes-recipe/ptest-cargo.bbclass | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/classes-recipe/ptest-cargo.bbclass b/classes-recipe/ptest-cargo.bbclass index 0173a2e..340fccf 100644 --- a/classes-recipe/ptest-cargo.bbclass +++ b/classes-recipe/ptest-cargo.bbclass @@ -115,12 +115,11 @@ python do_install_ptest_cargo() { if not script_exists: os.chmod(ptest_script, 0o755) - # this is chown -R root:root ${D}${PTEST_PATH} + # Equivalent to 'chown -R root:root ${D}${PTEST_PATH}, which doesn't follow + # symlinks for root, dirs, files in os.walk(ptest_dir): - for d in dirs: - shutil.chown(os.path.join(root, d), "root", "root") - for f in files: - shutil.chown(os.path.join(root, f), "root", "root") + for name in dirs + files: + os.lchown(os.path.join(root, name), 0, 0) } do_compile_ptest_cargo[dirs] = "${B}"