From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C819EC46CD4 for ; Fri, 29 Dec 2023 08:07:14 +0000 (UTC) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by mx.groups.io with SMTP id smtpd.web10.141706.1703837225681971752 for ; Fri, 29 Dec 2023 00:07:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=XCqvRzG/; spf=pass (domain: bootlin.com, ip: 217.70.183.201, mailfrom: alexandre.belloni@bootlin.com) Received: by mail.gandi.net (Postfix) with ESMTPSA id 005B21BF205; Fri, 29 Dec 2023 08:07:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1703837223; 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: in-reply-to:in-reply-to:references:references; bh=5VP5Zj1/uBfwgFiHkzvlyQE7XxS8WadRrzYOo8ROivA=; b=XCqvRzG/3psTTQqkXPRzC5kcg5Is1cT010tzHG7HYM2wWEjDZT76n8ELZn4RipKSE/EPWF zjRRNVpPS32/bhc5JB6rwXLkY/Fj+/AFWr6GQpLUcHjsJSg64HaIGJ4rPcxC/MhsRzhY6S cFgzrsWYNgi/NbUcI5hhbuEVC8eJK3rNiaoGEdzJfjZi59EzszungWD6eMbsnkkv1vdwc0 sA3hTI+C1b3sdhvxy7Rluk5+dk39/z9TYCotc8+7v25N9pFVZt4nGCzKdesTF775Bx2xa8 z6B5G6c6tPEMkUcjqCXY3vDPpXRCEHRS7t01rmfuhIHtqYl/IP0HwNo0b8YpWg== Date: Fri, 29 Dec 2023 09:07:02 +0100 From: Alexandre Belloni To: Alex Kiernan Cc: openembedded-core@lists.openembedded.org, Frederic Martinsons Subject: Re: [OE-Core][PATCH v3 03/10] meta-selftest: hello-rs: Simple rust test recipe Message-ID: <202312290807021ede5c85@mail.local> References: <20231228145917.18147-1-alex.kiernan@gmail.com> <20231228145917.18147-4-alex.kiernan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231228145917.18147-4-alex.kiernan@gmail.com> X-GND-Sasl: alexandre.belloni@bootlin.com List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 29 Dec 2023 08:07:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/193000 Hello Alex, This fails the reproducibility test: https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/4159/steps/13/logs/stdio https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20231228-881dx278/packages/diff-html/ On 28/12/2023 14:59:10+0000, Alex Kiernan wrote: > Signed-off-by: Alex Kiernan > --- > > (no changes since v1) > > .../hello-rs/hello-rs-crates.inc | 8 +++++++ > .../hello-rs/0001-Greet-OE-Core.patch | 24 +++++++++++++++++++ > .../hello-rs/hello-rs_0.1.0.bb | 19 +++++++++++++++ > 3 files changed, 51 insertions(+) > create mode 100644 meta-selftest/recipes-extended/hello-rs/hello-rs-crates.inc > create mode 100644 meta-selftest/recipes-extended/hello-rs/hello-rs/0001-Greet-OE-Core.patch > create mode 100644 meta-selftest/recipes-extended/hello-rs/hello-rs_0.1.0.bb > > diff --git a/meta-selftest/recipes-extended/hello-rs/hello-rs-crates.inc b/meta-selftest/recipes-extended/hello-rs/hello-rs-crates.inc > new file mode 100644 > index 000000000000..9646482b2875 > --- /dev/null > +++ b/meta-selftest/recipes-extended/hello-rs/hello-rs-crates.inc > @@ -0,0 +1,8 @@ > +# Autogenerated with 'bitbake -c update_crates hello-rs' > + > +# from Cargo.lock > +SRC_URI += " \ > + crate://crates.io/figlet-rs/0.1.5 \ > +" > + > +SRC_URI[figlet-rs-0.1.5.sha256sum] = "4742a071cd9694fc86f9fa1a08fa3e53d40cc899d7ee532295da2d085639fbc5" > diff --git a/meta-selftest/recipes-extended/hello-rs/hello-rs/0001-Greet-OE-Core.patch b/meta-selftest/recipes-extended/hello-rs/hello-rs/0001-Greet-OE-Core.patch > new file mode 100644 > index 000000000000..7569ccef7bbb > --- /dev/null > +++ b/meta-selftest/recipes-extended/hello-rs/hello-rs/0001-Greet-OE-Core.patch > @@ -0,0 +1,24 @@ > +From 3aea1ece0ca6ac0bf0ffe42736827af22966f767 Mon Sep 17 00:00:00 2001 > +From: Alex Kiernan > +Date: Wed, 27 Dec 2023 09:55:48 +0000 > +Subject: [PATCH] Greet "OE-Core" > + > +Signed-off-by: Alex Kiernan > +Upstream-Status: Inappropriate > +--- > + src/main.rs | 2 +- > + 1 file changed, 1 insertion(+), 1 deletion(-) > + > +diff --git a/src/main.rs b/src/main.rs > +index f4a310758b19..224eca65c38d 100644 > +--- a/src/main.rs > ++++ b/src/main.rs > +@@ -3,7 +3,7 @@ use hello_lib::greet; > + > + fn main() { > + let standard_font = FIGfont::standard().unwrap(); > +- let greeting = greet(None); > ++ let greeting = greet(Some("OE-Core")); > + let figure = standard_font.convert(&greeting); > + println!("{}", figure.unwrap()); > + } > diff --git a/meta-selftest/recipes-extended/hello-rs/hello-rs_0.1.0.bb b/meta-selftest/recipes-extended/hello-rs/hello-rs_0.1.0.bb > new file mode 100644 > index 000000000000..0046b2ca0356 > --- /dev/null > +++ b/meta-selftest/recipes-extended/hello-rs/hello-rs_0.1.0.bb > @@ -0,0 +1,19 @@ > +SUMMARY = "Simple hello world example" > +HOMEPAGE = "https://github.com/akiernan/hello-bin" > +LICENSE = "Unlicense" > +LIC_FILES_CHKSUM = "file://LICENSE;md5=7246f848faa4e9c9fc0ea91122d6e680" > + > +SRC_URI = "git://github.com/akiernan/hello-bin.git;protocol=https;branch=main;subpath=rust \ > + file://0001-Greet-OE-Core.patch \ > + git://github.com/akiernan/hello-lib.git;protocol=https;branch=main;name=hello-lib;destsuffix=hello-lib;type=git-dependency \ > + " > +SRCREV = "d3d096eda182644868f8e7458dcfa538ff637db3" > + > +SRCREV_FORMAT .= "_hello-lib" > +SRCREV_hello-lib = "59c84574e844617043cf337bc8fa537cf87ad8ae" > + > +S = "${WORKDIR}/rust" > + > +inherit cargo cargo-update-recipe-crates ptest-cargo > + > +require ${BPN}-crates.inc > -- > 2.39.0 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#192985): https://lists.openembedded.org/g/openembedded-core/message/192985 > Mute This Topic: https://lists.openembedded.org/mt/103401571/3617179 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com] > -=-=-=-=-=-=-=-=-=-=-=- > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com