From patchwork Tue Dec 1 16:21:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 106845 Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.14698.1796142089386627553 for ; Tue, 01 Dec 2026 08:21:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@pengutronix.de header.s=20260414 header.b=HbTngzSR; spf=pass (domain: pengutronix.de, ip: 185.203.200.13, mailfrom: m.felsch@pengutronix.de) Received: from dude06.red.stw.pengutronix.de (dude06.red.stw.pengutronix.de [IPv6:2a0a:edc0:0:1101:1d::5c]) (Authenticated sender: relay-from-dude06.red.stw.pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id CA0F2205AD1; Tue, 01 Dec 2026 17:21:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796142082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sATJQ5vCrf4gJZSYep7Q7D7neM+rnB1t0v2/CP1DGTo=; b=HbTngzSRYYvJWnXtEzRh/GVi/EmFsp1VrQaDyD4ZqpSmknbjdcdCAqq+wIQ2+Y6zKUm7R6 ML8qfsVPrdZCUrBW1EdFzON91/1IeNrfjSzbOVGiIxj4abdC4nnW4yEwexHMZmLFjM82ka DDI984uXq54YjmZFai5rXvR09lP91RB8tcIfeejQ2RNYRWomDPv4kIrGW9P7atmZWl+RJN To55T0aQ8NIWfUt4Lb48bKxPKV1EjM+qTSB2pu801o2/Vec8aRcJKNuhj0eWAMz623fEAa oGfbJsfqgPRQsFhsuodwRPeqFY9c25lW/WFh+KxCn+C3cwD6gjwDbjSCaPkxqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796142082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sATJQ5vCrf4gJZSYep7Q7D7neM+rnB1t0v2/CP1DGTo=; b=O+BPPfo2r34S1ETEipaCGg5aRkae9XqqcxJ67V9Bq78ZwFLLPO0SX7YEFNJYt6Gb0RhX4D YvxoCKSUEx0xDIpLmjl2BHLfiHDuukOHRNdTi7JWNnmPz8E4g6IkvFX3e7j0F9Wce4JGzL RtnlNi7SK/siatMnRZ7cHWJ1CjXHukmwNtsmlVFELxq+sdfoxgzg2Dg/M48JNpYSCCKH50 7j8y+1VfkdjXD0vKnKASf+iKuv1S2ZVKqHTx756YkQ1okjc0qL4XXOGu7YHHV4jcx+r9ka gWcERJFWHXi32A3ZEtA2r12w1u5dlbw1iIJ1luiy7IVbfEkZUs62xMLiFf9ctQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=relay-from-dude06.red.stw.pengutronix.de smtp.mailfrom=m.felsch@pengutronix.de ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1796142082; a=rsa-sha256; cv=none; b=Awgjr3KvUY4EJLkdZKD3nT383eogaNktJQBgqV+TIF6jBWcaWLhrjqQIKN+Eb7fIjInxzz 684XONlpnZg5rng20PiqCck60E0+7tXViJ+IhiH0uit0KOinyQWCrk9odj6y90unbn+84G 2wEnHsU8VAgcWRJJaL7WYUnMRC5yL5Ogey1v0Ff+BOJq/k6K7A8aOhAFfzV9QSap2aWix8 la5G/n5TrOnIz4NXByuc5FRhUlBQAog8F9Xt+vA5rYfzrtopCZBm2m+d50tz16NLthRd1h EokEvvvFoIWlzjrSepKtwYfxy7Ls7WUwM9r5wAOGKLSeg2MGIGx5QFV1vHwh9g== Received: from dude06.red.stw.pengutronix.de (localhost [IPv6:::1]) by dude06.red.stw.pengutronix.de (Postfix) with ESMTP id 9970F6418D1; Tue, 01 Dec 2026 17:21:22 +0100 (CET) From: Marco Felsch Date: Tue, 01 Dec 2026 17:21:18 +0100 Subject: [PATCH v5 3/4] classes/cargo-update-recipe-crates: make Cargo.lock search order deterministic MIME-Version: 1.0 Message-Id: <20261201-mfe-multi-cargo-lock-files-v5-3-6c4eae24ec27@pengutronix.de> References: <20261201-mfe-multi-cargo-lock-files-v5-0-6c4eae24ec27@pengutronix.de> In-Reply-To: <20261201-mfe-multi-cargo-lock-files-v5-0-6c4eae24ec27@pengutronix.de> To: openembedded-core@lists.openembedded.org Cc: peter.kjellerstedt@axis.com, paul@pbarker.dev, antoine.lubineau@tld-robotics.com, yocto@pengutronix.de, Marco Felsch X-Mailer: b4 0.14.2 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 ; Tue, 01 Dec 2026 16:21:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251757 os.walk() returns directory entries in filesystem order, so the order of the "# from ..." sections in the generated ${BPN}-crates.inc depends on the host the task runs on, causing spurious diffs. Sort the subdirectories in place to walk them in a stable order. The files list needs no sorting since only one Cargo.lock can exist per directory. Existing -crates.inc files with multiple Cargo.lock sections may be reordered once when they are regenerated. Link: https://lore.kernel.org/all/CAMPh3wqn5VMvufgZyUC3+=yzm3b0n3aciiROqnTYGDcsg2wgxg@mail.gmail.com/ Reported-by: Antoine Lubineau Signed-off-by: Marco Felsch --- meta/classes-recipe/cargo-update-recipe-crates.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes-recipe/cargo-update-recipe-crates.bbclass b/meta/classes-recipe/cargo-update-recipe-crates.bbclass index 9f92f0a522979fde8f0b88abdefb9a03c0c651ee..9db08c08f87a28c7be8f33fa98ceb1bdbec539c8 100644 --- a/meta/classes-recipe/cargo-update-recipe-crates.bbclass +++ b/meta/classes-recipe/cargo-update-recipe-crates.bbclass @@ -92,6 +92,9 @@ python do_update_crates() { found = False for root, dirs, files in os.walk(cargo_lock_src_dir): + # os.walk() order depends on the filesystem, sort to get a + # reproducible output across hosts + dirs.sort() # ignore git and patches directories if root.startswith(os.path.join(cargo_lock_src_dir, '.pc')): continue