From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.32744.1796206518730756246 for ; Wed, 02 Dec 2026 02:15:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@pbarker.dev header.s=fm2 header.b=XDhWdfPA; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=PcLi03a2; spf=pass (domain: pbarker.dev, ip: 202.12.124.150, mailfrom: paul@pbarker.dev) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 1A8391D000EE for ; Wed, 2 Dec 2026 05:15:18 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Wed, 02 Dec 2026 05:15:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pbarker.dev; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1796206517; x=1796292917; bh=r3pPD+mJVotELcftnzIx2p7eJkom/ynnBz1naE2vSLk=; b= XDhWdfPAxZtahkYCphUNU/0M7QuKCj8tsDdxXi8/QgUdm7I8TQImtRU3A+YKE572 srJMYwZm5S8gO7sr8F0ofnOIM14OaDNKDStqv6oFaNx1GW73+5uvKPXb5u6LQKTa WQoLEona0eFgFfRZgYCM+Rf6+Ox7RFCAjOZtCifMoUtrTnz0c/21800ckzzN30Sb ndJ1nvbTNLUOBbAdHtLW27vjzE31H6Q4ovZQagLecrq71K6nfs+g94ZWNl0yGOd8 d5e09GWJCEXb0MZggtxDgUTDisVN+YXBiD0L1LryzCLVLjDYmNx+B5KKj4QdmZG8 QCotC7eiTeBBZscuW8zd4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1796206517; x= 1796292917; bh=r3pPD+mJVotELcftnzIx2p7eJkom/ynnBz1naE2vSLk=; b=P cLi03a2rq0oKH7Y8/P8SRym8Xvq7e4tWA9HRiS/ha3KoU0YQzYsHbMBTMZbvy6KR UrecMMw4k+Hmxkqamivhpuk3LKksAgel4RL8V+Z90PfWGlExrcJxqPoQ0smkf5Qz KVeTh9Ukvt27ALsZjDofi1sBQvj7szb6763S6cUfJyWbAzb+oexnJqDCmdSbu8Xe ZNSX363Xp1y7KIdGu9KNYi3OvSHF5OBuLugVU08+poJ9XobwaGFFooeJoXkhNkKP aMdaANeV/wB+f/Zh5fMckrkIspFR/sTpY/l7io2eeIwvB1/FgjkQmKS8mT5sHYnq pmqEmrFDRaAQeLhNzkEdA== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pbarker.dev a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796206517; d=pbarker.dev; mf=PHBhdWxAcGJhcmtlci5kZXY+; rt=PG9wZW5lbWJlZGRlZC1jb3JlQGxpc3RzLm9wZW5lbWJlZGRlZC5vcmc+; s=fm2:rsa-sha256:Jpz/hT3hR8U68LP3G7CxMxMauY7D4/mrZ55udWvGAkZry7t saZSkXe7CXByPLFu38Ahc83JQIjVkWKgYWWM7kurcp8RWskLn/uEFEF3oPuT0ueM Gd7F2shwL1rl/Pn3MABouRIrZOp1BevJpoflTaAiVRidLfmq7UIFBJ1pa873CXOF HrUPAC6C1caVlq2IjC6mZRcLPTqhklSskaOvU21sCBcw/5gy10El9WeTnVMP1d5e xxoEEbsbqjPHiKRH59gWN/9V1+mjaxWj1LuJmjfyr+EwMfZ1IYBGK7zGgisTYfSs /rjyLpOv/NGGy7sV8sKRGYsvFF3OIB1bvGRBZZg==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-transfer-encoding,content-type,date,feedback-id, from,in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:znJ2YuFEGf93euF6Kh/9AjdVY2HokgpOkXINH+Hc+Nk=:EHA9fuMp83ue3eX1chk6Tvin9D8sH5hoGlR849srjQE=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFSIPxiWILvi+XHdQU0TrfIsGUj8YSHbTZFZz2+XXl8M39nSpFHrpUfflaQdQPqj2 4UUMB5J468YLv4uxaQDsjhRCXEGNn/bK0RHgL6BC4cCGadUttbEMOoiJkEQOFZOHcrew0G R9pnsyHijOywl3xbgBCuu9KQV/2IRfuww9FdryC95c22jJHuP/4lc9nFsOm9AyuN+ULnnw /Z9Iq7gEtjBVf+Xln0o7R2wsl5y4MXwJxNXXO3zm7ukw4qJ0qan4fF3UWePdD6IXe8DPg5 Lwnj7zZLKQtoBysHAC8jsmBww+KJLfeQ3vpT0fb4JH6LzrhdkuYQwbTU5PuQ+JrNALLhUq xeMzjaXgTWBXp+c9QDHUYrj3QAhrUFx4rsUirm4keZ2MV/Zazzmi6irppjRn4WgU0lpIgJ A+Z/Pu2gw7gCBJbdb5861LKcBf5IG+poDWSiSKuPjGkLe7mjYv5muj88P6jBQ4XG4YeYuN lvOHpryCLdaGICNjZZyx36+gMj9N8eIAsp0IJJ7eU3o9d6arbZ9tfbLi+NukIuoaCG7f0g OS0x0NMjo0ulwPBidXzCqQFT5IiDoGU6kcLKZ/y5A0ZWhmoydLULvViHmWQDDMk1eLo1/6 ur88SOFWU4yR4cT4aEaaqXezy3ThWddzZH8eypvuKBZihuqAAPqlR2IcG87Q X-ME-Proxy: Feedback-ID: i51494658:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Dec 2026 05:15:16 -0500 (EST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 02 Dec 2026 10:15:15 +0000 Message-Id: From: "Paul Barker" To: "Marco Felsch" Cc: , , , Subject: Re: [OE-core] [PATCH v4 3/3] classes/cargo-update-recipe-crates: support multiple Cargo.lock search directories X-Mailer: aerc 0.22.0 References: <20261130-mfe-multi-cargo-lock-files-v4-0-a3ebce5cc283@pengutronix.de> <20261130-mfe-multi-cargo-lock-files-v4-3-a3ebce5cc283@pengutronix.de> <18ED17AB19C3015E.2226965@lists.openembedded.org> In-Reply-To: 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 ; Wed, 02 Dec 2026 10:15:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251807 On Tue Dec 1, 2026 at 4:25 PM GMT, Marco Felsch wrote: > On 26-12-01 10:37, Marco Felsch wrote: >> Hi Paul, >>=20 >> On 26-11-30 21:24, Paul Barker wrote: >> > Hi Marco, >> >=20 >> > Thanks for the v4 series, patches 1/3 & 2/3 are good, I have a couple = of >> > comments on this one. > > [...] > >> > > Keep the existing CARGO_LOCK_SRC_DIR and extend it to support a >> > > space-separated list of directories, to allow: >> > > >> > > CARGO_LOCK_SRC_DIR =3D "${S} ${STAGING_LIBDIR_NATIVE}/rustlib/src/= rust/library" >> >=20 >> > In this example you'd need to ensure ${STAGING_LIBDIR_NATIVE} is >> > populated before do_update_crates runs. It's probably worth modifying >> > the `addtask` line so do_update_crates always runs after >> > do_prepare_recipe_sysroot. >>=20 >> My rust package which uses this mechanism has the following line: >>=20 >> | do_update_crates[depends] +=3D "rust-native:do_populate_sysroot" >>=20 >> I would still need this line with your proposed change, right? If this >> is the case, what benefit would have a do_prepare_recipe_sysroot? > > With v5 this is fixed now. I see that {PN}:do_populate_sysroot didn't > fixed your point. Sorry for the noise. > >> > We should also consider what should happen if one of these directories >> > is missing or doesn't contain a Cargo.lock file. Should that cause an >> > error? >>=20 >> That's a good point, it should have the same behavior as it is right now >> with the single directory use-case: >> - each specified path need at least one Cargo.lock file >> - each specified path must exist >> =3D> else an error is thrown. >>=20 >> Do you agree? > > I've implemented exactly this beavhior in v5. Should be fine since it > mimics the current status. > >> > > This way the behavior can be backported. >> > > >> > > Crates found in multiple lockfiles are listed only once, in the sect= ion >> > > of the first Cargo.lock containing them; conflicting checksums for t= he >> > > same crate version now fail the task. The crates.io warning now name= s the >> > > lockfile it came from. Output for recipes with a single lockfile is >> > > unchanged. >> >=20 >> > The "first" Cargo.lock file mentioning a particular crate will depend = on >> > the order in which Cargo.lock files are parsed. I don't think os.walk(= ) >> > explores subdirectories in a deterministic order, can we modify this s= o >> > that the output is deterministic? >>=20 >> Please see the mail from Antoine: >> https://lore.kernel.org/all/CAMPh3wqn5VMvufgZyUC3+=3Dyzm3b0n3aciiROqnTYG= Dcsg2wgxg@mail.gmail.com/ >>=20 >> This is already a bug in the current implementation. Seems like nobody >> cared till now. Of course we can fix this but this for sure causes >> changes on $someSpecificHostOs. For this reason I would like to leave >> this discussion out of this series. > > I've added a deterministic fixes patch to the v5. > > Sorry for pushing so fast, but I wanted to get this done because other > recipes rely on this mechanism for possible static builds. No problem, v5 looks good to me. Best regards, --=20 Paul Barker