Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Alex Kiernan <alex.kiernan@gmail.com>
Cc: openembedded-core@lists.openembedded.org,
	Frederic Martinsons <frederic.martinsons@gmail.com>
Subject: Re: [OE-Core][PATCH v3 03/10] meta-selftest: hello-rs: Simple rust test recipe
Date: Fri, 29 Dec 2023 09:07:02 +0100	[thread overview]
Message-ID: <202312290807021ede5c85@mail.local> (raw)
In-Reply-To: <20231228145917.18147-4-alex.kiernan@gmail.com>

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 <alex.kiernan@gmail.com>
> ---
> 
> (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 <alexk@zuma.ai>
> +Date: Wed, 27 Dec 2023 09:55:48 +0000
> +Subject: [PATCH] Greet "OE-Core"
> +
> +Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> +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


  reply	other threads:[~2023-12-29  8:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-28 14:59 [OE-Core][PATCH v3 00/10] Stepwise rust upgrade 1.71.1 -> 1.74.1 Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 01/10] devtool: selftest: Fix test_devtool_modify_git_crates_subpath inequality Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 02/10] devtool: selftest: Fix test_devtool_modify_git_crates_subpath bbappend check Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 03/10] meta-selftest: hello-rs: Simple rust test recipe Alex Kiernan
2023-12-29  8:07   ` Alexandre Belloni [this message]
2023-12-29  8:38     ` Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 04/10] devtool: selftest: Swap to hello-rs for crates testing Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 05/10] zvariant: Drop recipe Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 06/10] rust: Upgrade 1.71.1 -> 1.72.0 Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 07/10] rust: Upgrade 1.72.0 -> 1.72.1 Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 08/10] rust: Upgrade 1.72.1 -> 1.73.0 Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 09/10] rust: Upgrade 1.73.0 -> 1.74.0 Alex Kiernan
2023-12-28 14:59 ` [OE-Core][PATCH v3 10/10] rust: Upgrade 1.74.0 -> 1.74.1 Alex Kiernan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202312290807021ede5c85@mail.local \
    --to=alexandre.belloni@bootlin.com \
    --cc=alex.kiernan@gmail.com \
    --cc=frederic.martinsons@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox