* [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference
@ 2021-12-15 20:16 Matt Madison
2021-12-15 20:24 ` Khem Raj
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Matt Madison @ 2021-12-15 20:16 UTC (permalink / raw)
To: openembedded-core; +Cc: Alexander Kanavin, Khem Raj, Matt Madison
which is introducing task hash changes for some
allarch package builds, and should no longer
be needed with recent versions of qemu.
Signed-off-by: Matt Madison <matt@madison.systems>
---
meta/classes/qemu.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass
index 01a7b86ae1..333202b7c4 100644
--- a/meta/classes/qemu.bbclass
+++ b/meta/classes/qemu.bbclass
@@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary):
# this dance). For others (e.g. arm) a -cpu option is not necessary, since the
# qemu-arm default CPU supports all required architecture levels.
-QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}"
+QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}"
QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}"
QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2"
--
2.32.0
^ permalink raw reply related [flat|nested] 19+ messages in thread* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2021-12-15 20:16 [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference Matt Madison @ 2021-12-15 20:24 ` Khem Raj 2021-12-15 20:28 ` Matt Madison 2021-12-19 23:36 ` Richard Purdie 2022-01-07 11:19 ` Richard Purdie 2 siblings, 1 reply; 19+ messages in thread From: Khem Raj @ 2021-12-15 20:24 UTC (permalink / raw) To: Matt Madison, openembedded-core; +Cc: Alexander Kanavin On 12/15/21 12:16 PM, Matt Madison wrote: > which is introducing task hash changes for some > allarch package builds, and should no longer > be needed with recent versions of qemu. > This would need a qemu backport for riscv32 https://lists.nongnu.org/archive/html/qemu-riscv/2021-12/msg00220.html > Signed-off-by: Matt Madison <matt@madison.systems> > --- > meta/classes/qemu.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > index 01a7b86ae1..333202b7c4 100644 > --- a/meta/classes/qemu.bbclass > +++ b/meta/classes/qemu.bbclass > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > # qemu-arm default CPU supports all required architecture levels. > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2021-12-15 20:24 ` Khem Raj @ 2021-12-15 20:28 ` Matt Madison 0 siblings, 0 replies; 19+ messages in thread From: Matt Madison @ 2021-12-15 20:28 UTC (permalink / raw) To: Khem Raj; +Cc: Patches and discussions about the oe-core layer, Alexander Kanavin On Wed, Dec 15, 2021 at 12:24 PM Khem Raj <raj.khem@gmail.com> wrote: > > > > On 12/15/21 12:16 PM, Matt Madison wrote: > > which is introducing task hash changes for some > > allarch package builds, and should no longer > > be needed with recent versions of qemu. > > > > This would need a qemu backport for riscv32 > https://lists.nongnu.org/archive/html/qemu-riscv/2021-12/msg00220.html Thanks, Khem. I'll publish a V2 with that addition. -Matt > > > Signed-off-by: Matt Madison <matt@madison.systems> > > --- > > meta/classes/qemu.bbclass | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > index 01a7b86ae1..333202b7c4 100644 > > --- a/meta/classes/qemu.bbclass > > +++ b/meta/classes/qemu.bbclass > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > # qemu-arm default CPU supports all required architecture levels. > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2021-12-15 20:16 [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference Matt Madison 2021-12-15 20:24 ` Khem Raj @ 2021-12-19 23:36 ` Richard Purdie 2021-12-20 13:40 ` Matt Madison 2022-01-07 11:19 ` Richard Purdie 2 siblings, 1 reply; 19+ messages in thread From: Richard Purdie @ 2021-12-19 23:36 UTC (permalink / raw) To: Matt Madison, openembedded-core; +Cc: Alexander Kanavin, Khem Raj On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > which is introducing task hash changes for some > allarch package builds, and should no longer > be needed with recent versions of qemu. > > Signed-off-by: Matt Madison <matt@madison.systems> > --- > meta/classes/qemu.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > index 01a7b86ae1..333202b7c4 100644 > --- a/meta/classes/qemu.bbclass > +++ b/meta/classes/qemu.bbclass > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > # qemu-arm default CPU supports all required architecture levels. > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" Rather worryingly this breaks a few docs packages for reproducibility: http://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20211219-6kkv1f8k/packages/diff-html/ which raises a number of questions in my mind. Investigation is needed as the hashes clearly aren't encoding everything they should :(. Cheers, Richard ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2021-12-19 23:36 ` Richard Purdie @ 2021-12-20 13:40 ` Matt Madison 2021-12-20 13:44 ` Richard Purdie 0 siblings, 1 reply; 19+ messages in thread From: Matt Madison @ 2021-12-20 13:40 UTC (permalink / raw) To: Richard Purdie Cc: Patches and discussions about the oe-core layer, Alexander Kanavin, Khem Raj On Sun, Dec 19, 2021 at 3:36 PM Richard Purdie <richard.purdie@linuxfoundation.org> wrote: > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > which is introducing task hash changes for some > > allarch package builds, and should no longer > > be needed with recent versions of qemu. > > > > Signed-off-by: Matt Madison <matt@madison.systems> > > --- > > meta/classes/qemu.bbclass | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > index 01a7b86ae1..333202b7c4 100644 > > --- a/meta/classes/qemu.bbclass > > +++ b/meta/classes/qemu.bbclass > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > # qemu-arm default CPU supports all required architecture levels. > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > Rather worryingly this breaks a few docs packages for reproducibility: > > http://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20211219-6kkv1f8k/packages/diff-html/ > > which raises a number of questions in my mind. Investigation is needed as the > hashes clearly aren't encoding everything they should :(. I think the problem is in manpages.bbclass - the ":append" for adding to the pkg_postinst/pkg_postrm functions is in the wrong place. Fixing them so the ":append" is at the end, rather than before "${MAN_PKG}", causes the function text and dependencies to show up in dumpsig output again. -Matt > > Cheers, > > Richard > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2021-12-20 13:40 ` Matt Madison @ 2021-12-20 13:44 ` Richard Purdie 0 siblings, 0 replies; 19+ messages in thread From: Richard Purdie @ 2021-12-20 13:44 UTC (permalink / raw) To: Matt Madison Cc: Patches and discussions about the oe-core layer, Alexander Kanavin, Khem Raj On Mon, 2021-12-20 at 05:40 -0800, Matt Madison wrote: > On Sun, Dec 19, 2021 at 3:36 PM Richard Purdie > <richard.purdie@linuxfoundation.org> wrote: > > > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > > which is introducing task hash changes for some > > > allarch package builds, and should no longer > > > be needed with recent versions of qemu. > > > > > > Signed-off-by: Matt Madison <matt@madison.systems> > > > --- > > > meta/classes/qemu.bbclass | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > > index 01a7b86ae1..333202b7c4 100644 > > > --- a/meta/classes/qemu.bbclass > > > +++ b/meta/classes/qemu.bbclass > > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > > # qemu-arm default CPU supports all required architecture levels. > > > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > > > Rather worryingly this breaks a few docs packages for reproducibility: > > > > http://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20211219-6kkv1f8k/packages/diff-html/ > > > > which raises a number of questions in my mind. Investigation is needed as the > > hashes clearly aren't encoding everything they should :(. > > I think the problem is in manpages.bbclass - the ":append" for adding > to the pkg_postinst/pkg_postrm functions is in the wrong place. > Fixing them so the ":append" is at the end, rather than before > "${MAN_PKG}", causes the function text and dependencies to show up in > dumpsig output again. I agree, I'd come to the same conclusion and there is a patch in master-next testing on the autobuilder to see if that does resolve the issue. I've not sent it out yet as invalidating the data from a reproducibility perspective is tricky. Cheers, Richard ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2021-12-15 20:16 [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference Matt Madison 2021-12-15 20:24 ` Khem Raj 2021-12-19 23:36 ` Richard Purdie @ 2022-01-07 11:19 ` Richard Purdie 2022-01-07 12:36 ` Matt Madison 2 siblings, 1 reply; 19+ messages in thread From: Richard Purdie @ 2022-01-07 11:19 UTC (permalink / raw) To: Matt Madison, openembedded-core; +Cc: Alexander Kanavin, Khem Raj On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > which is introducing task hash changes for some > allarch package builds, and should no longer > be needed with recent versions of qemu. > > Signed-off-by: Matt Madison <matt@madison.systems> > --- > meta/classes/qemu.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > index 01a7b86ae1..333202b7c4 100644 > --- a/meta/classes/qemu.bbclass > +++ b/meta/classes/qemu.bbclass > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > # qemu-arm default CPU supports all required architecture levels. > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" I've sent a revert for this since the commit message isn't true, this is causing autobuilder failures and there was also a user report of issues with it. https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/steps/13/logs/stdio (centos7 aarch64 build) We'll have to find a different way to fix the allarch issue (more details welcome on which package shows the issue). Cheers, Richard ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-07 11:19 ` Richard Purdie @ 2022-01-07 12:36 ` Matt Madison 2022-01-07 12:51 ` Richard Purdie [not found] ` <16C7FE06BC92B547.9201@lists.openembedded.org> 0 siblings, 2 replies; 19+ messages in thread From: Matt Madison @ 2022-01-07 12:36 UTC (permalink / raw) To: Richard Purdie Cc: Patches and discussions about the oe-core layer, Alexander Kanavin, Khem Raj On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie <richard.purdie@linuxfoundation.org> wrote: > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > which is introducing task hash changes for some > > allarch package builds, and should no longer > > be needed with recent versions of qemu. > > > > Signed-off-by: Matt Madison <matt@madison.systems> > > --- > > meta/classes/qemu.bbclass | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > index 01a7b86ae1..333202b7c4 100644 > > --- a/meta/classes/qemu.bbclass > > +++ b/meta/classes/qemu.bbclass > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > # qemu-arm default CPU supports all required architecture levels. > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > I've sent a revert for this since the commit message isn't true, this is causing > autobuilder failures and there was also a user report of issues with it. Bummer. I think this is because our OLDEST_KERNEL setting for aarch64 (3.14.0) is higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/steps/13/logs/stdio > (centos7 aarch64 build) > > We'll have to find a different way to fix the allarch issue (more details > welcome on which package shows the issue). I ran into the issue with cantarell-fonts and wayland-protocols, but any recipe that inherits both allarch and meson should trigger it. In my case, I have a layer check job for meta-tegra that runs yocto-check-layer with the --machines option specifying qemux86 and one of the (aarch64) machines in my layer, and that was reporting the signature changes between the two architectures. -Matt > > Cheers, > > Richard > > > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-07 12:36 ` Matt Madison @ 2022-01-07 12:51 ` Richard Purdie [not found] ` <16C7FE06BC92B547.9201@lists.openembedded.org> 1 sibling, 0 replies; 19+ messages in thread From: Richard Purdie @ 2022-01-07 12:51 UTC (permalink / raw) To: Matt Madison Cc: Patches and discussions about the oe-core layer, Alexander Kanavin, Khem Raj On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > <richard.purdie@linuxfoundation.org> wrote: > > > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > > which is introducing task hash changes for some > > > allarch package builds, and should no longer > > > be needed with recent versions of qemu. > > > > > > Signed-off-by: Matt Madison <matt@madison.systems> > > > --- > > > meta/classes/qemu.bbclass | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > > index 01a7b86ae1..333202b7c4 100644 > > > --- a/meta/classes/qemu.bbclass > > > +++ b/meta/classes/qemu.bbclass > > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > > # qemu-arm default CPU supports all required architecture levels. > > > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > > > I've sent a revert for this since the commit message isn't true, this is causing > > autobuilder failures and there was also a user report of issues with it. > > Bummer. I think this is because our OLDEST_KERNEL setting for aarch64 > (3.14.0) is > higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/steps/13/logs/stdio > > (centos7 aarch64 build) > > > > We'll have to find a different way to fix the allarch issue (more details > > welcome on which package shows the issue). > > I ran into the issue with cantarell-fonts and wayland-protocols, but > any recipe that inherits both allarch and meson should trigger it. > > In my case, I have a layer check job for meta-tegra that runs > yocto-check-layer with the --machines option specifying qemux86 and > one of the (aarch64) machines in my layer, and that was reporting the > signature changes between the two architectures. I wonder why we don't detect that with our standard tests? :/ There may be another fix: diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass index 5bd5c44a276..0aadf7bfba6 100644 --- a/meta/classes/allarch.bbclass +++ b/meta/classes/allarch.bbclass @@ -43,6 +43,9 @@ python () { d.setVar("TARGET_LDFLAGS", "none") d.setVar("POPULATESYSROOTDEPS", "") + if bb.data.inherits_class("meson", d): + d.setVar("do_write_config", ":") + # Avoid this being unnecessarily different due to nuances of # the target machine that aren't important for "all" arch # packages. Cheers, Richard ^ permalink raw reply related [flat|nested] 19+ messages in thread
[parent not found: <16C7FE06BC92B547.9201@lists.openembedded.org>]
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference [not found] ` <16C7FE06BC92B547.9201@lists.openembedded.org> @ 2022-01-07 12:56 ` Richard Purdie 2022-01-07 14:44 ` Matt Madison 0 siblings, 1 reply; 19+ messages in thread From: Richard Purdie @ 2022-01-07 12:56 UTC (permalink / raw) To: Matt Madison Cc: Patches and discussions about the oe-core layer, Alexander Kanavin, Khem Raj On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via lists.openembedded.org wrote: > On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > > On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > > > which is introducing task hash changes for some > > > > allarch package builds, and should no longer > > > > be needed with recent versions of qemu. > > > > > > > > Signed-off-by: Matt Madison <matt@madison.systems> > > > > --- > > > > meta/classes/qemu.bbclass | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > > > index 01a7b86ae1..333202b7c4 100644 > > > > --- a/meta/classes/qemu.bbclass > > > > +++ b/meta/classes/qemu.bbclass > > > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > > > # qemu-arm default CPU supports all required architecture levels. > > > > > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > > > > > I've sent a revert for this since the commit message isn't true, this is causing > > > autobuilder failures and there was also a user report of issues with it. > > > > Bummer. I think this is because our OLDEST_KERNEL setting for aarch64 > > (3.14.0) is > > higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/steps/13/logs/stdio > > > (centos7 aarch64 build) > > > > > > We'll have to find a different way to fix the allarch issue (more details > > > welcome on which package shows the issue). > > > > I ran into the issue with cantarell-fonts and wayland-protocols, but > > any recipe that inherits both allarch and meson should trigger it. > > > > In my case, I have a layer check job for meta-tegra that runs > > yocto-check-layer with the --machines option specifying qemux86 and > > one of the (aarch64) machines in my layer, and that was reporting the > > signature changes between the two architectures. > > I wonder why we don't detect that with our standard tests? :/ > > There may be another fix: > > diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass > index 5bd5c44a276..0aadf7bfba6 100644 > --- a/meta/classes/allarch.bbclass > +++ b/meta/classes/allarch.bbclass > @@ -43,6 +43,9 @@ python () { > d.setVar("TARGET_LDFLAGS", "none") > d.setVar("POPULATESYSROOTDEPS", "") > > + if bb.data.inherits_class("meson", d): > + d.setVar("do_write_config", ":") > + > # Avoid this being unnecessarily different due to nuances of > # the target machine that aren't important for "all" arch > # packages. > > Sorry, that isn't quite right. We want to just remove the append to write_config which generates the qemu wrapper which will probably need a little more invasive juggling of the code to make it easier... Cheers, Richard ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-07 12:56 ` Richard Purdie @ 2022-01-07 14:44 ` Matt Madison 2022-01-08 14:34 ` Richard Purdie 0 siblings, 1 reply; 19+ messages in thread From: Matt Madison @ 2022-01-07 14:44 UTC (permalink / raw) To: Richard Purdie Cc: Patches and discussions about the oe-core layer, Alexander Kanavin, Khem Raj On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie <richard.purdie@linuxfoundation.org> wrote: > > On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via lists.openembedded.org > wrote: > > On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > > > On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > > > > which is introducing task hash changes for some > > > > > allarch package builds, and should no longer > > > > > be needed with recent versions of qemu. > > > > > > > > > > Signed-off-by: Matt Madison <matt@madison.systems> > > > > > --- > > > > > meta/classes/qemu.bbclass | 2 +- > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > > > > index 01a7b86ae1..333202b7c4 100644 > > > > > --- a/meta/classes/qemu.bbclass > > > > > +++ b/meta/classes/qemu.bbclass > > > > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > > > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > > > > # qemu-arm default CPU supports all required architecture levels. > > > > > > > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > > > > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > > > > > > > I've sent a revert for this since the commit message isn't true, this is causing > > > > autobuilder failures and there was also a user report of issues with it. > > > > > > Bummer. I think this is because our OLDEST_KERNEL setting for aarch64 > > > (3.14.0) is > > > higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). > > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/steps/13/logs/stdio > > > > (centos7 aarch64 build) > > > > > > > > We'll have to find a different way to fix the allarch issue (more details > > > > welcome on which package shows the issue). > > > > > > I ran into the issue with cantarell-fonts and wayland-protocols, but > > > any recipe that inherits both allarch and meson should trigger it. > > > > > > In my case, I have a layer check job for meta-tegra that runs > > > yocto-check-layer with the --machines option specifying qemux86 and > > > one of the (aarch64) machines in my layer, and that was reporting the > > > signature changes between the two architectures. > > > > I wonder why we don't detect that with our standard tests? :/ > > > > There may be another fix: > > > > diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass > > index 5bd5c44a276..0aadf7bfba6 100644 > > --- a/meta/classes/allarch.bbclass > > +++ b/meta/classes/allarch.bbclass > > @@ -43,6 +43,9 @@ python () { > > d.setVar("TARGET_LDFLAGS", "none") > > d.setVar("POPULATESYSROOTDEPS", "") > > > > + if bb.data.inherits_class("meson", d): > > + d.setVar("do_write_config", ":") > > + > > # Avoid this being unnecessarily different due to nuances of > > # the target machine that aren't important for "all" arch > > # packages. > > > > > > Sorry, that isn't quite right. We want to just remove the append to write_config > which generates the qemu wrapper which will probably need a little more invasive > juggling of the code to make it easier... Your patch to disable the qemu wrapper for allarch looks like a good solution. Hopefully, that will work OK across the board. Thanks, -Matt > > Cheers, > > Richard > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-07 14:44 ` Matt Madison @ 2022-01-08 14:34 ` Richard Purdie 2022-01-08 15:10 ` Matt Madison 0 siblings, 1 reply; 19+ messages in thread From: Richard Purdie @ 2022-01-08 14:34 UTC (permalink / raw) To: Matt Madison Cc: Patches and discussions about the oe-core layer, Alexander Kanavin, Khem Raj On Fri, 2022-01-07 at 06:44 -0800, Matt Madison wrote: > On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie > <richard.purdie@linuxfoundation.org> wrote: > > > > On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via lists.openembedded.org > > wrote: > > > On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > > > > On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > > > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > > > > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > > > > > which is introducing task hash changes for some > > > > > > allarch package builds, and should no longer > > > > > > be needed with recent versions of qemu. > > > > > > > > > > > > Signed-off-by: Matt Madison <matt@madison.systems> > > > > > > --- > > > > > > meta/classes/qemu.bbclass | 2 +- > > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > > > > > index 01a7b86ae1..333202b7c4 100644 > > > > > > --- a/meta/classes/qemu.bbclass > > > > > > +++ b/meta/classes/qemu.bbclass > > > > > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > > > > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > > > > > # qemu-arm default CPU supports all required architecture levels. > > > > > > > > > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > > > > > > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > > > > > > > > > I've sent a revert for this since the commit message isn't true, this is causing > > > > > autobuilder failures and there was also a user report of issues with it. > > > > > > > > Bummer. I think this is because our OLDEST_KERNEL setting for aarch64 > > > > (3.14.0) is > > > > higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). > > > > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/steps/13/logs/stdio > > > > > (centos7 aarch64 build) > > > > > > > > > > We'll have to find a different way to fix the allarch issue (more details > > > > > welcome on which package shows the issue). > > > > > > > > I ran into the issue with cantarell-fonts and wayland-protocols, but > > > > any recipe that inherits both allarch and meson should trigger it. > > > > > > > > In my case, I have a layer check job for meta-tegra that runs > > > > yocto-check-layer with the --machines option specifying qemux86 and > > > > one of the (aarch64) machines in my layer, and that was reporting the > > > > signature changes between the two architectures. > > > > > > I wonder why we don't detect that with our standard tests? :/ > > > > > > There may be another fix: > > > > > > diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass > > > index 5bd5c44a276..0aadf7bfba6 100644 > > > --- a/meta/classes/allarch.bbclass > > > +++ b/meta/classes/allarch.bbclass > > > @@ -43,6 +43,9 @@ python () { > > > d.setVar("TARGET_LDFLAGS", "none") > > > d.setVar("POPULATESYSROOTDEPS", "") > > > > > > + if bb.data.inherits_class("meson", d): > > > + d.setVar("do_write_config", ":") > > > + > > > # Avoid this being unnecessarily different due to nuances of > > > # the target machine that aren't important for "all" arch > > > # packages. > > > > > > > > > > Sorry, that isn't quite right. We want to just remove the append to write_config > > which generates the qemu wrapper which will probably need a little more invasive > > juggling of the code to make it easier... > > Your patch to disable the qemu wrapper for allarch looks like a good solution. > Hopefully, that will work OK across the board. It seemed to be so I've merged it. Am hoping this resolves things! Cheers, Richard ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-08 14:34 ` Richard Purdie @ 2022-01-08 15:10 ` Matt Madison 2022-01-08 15:13 ` Richard Purdie 0 siblings, 1 reply; 19+ messages in thread From: Matt Madison @ 2022-01-08 15:10 UTC (permalink / raw) To: Richard Purdie Cc: Patches and discussions about the oe-core layer, Alexander Kanavin, Khem Raj On Sat, Jan 8, 2022 at 6:34 AM Richard Purdie <richard.purdie@linuxfoundation.org> wrote: > > On Fri, 2022-01-07 at 06:44 -0800, Matt Madison wrote: > > On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via lists.openembedded.org > > > wrote: > > > > On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > > > > > On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > > > > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > > > > > > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > > > > > > which is introducing task hash changes for some > > > > > > > allarch package builds, and should no longer > > > > > > > be needed with recent versions of qemu. > > > > > > > > > > > > > > Signed-off-by: Matt Madison <matt@madison.systems> > > > > > > > --- > > > > > > > meta/classes/qemu.bbclass | 2 +- > > > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > > > > > > index 01a7b86ae1..333202b7c4 100644 > > > > > > > --- a/meta/classes/qemu.bbclass > > > > > > > +++ b/meta/classes/qemu.bbclass > > > > > > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > > > > > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > > > > > > # qemu-arm default CPU supports all required architecture levels. > > > > > > > > > > > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > > > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > > > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > > > > > > > > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > > > > > > > > > > > I've sent a revert for this since the commit message isn't true, this is causing > > > > > > autobuilder failures and there was also a user report of issues with it. > > > > > > > > > > Bummer. I think this is because our OLDEST_KERNEL setting for aarch64 > > > > > (3.14.0) is > > > > > higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). > > > > > > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/steps/13/logs/stdio > > > > > > (centos7 aarch64 build) > > > > > > > > > > > > We'll have to find a different way to fix the allarch issue (more details > > > > > > welcome on which package shows the issue). > > > > > > > > > > I ran into the issue with cantarell-fonts and wayland-protocols, but > > > > > any recipe that inherits both allarch and meson should trigger it. > > > > > > > > > > In my case, I have a layer check job for meta-tegra that runs > > > > > yocto-check-layer with the --machines option specifying qemux86 and > > > > > one of the (aarch64) machines in my layer, and that was reporting the > > > > > signature changes between the two architectures. > > > > > > > > I wonder why we don't detect that with our standard tests? :/ > > > > > > > > There may be another fix: > > > > > > > > diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass > > > > index 5bd5c44a276..0aadf7bfba6 100644 > > > > --- a/meta/classes/allarch.bbclass > > > > +++ b/meta/classes/allarch.bbclass > > > > @@ -43,6 +43,9 @@ python () { > > > > d.setVar("TARGET_LDFLAGS", "none") > > > > d.setVar("POPULATESYSROOTDEPS", "") > > > > > > > > + if bb.data.inherits_class("meson", d): > > > > + d.setVar("do_write_config", ":") > > > > + > > > > # Avoid this being unnecessarily different due to nuances of > > > > # the target machine that aren't important for "all" arch > > > > # packages. > > > > > > > > > > > > > > Sorry, that isn't quite right. We want to just remove the append to write_config > > > which generates the qemu wrapper which will probably need a little more invasive > > > juggling of the code to make it easier... > > > > Your patch to disable the qemu wrapper for allarch looks like a good solution. > > Hopefully, that will work OK across the board. > > It seemed to be so I've merged it. Am hoping this resolves things! Drat. Unfortunately, it only works if allarch is inherited after meson (which inherits qemu). So cantarell-fonts checks out OK, but wayland-protocols doesn't, since it inherits allarch first. -Matt > > Cheers, > > Richard > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-08 15:10 ` Matt Madison @ 2022-01-08 15:13 ` Richard Purdie 2022-01-09 9:23 ` Konrad Weihmann 0 siblings, 1 reply; 19+ messages in thread From: Richard Purdie @ 2022-01-08 15:13 UTC (permalink / raw) To: Matt Madison Cc: Patches and discussions about the oe-core layer, Alexander Kanavin, Khem Raj On Sat, 2022-01-08 at 07:10 -0800, Matt Madison wrote: > On Sat, Jan 8, 2022 at 6:34 AM Richard Purdie > <richard.purdie@linuxfoundation.org> wrote: > > > > On Fri, 2022-01-07 at 06:44 -0800, Matt Madison wrote: > > > On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie > > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > > > On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via lists.openembedded.org > > > > wrote: > > > > > On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > > > > > > On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > > > > > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > > > > > > > > > On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > > > > > > > which is introducing task hash changes for some > > > > > > > > allarch package builds, and should no longer > > > > > > > > be needed with recent versions of qemu. > > > > > > > > > > > > > > > > Signed-off-by: Matt Madison <matt@madison.systems> > > > > > > > > --- > > > > > > > > meta/classes/qemu.bbclass | 2 +- > > > > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > > > > > > > diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass > > > > > > > > index 01a7b86ae1..333202b7c4 100644 > > > > > > > > --- a/meta/classes/qemu.bbclass > > > > > > > > +++ b/meta/classes/qemu.bbclass > > > > > > > > @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): > > > > > > > > # this dance). For others (e.g. arm) a -cpu option is not necessary, since the > > > > > > > > # qemu-arm default CPU supports all required architecture levels. > > > > > > > > > > > > > > > > -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > > > > > +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > > > > > QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > > > > > > > > > > > > > QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > > > > > > > > > > > > > I've sent a revert for this since the commit message isn't true, this is causing > > > > > > > autobuilder failures and there was also a user report of issues with it. > > > > > > > > > > > > Bummer. I think this is because our OLDEST_KERNEL setting for aarch64 > > > > > > (3.14.0) is > > > > > > higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). > > > > > > > > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/steps/13/logs/stdio > > > > > > > (centos7 aarch64 build) > > > > > > > > > > > > > > We'll have to find a different way to fix the allarch issue (more details > > > > > > > welcome on which package shows the issue). > > > > > > > > > > > > I ran into the issue with cantarell-fonts and wayland-protocols, but > > > > > > any recipe that inherits both allarch and meson should trigger it. > > > > > > > > > > > > In my case, I have a layer check job for meta-tegra that runs > > > > > > yocto-check-layer with the --machines option specifying qemux86 and > > > > > > one of the (aarch64) machines in my layer, and that was reporting the > > > > > > signature changes between the two architectures. > > > > > > > > > > I wonder why we don't detect that with our standard tests? :/ > > > > > > > > > > There may be another fix: > > > > > > > > > > diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass > > > > > index 5bd5c44a276..0aadf7bfba6 100644 > > > > > --- a/meta/classes/allarch.bbclass > > > > > +++ b/meta/classes/allarch.bbclass > > > > > @@ -43,6 +43,9 @@ python () { > > > > > d.setVar("TARGET_LDFLAGS", "none") > > > > > d.setVar("POPULATESYSROOTDEPS", "") > > > > > > > > > > + if bb.data.inherits_class("meson", d): > > > > > + d.setVar("do_write_config", ":") > > > > > + > > > > > # Avoid this being unnecessarily different due to nuances of > > > > > # the target machine that aren't important for "all" arch > > > > > # packages. > > > > > > > > > > > > > > > > > > Sorry, that isn't quite right. We want to just remove the append to write_config > > > > which generates the qemu wrapper which will probably need a little more invasive > > > > juggling of the code to make it easier... > > > > > > Your patch to disable the qemu wrapper for allarch looks like a good solution. > > > Hopefully, that will work OK across the board. > > > > It seemed to be so I've merged it. Am hoping this resolves things! > > Drat. Unfortunately, it only works if allarch is inherited after meson > (which inherits qemu). So cantarell-fonts checks out OK, > but wayland-protocols doesn't, since it inherits allarch first. Probably easy to fix but hard to spot new problems :/ Cheers, Richard ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-08 15:13 ` Richard Purdie @ 2022-01-09 9:23 ` Konrad Weihmann 2022-01-09 11:32 ` Peter Kjellerstedt 0 siblings, 1 reply; 19+ messages in thread From: Konrad Weihmann @ 2022-01-09 9:23 UTC (permalink / raw) To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer On 08.01.22 16:13, Richard Purdie wrote: > On Sat, 2022-01-08 at 07:10 -0800, Matt Madison wrote: >> On Sat, Jan 8, 2022 at 6:34 AM Richard Purdie >> <richard.purdie@linuxfoundation.org> wrote: >>> >>> On Fri, 2022-01-07 at 06:44 -0800, Matt Madison wrote: >>>> On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie >>>> <richard.purdie@linuxfoundation.org> wrote: >>>>> >>>>> On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via lists.openembedded.org >>>>> wrote: >>>>>> On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: >>>>>>> On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie >>>>>>> <richard.purdie@linuxfoundation.org> wrote: >>>>>>>> >>>>>>>> On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: >>>>>>>>> which is introducing task hash changes for some >>>>>>>>> allarch package builds, and should no longer >>>>>>>>> be needed with recent versions of qemu. >>>>>>>>> >>>>>>>>> Signed-off-by: Matt Madison <matt@madison.systems> >>>>>>>>> --- >>>>>>>>> meta/classes/qemu.bbclass | 2 +- >>>>>>>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>>>>>>> >>>>>>>>> diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass >>>>>>>>> index 01a7b86ae1..333202b7c4 100644 >>>>>>>>> --- a/meta/classes/qemu.bbclass >>>>>>>>> +++ b/meta/classes/qemu.bbclass >>>>>>>>> @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, binary): >>>>>>>>> # this dance). For others (e.g. arm) a -cpu option is not necessary, since the >>>>>>>>> # qemu-arm default CPU supports all required architecture levels. >>>>>>>>> >>>>>>>>> -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" >>>>>>>>> +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" >>>>>>>>> QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" >>>>>>>>> >>>>>>>>> QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" >>>>>>>> >>>>>>>> I've sent a revert for this since the commit message isn't true, this is causing >>>>>>>> autobuilder failures and there was also a user report of issues with it. >>>>>>> >>>>>>> Bummer. I think this is because our OLDEST_KERNEL setting for aarch64 >>>>>>> (3.14.0) is >>>>>>> higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). >>>>>>> >>>>>>>> https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/steps/13/logs/stdio >>>>>>>> (centos7 aarch64 build) >>>>>>>> >>>>>>>> We'll have to find a different way to fix the allarch issue (more details >>>>>>>> welcome on which package shows the issue). >>>>>>> >>>>>>> I ran into the issue with cantarell-fonts and wayland-protocols, but >>>>>>> any recipe that inherits both allarch and meson should trigger it. >>>>>>> >>>>>>> In my case, I have a layer check job for meta-tegra that runs >>>>>>> yocto-check-layer with the --machines option specifying qemux86 and >>>>>>> one of the (aarch64) machines in my layer, and that was reporting the >>>>>>> signature changes between the two architectures. >>>>>> >>>>>> I wonder why we don't detect that with our standard tests? :/ >>>>>> >>>>>> There may be another fix: >>>>>> >>>>>> diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass >>>>>> index 5bd5c44a276..0aadf7bfba6 100644 >>>>>> --- a/meta/classes/allarch.bbclass >>>>>> +++ b/meta/classes/allarch.bbclass >>>>>> @@ -43,6 +43,9 @@ python () { >>>>>> d.setVar("TARGET_LDFLAGS", "none") >>>>>> d.setVar("POPULATESYSROOTDEPS", "") >>>>>> >>>>>> + if bb.data.inherits_class("meson", d): >>>>>> + d.setVar("do_write_config", ":") >>>>>> + >>>>>> # Avoid this being unnecessarily different due to nuances of >>>>>> # the target machine that aren't important for "all" arch >>>>>> # packages. >>>>>> >>>>>> >>>>> >>>>> Sorry, that isn't quite right. We want to just remove the append to write_config >>>>> which generates the qemu wrapper which will probably need a little more invasive >>>>> juggling of the code to make it easier... >>>> >>>> Your patch to disable the qemu wrapper for allarch looks like a good solution. >>>> Hopefully, that will work OK across the board. >>> >>> It seemed to be so I've merged it. Am hoping this resolves things! >> >> Drat. Unfortunately, it only works if allarch is inherited after meson >> (which inherits qemu). So cantarell-fonts checks out OK, >> but wayland-protocols doesn't, since it inherits allarch first. > > Probably easy to fix but hard to spot new problems :/ would an insane check similar to native-last be of help here? > > Cheers, > > Richard > > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#160277): https://lists.openembedded.org/g/openembedded-core/message/160277 > Mute This Topic: https://lists.openembedded.org/mt/87752526/3647476 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [kweihmann@outlook.com] > -=-=-=-=-=-=-=-=-=-=-=- > ^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-09 9:23 ` Konrad Weihmann @ 2022-01-09 11:32 ` Peter Kjellerstedt 2022-01-09 12:04 ` Matt Madison 0 siblings, 1 reply; 19+ messages in thread From: Peter Kjellerstedt @ 2022-01-09 11:32 UTC (permalink / raw) To: Konrad Weihmann, Richard Purdie Cc: Patches and discussions about the oe-core layer > -----Original Message----- > From: openembedded-core@lists.openembedded.org <openembedded- > core@lists.openembedded.org> On Behalf Of Konrad Weihmann > Sent: den 9 januari 2022 10:24 > To: Richard Purdie <richard.purdie@linuxfoundation.org> > Cc: Patches and discussions about the oe-core layer <openembedded- > core@lists.openembedded.org> > Subject: Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference > > On 08.01.22 16:13, Richard Purdie wrote: > > On Sat, 2022-01-08 at 07:10 -0800, Matt Madison wrote: > >> On Sat, Jan 8, 2022 at 6:34 AM Richard Purdie > >> <richard.purdie@linuxfoundation.org> wrote: > >>> > >>> On Fri, 2022-01-07 at 06:44 -0800, Matt Madison wrote: > >>>> On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie > >>>> <richard.purdie@linuxfoundation.org> wrote: > >>>>> > >>>>> On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via > lists.openembedded.org > >>>>> wrote: > >>>>>> On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > >>>>>>> On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > >>>>>>> <richard.purdie@linuxfoundation.org> wrote: > >>>>>>>> > >>>>>>>> On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > >>>>>>>>> which is introducing task hash changes for some > >>>>>>>>> allarch package builds, and should no longer > >>>>>>>>> be needed with recent versions of qemu. > >>>>>>>>> > >>>>>>>>> Signed-off-by: Matt Madison <matt@madison.systems> > >>>>>>>>> --- > >>>>>>>>> meta/classes/qemu.bbclass | 2 +- > >>>>>>>>> 1 file changed, 1 insertion(+), 1 deletion(-) > >>>>>>>>> > >>>>>>>>> diff --git a/meta/classes/qemu.bbclass > b/meta/classes/qemu.bbclass > >>>>>>>>> index 01a7b86ae1..333202b7c4 100644 > >>>>>>>>> --- a/meta/classes/qemu.bbclass > >>>>>>>>> +++ b/meta/classes/qemu.bbclass > >>>>>>>>> @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, > binary): > >>>>>>>>> # this dance). For others (e.g. arm) a -cpu option is not > necessary, since the > >>>>>>>>> # qemu-arm default CPU supports all required architecture > levels. > >>>>>>>>> > >>>>>>>>> -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} > ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > >>>>>>>>> +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % > d.getVar('PACKAGE_ARCH')) or ""}" > >>>>>>>>> QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > >>>>>>>>> > >>>>>>>>> QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > >>>>>>>> > >>>>>>>> I've sent a revert for this since the commit message isn't true, > this is causing > >>>>>>>> autobuilder failures and there was also a user report of issues > with it. > >>>>>>> > >>>>>>> Bummer. I think this is because our OLDEST_KERNEL setting for > aarch64 > >>>>>>> (3.14.0) is > >>>>>>> higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). > >>>>>>> > >>>>>>>> > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/ste > ps/13/logs/stdio > >>>>>>>> (centos7 aarch64 build) > >>>>>>>> > >>>>>>>> We'll have to find a different way to fix the allarch issue (more > details > >>>>>>>> welcome on which package shows the issue). > >>>>>>> > >>>>>>> I ran into the issue with cantarell-fonts and wayland-protocols, > but > >>>>>>> any recipe that inherits both allarch and meson should trigger it. > >>>>>>> > >>>>>>> In my case, I have a layer check job for meta-tegra that runs > >>>>>>> yocto-check-layer with the --machines option specifying qemux86 > and > >>>>>>> one of the (aarch64) machines in my layer, and that was reporting > the > >>>>>>> signature changes between the two architectures. > >>>>>> > >>>>>> I wonder why we don't detect that with our standard tests? :/ > >>>>>> > >>>>>> There may be another fix: > >>>>>> > >>>>>> diff --git a/meta/classes/allarch.bbclass > b/meta/classes/allarch.bbclass > >>>>>> index 5bd5c44a276..0aadf7bfba6 100644 > >>>>>> --- a/meta/classes/allarch.bbclass > >>>>>> +++ b/meta/classes/allarch.bbclass > >>>>>> @@ -43,6 +43,9 @@ python () { > >>>>>> d.setVar("TARGET_LDFLAGS", "none") > >>>>>> d.setVar("POPULATESYSROOTDEPS", "") > >>>>>> > >>>>>> + if bb.data.inherits_class("meson", d): > >>>>>> + d.setVar("do_write_config", ":") > >>>>>> + > >>>>>> # Avoid this being unnecessarily different due to nuances > of > >>>>>> # the target machine that aren't important for "all" arch > >>>>>> # packages. > >>>>>> > >>>>>> > >>>>> > >>>>> Sorry, that isn't quite right. We want to just remove the append to > write_config > >>>>> which generates the qemu wrapper which will probably need a little > more invasive > >>>>> juggling of the code to make it easier... > >>>> > >>>> Your patch to disable the qemu wrapper for allarch looks like a good > solution. > >>>> Hopefully, that will work OK across the board. > >>> > >>> It seemed to be so I've merged it. Am hoping this resolves things! > >> > >> Drat. Unfortunately, it only works if allarch is inherited after meson > >> (which inherits qemu). So cantarell-fonts checks out OK, > >> but wayland-protocols doesn't, since it inherits allarch first. > > > > Probably easy to fix but hard to spot new problems :/ > > would an insane check similar to native-last be of help here? That seems like the wrong solution. As far as possible, bbclasses should be designed to be able to inherit them in any order, and it should be possible to rewrite this change so that is still possible to do. > > > > Cheers, > > > > Richard //Peter ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-09 11:32 ` Peter Kjellerstedt @ 2022-01-09 12:04 ` Matt Madison 2022-01-09 13:52 ` Peter Kjellerstedt 0 siblings, 1 reply; 19+ messages in thread From: Matt Madison @ 2022-01-09 12:04 UTC (permalink / raw) To: Peter Kjellerstedt Cc: Konrad Weihmann, Richard Purdie, Patches and discussions about the oe-core layer On Sun, Jan 9, 2022 at 3:32 AM Peter Kjellerstedt <peter.kjellerstedt@axis.com> wrote: > > > -----Original Message----- > > From: openembedded-core@lists.openembedded.org <openembedded- > > core@lists.openembedded.org> On Behalf Of Konrad Weihmann > > Sent: den 9 januari 2022 10:24 > > To: Richard Purdie <richard.purdie@linuxfoundation.org> > > Cc: Patches and discussions about the oe-core layer <openembedded- > > core@lists.openembedded.org> > > Subject: Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference > > > > On 08.01.22 16:13, Richard Purdie wrote: > > > On Sat, 2022-01-08 at 07:10 -0800, Matt Madison wrote: > > >> On Sat, Jan 8, 2022 at 6:34 AM Richard Purdie > > >> <richard.purdie@linuxfoundation.org> wrote: > > >>> > > >>> On Fri, 2022-01-07 at 06:44 -0800, Matt Madison wrote: > > >>>> On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie > > >>>> <richard.purdie@linuxfoundation.org> wrote: > > >>>>> > > >>>>> On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via > > lists.openembedded.org > > >>>>> wrote: > > >>>>>> On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > > >>>>>>> On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > > >>>>>>> <richard.purdie@linuxfoundation.org> wrote: > > >>>>>>>> > > >>>>>>>> On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > >>>>>>>>> which is introducing task hash changes for some > > >>>>>>>>> allarch package builds, and should no longer > > >>>>>>>>> be needed with recent versions of qemu. > > >>>>>>>>> > > >>>>>>>>> Signed-off-by: Matt Madison <matt@madison.systems> > > >>>>>>>>> --- > > >>>>>>>>> meta/classes/qemu.bbclass | 2 +- > > >>>>>>>>> 1 file changed, 1 insertion(+), 1 deletion(-) > > >>>>>>>>> > > >>>>>>>>> diff --git a/meta/classes/qemu.bbclass > > b/meta/classes/qemu.bbclass > > >>>>>>>>> index 01a7b86ae1..333202b7c4 100644 > > >>>>>>>>> --- a/meta/classes/qemu.bbclass > > >>>>>>>>> +++ b/meta/classes/qemu.bbclass > > >>>>>>>>> @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, > > binary): > > >>>>>>>>> # this dance). For others (e.g. arm) a -cpu option is not > > necessary, since the > > >>>>>>>>> # qemu-arm default CPU supports all required architecture > > levels. > > >>>>>>>>> > > >>>>>>>>> -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} > > ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > >>>>>>>>> +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % > > d.getVar('PACKAGE_ARCH')) or ""}" > > >>>>>>>>> QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > >>>>>>>>> > > >>>>>>>>> QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > >>>>>>>> > > >>>>>>>> I've sent a revert for this since the commit message isn't true, > > this is causing > > >>>>>>>> autobuilder failures and there was also a user report of issues > > with it. > > >>>>>>> > > >>>>>>> Bummer. I think this is because our OLDEST_KERNEL setting for > > aarch64 > > >>>>>>> (3.14.0) is > > >>>>>>> higher than the UNAME_MINIMUM_RELEASE definition in QEMU (3.8.0). > > >>>>>>> > > >>>>>>>> > > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/ste > > ps/13/logs/stdio > > >>>>>>>> (centos7 aarch64 build) > > >>>>>>>> > > >>>>>>>> We'll have to find a different way to fix the allarch issue (more > > details > > >>>>>>>> welcome on which package shows the issue). > > >>>>>>> > > >>>>>>> I ran into the issue with cantarell-fonts and wayland-protocols, > > but > > >>>>>>> any recipe that inherits both allarch and meson should trigger it. > > >>>>>>> > > >>>>>>> In my case, I have a layer check job for meta-tegra that runs > > >>>>>>> yocto-check-layer with the --machines option specifying qemux86 > > and > > >>>>>>> one of the (aarch64) machines in my layer, and that was reporting > > the > > >>>>>>> signature changes between the two architectures. > > >>>>>> > > >>>>>> I wonder why we don't detect that with our standard tests? :/ > > >>>>>> > > >>>>>> There may be another fix: > > >>>>>> > > >>>>>> diff --git a/meta/classes/allarch.bbclass > > b/meta/classes/allarch.bbclass > > >>>>>> index 5bd5c44a276..0aadf7bfba6 100644 > > >>>>>> --- a/meta/classes/allarch.bbclass > > >>>>>> +++ b/meta/classes/allarch.bbclass > > >>>>>> @@ -43,6 +43,9 @@ python () { > > >>>>>> d.setVar("TARGET_LDFLAGS", "none") > > >>>>>> d.setVar("POPULATESYSROOTDEPS", "") > > >>>>>> > > >>>>>> + if bb.data.inherits_class("meson", d): > > >>>>>> + d.setVar("do_write_config", ":") > > >>>>>> + > > >>>>>> # Avoid this being unnecessarily different due to nuances > > of > > >>>>>> # the target machine that aren't important for "all" arch > > >>>>>> # packages. > > >>>>>> > > >>>>>> > > >>>>> > > >>>>> Sorry, that isn't quite right. We want to just remove the append to > > write_config > > >>>>> which generates the qemu wrapper which will probably need a little > > more invasive > > >>>>> juggling of the code to make it easier... > > >>>> > > >>>> Your patch to disable the qemu wrapper for allarch looks like a good > > solution. > > >>>> Hopefully, that will work OK across the board. > > >>> > > >>> It seemed to be so I've merged it. Am hoping this resolves things! > > >> > > >> Drat. Unfortunately, it only works if allarch is inherited after meson > > >> (which inherits qemu). So cantarell-fonts checks out OK, > > >> but wayland-protocols doesn't, since it inherits allarch first. > > > > > > Probably easy to fix but hard to spot new problems :/ > > > > would an insane check similar to native-last be of help here? > > That seems like the wrong solution. As far as possible, bbclasses should > be designed to be able to inherit them in any order, and it should be possible > to rewrite this change so that is still possible to do. Doing so would be a bit ugly, since it's a Python function. Something like if bb.data.inherits_class('qemu', d): d.setVar("qemu_wrapper_cmdline", "def qemu_wrapper_cmdline(data, rootfs_path, library_paths):\n return 'false'\n") in the anonymous python function in allarch.bbclass would do that. -Matt > > > > > > > Cheers, > > > > > > Richard > > //Peter > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#160280): https://lists.openembedded.org/g/openembedded-core/message/160280 > Mute This Topic: https://lists.openembedded.org/mt/87752526/3618418 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [matt@madison.systems] > -=-=-=-=-=-=-=-=-=-=-=- > ^ permalink raw reply [flat|nested] 19+ messages in thread
* RE: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-09 12:04 ` Matt Madison @ 2022-01-09 13:52 ` Peter Kjellerstedt 2022-01-09 14:20 ` Matt Madison 0 siblings, 1 reply; 19+ messages in thread From: Peter Kjellerstedt @ 2022-01-09 13:52 UTC (permalink / raw) To: Matt Madison Cc: Konrad Weihmann, Richard Purdie, Patches and discussions about the oe-core layer > -----Original Message----- > From: Matt Madison <matt@madison.systems> > Sent: den 9 januari 2022 13:04 > To: Peter Kjellerstedt <peter.kjellerstedt@axis.com> > Cc: Konrad Weihmann <kweihmann@outlook.com>; Richard Purdie > <richard.purdie@linuxfoundation.org>; Patches and discussions about the > oe-core layer <openembedded-core@lists.openembedded.org> > Subject: Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference > > On Sun, Jan 9, 2022 at 3:32 AM Peter Kjellerstedt > <peter.kjellerstedt@axis.com> wrote: > > > > > -----Original Message----- > > > From: openembedded-core@lists.openembedded.org <openembedded- > > > core@lists.openembedded.org> On Behalf Of Konrad Weihmann > > > Sent: den 9 januari 2022 10:24 > > > To: Richard Purdie <richard.purdie@linuxfoundation.org> > > > Cc: Patches and discussions about the oe-core layer <openembedded- > > > core@lists.openembedded.org> > > > Subject: Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL > reference > > > > > > On 08.01.22 16:13, Richard Purdie wrote: > > > > On Sat, 2022-01-08 at 07:10 -0800, Matt Madison wrote: > > > >> On Sat, Jan 8, 2022 at 6:34 AM Richard Purdie > > > >> <richard.purdie@linuxfoundation.org> wrote: > > > >>> > > > >>> On Fri, 2022-01-07 at 06:44 -0800, Matt Madison wrote: > > > >>>> On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie > > > >>>> <richard.purdie@linuxfoundation.org> wrote: > > > >>>>> > > > >>>>> On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via > > > lists.openembedded.org > > > >>>>> wrote: > > > >>>>>> On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > > > >>>>>>> On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > > > >>>>>>> <richard.purdie@linuxfoundation.org> wrote: > > > >>>>>>>> > > > >>>>>>>> On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > > >>>>>>>>> which is introducing task hash changes for some > > > >>>>>>>>> allarch package builds, and should no longer > > > >>>>>>>>> be needed with recent versions of qemu. > > > >>>>>>>>> > > > >>>>>>>>> Signed-off-by: Matt Madison <matt@madison.systems> > > > >>>>>>>>> --- > > > >>>>>>>>> meta/classes/qemu.bbclass | 2 +- > > > >>>>>>>>> 1 file changed, 1 insertion(+), 1 deletion(-) > > > >>>>>>>>> > > > >>>>>>>>> diff --git a/meta/classes/qemu.bbclass > > > b/meta/classes/qemu.bbclass > > > >>>>>>>>> index 01a7b86ae1..333202b7c4 100644 > > > >>>>>>>>> --- a/meta/classes/qemu.bbclass > > > >>>>>>>>> +++ b/meta/classes/qemu.bbclass > > > >>>>>>>>> @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, > > > binary): > > > >>>>>>>>> # this dance). For others (e.g. arm) a -cpu option is not > > > necessary, since the > > > >>>>>>>>> # qemu-arm default CPU supports all required architecture > > > levels. > > > >>>>>>>>> > > > >>>>>>>>> -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} > > > ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > >>>>>>>>> +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % > > > d.getVar('PACKAGE_ARCH')) or ""}" > > > >>>>>>>>> QEMU_OPTIONS[vardeps] += > "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > >>>>>>>>> > > > >>>>>>>>> QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > > >>>>>>>> > > > >>>>>>>> I've sent a revert for this since the commit message isn't > true, > > > this is causing > > > >>>>>>>> autobuilder failures and there was also a user report of > issues > > > with it. > > > >>>>>>> > > > >>>>>>> Bummer. I think this is because our OLDEST_KERNEL setting for > > > aarch64 > > > >>>>>>> (3.14.0) is > > > >>>>>>> higher than the UNAME_MINIMUM_RELEASE definition in QEMU > (3.8.0). > > > >>>>>>> > > > >>>>>>>> > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/ste > > > ps/13/logs/stdio > > > >>>>>>>> (centos7 aarch64 build) > > > >>>>>>>> > > > >>>>>>>> We'll have to find a different way to fix the allarch issue > (more > > > details > > > >>>>>>>> welcome on which package shows the issue). > > > >>>>>>> > > > >>>>>>> I ran into the issue with cantarell-fonts and wayland- > protocols, > > > but > > > >>>>>>> any recipe that inherits both allarch and meson should trigger > it. > > > >>>>>>> > > > >>>>>>> In my case, I have a layer check job for meta-tegra that runs > > > >>>>>>> yocto-check-layer with the --machines option specifying > qemux86 > > > and > > > >>>>>>> one of the (aarch64) machines in my layer, and that was > reporting > > > the > > > >>>>>>> signature changes between the two architectures. > > > >>>>>> > > > >>>>>> I wonder why we don't detect that with our standard tests? :/ > > > >>>>>> > > > >>>>>> There may be another fix: > > > >>>>>> > > > >>>>>> diff --git a/meta/classes/allarch.bbclass > > > b/meta/classes/allarch.bbclass > > > >>>>>> index 5bd5c44a276..0aadf7bfba6 100644 > > > >>>>>> --- a/meta/classes/allarch.bbclass > > > >>>>>> +++ b/meta/classes/allarch.bbclass > > > >>>>>> @@ -43,6 +43,9 @@ python () { > > > >>>>>> d.setVar("TARGET_LDFLAGS", "none") > > > >>>>>> d.setVar("POPULATESYSROOTDEPS", "") > > > >>>>>> > > > >>>>>> + if bb.data.inherits_class("meson", d): > > > >>>>>> + d.setVar("do_write_config", ":") > > > >>>>>> + > > > >>>>>> # Avoid this being unnecessarily different due to > nuances > > > of > > > >>>>>> # the target machine that aren't important for "all" > arch > > > >>>>>> # packages. > > > >>>>>> > > > >>>>>> > > > >>>>> > > > >>>>> Sorry, that isn't quite right. We want to just remove the append > to > > > write_config > > > >>>>> which generates the qemu wrapper which will probably need a > little > > > more invasive > > > >>>>> juggling of the code to make it easier... > > > >>>> > > > >>>> Your patch to disable the qemu wrapper for allarch looks like a > good > > > solution. > > > >>>> Hopefully, that will work OK across the board. > > > >>> > > > >>> It seemed to be so I've merged it. Am hoping this resolves things! > > > >> > > > >> Drat. Unfortunately, it only works if allarch is inherited after > meson > > > >> (which inherits qemu). So cantarell-fonts checks out OK, > > > >> but wayland-protocols doesn't, since it inherits allarch first. > > > > > > > > Probably easy to fix but hard to spot new problems :/ > > > > > > would an insane check similar to native-last be of help here? > > > > That seems like the wrong solution. As far as possible, bbclasses should > > be designed to be able to inherit them in any order, and it should be > possible > > to rewrite this change so that is still possible to do. > > Doing so would be a bit ugly, since it's a Python function. Something like > > if bb.data.inherits_class('qemu', d): > d.setVar("qemu_wrapper_cmdline", "def > qemu_wrapper_cmdline(data, rootfs_path, library_paths):\n return > 'false'\n") > > in the anonymous python function in allarch.bbclass would do that. Ok, that's ugly. How about solving it in qemu.bbclass instead by doing: def qemu_wrapper_cmdline(data, rootfs_path, library_paths): import string if bb.data.inherits_class('allarch', data): return 'false' ... > > -Matt > > > > > > > > > > > Cheers, > > > > > > > > Richard > > > > //Peter //Peter ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference 2022-01-09 13:52 ` Peter Kjellerstedt @ 2022-01-09 14:20 ` Matt Madison 0 siblings, 0 replies; 19+ messages in thread From: Matt Madison @ 2022-01-09 14:20 UTC (permalink / raw) To: Peter Kjellerstedt Cc: Konrad Weihmann, Richard Purdie, Patches and discussions about the oe-core layer On Sun, Jan 9, 2022 at 5:52 AM Peter Kjellerstedt <peter.kjellerstedt@axis.com> wrote: > > > -----Original Message----- > > From: Matt Madison <matt@madison.systems> > > Sent: den 9 januari 2022 13:04 > > To: Peter Kjellerstedt <peter.kjellerstedt@axis.com> > > Cc: Konrad Weihmann <kweihmann@outlook.com>; Richard Purdie > > <richard.purdie@linuxfoundation.org>; Patches and discussions about the > > oe-core layer <openembedded-core@lists.openembedded.org> > > Subject: Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference > > > > On Sun, Jan 9, 2022 at 3:32 AM Peter Kjellerstedt > > <peter.kjellerstedt@axis.com> wrote: > > > > > > > -----Original Message----- > > > > From: openembedded-core@lists.openembedded.org <openembedded- > > > > core@lists.openembedded.org> On Behalf Of Konrad Weihmann > > > > Sent: den 9 januari 2022 10:24 > > > > To: Richard Purdie <richard.purdie@linuxfoundation.org> > > > > Cc: Patches and discussions about the oe-core layer <openembedded- > > > > core@lists.openembedded.org> > > > > Subject: Re: [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL > > reference > > > > > > > > On 08.01.22 16:13, Richard Purdie wrote: > > > > > On Sat, 2022-01-08 at 07:10 -0800, Matt Madison wrote: > > > > >> On Sat, Jan 8, 2022 at 6:34 AM Richard Purdie > > > > >> <richard.purdie@linuxfoundation.org> wrote: > > > > >>> > > > > >>> On Fri, 2022-01-07 at 06:44 -0800, Matt Madison wrote: > > > > >>>> On Fri, Jan 7, 2022 at 4:56 AM Richard Purdie > > > > >>>> <richard.purdie@linuxfoundation.org> wrote: > > > > >>>>> > > > > >>>>> On Fri, 2022-01-07 at 12:51 +0000, Richard Purdie via > > > > lists.openembedded.org > > > > >>>>> wrote: > > > > >>>>>> On Fri, 2022-01-07 at 04:36 -0800, Matt Madison wrote: > > > > >>>>>>> On Fri, Jan 7, 2022 at 3:19 AM Richard Purdie > > > > >>>>>>> <richard.purdie@linuxfoundation.org> wrote: > > > > >>>>>>>> > > > > >>>>>>>> On Wed, 2021-12-15 at 12:16 -0800, Matt Madison wrote: > > > > >>>>>>>>> which is introducing task hash changes for some > > > > >>>>>>>>> allarch package builds, and should no longer > > > > >>>>>>>>> be needed with recent versions of qemu. > > > > >>>>>>>>> > > > > >>>>>>>>> Signed-off-by: Matt Madison <matt@madison.systems> > > > > >>>>>>>>> --- > > > > >>>>>>>>> meta/classes/qemu.bbclass | 2 +- > > > > >>>>>>>>> 1 file changed, 1 insertion(+), 1 deletion(-) > > > > >>>>>>>>> > > > > >>>>>>>>> diff --git a/meta/classes/qemu.bbclass > > > > b/meta/classes/qemu.bbclass > > > > >>>>>>>>> index 01a7b86ae1..333202b7c4 100644 > > > > >>>>>>>>> --- a/meta/classes/qemu.bbclass > > > > >>>>>>>>> +++ b/meta/classes/qemu.bbclass > > > > >>>>>>>>> @@ -54,7 +54,7 @@ def qemu_run_binary(data, rootfs_path, > > > > binary): > > > > >>>>>>>>> # this dance). For others (e.g. arm) a -cpu option is not > > > > necessary, since the > > > > >>>>>>>>> # qemu-arm default CPU supports all required architecture > > > > levels. > > > > >>>>>>>>> > > > > >>>>>>>>> -QEMU_OPTIONS = "-r ${OLDEST_KERNEL} > > > > ${@d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) or ""}" > > > > >>>>>>>>> +QEMU_OPTIONS = "${@d.getVar("QEMU_EXTRAOPTIONS_%s" % > > > > d.getVar('PACKAGE_ARCH')) or ""}" > > > > >>>>>>>>> QEMU_OPTIONS[vardeps] += > > "QEMU_EXTRAOPTIONS_${PACKAGE_ARCH}" > > > > >>>>>>>>> > > > > >>>>>>>>> QEMU_EXTRAOPTIONS_ppce500v2 = " -cpu e500v2" > > > > >>>>>>>> > > > > >>>>>>>> I've sent a revert for this since the commit message isn't > > true, > > > > this is causing > > > > >>>>>>>> autobuilder failures and there was also a user report of > > issues > > > > with it. > > > > >>>>>>> > > > > >>>>>>> Bummer. I think this is because our OLDEST_KERNEL setting for > > > > aarch64 > > > > >>>>>>> (3.14.0) is > > > > >>>>>>> higher than the UNAME_MINIMUM_RELEASE definition in QEMU > > (3.8.0). > > > > >>>>>>> > > > > >>>>>>>> > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/4559/ste > > > > ps/13/logs/stdio > > > > >>>>>>>> (centos7 aarch64 build) > > > > >>>>>>>> > > > > >>>>>>>> We'll have to find a different way to fix the allarch issue > > (more > > > > details > > > > >>>>>>>> welcome on which package shows the issue). > > > > >>>>>>> > > > > >>>>>>> I ran into the issue with cantarell-fonts and wayland- > > protocols, > > > > but > > > > >>>>>>> any recipe that inherits both allarch and meson should trigger > > it. > > > > >>>>>>> > > > > >>>>>>> In my case, I have a layer check job for meta-tegra that runs > > > > >>>>>>> yocto-check-layer with the --machines option specifying > > qemux86 > > > > and > > > > >>>>>>> one of the (aarch64) machines in my layer, and that was > > reporting > > > > the > > > > >>>>>>> signature changes between the two architectures. > > > > >>>>>> > > > > >>>>>> I wonder why we don't detect that with our standard tests? :/ > > > > >>>>>> > > > > >>>>>> There may be another fix: > > > > >>>>>> > > > > >>>>>> diff --git a/meta/classes/allarch.bbclass > > > > b/meta/classes/allarch.bbclass > > > > >>>>>> index 5bd5c44a276..0aadf7bfba6 100644 > > > > >>>>>> --- a/meta/classes/allarch.bbclass > > > > >>>>>> +++ b/meta/classes/allarch.bbclass > > > > >>>>>> @@ -43,6 +43,9 @@ python () { > > > > >>>>>> d.setVar("TARGET_LDFLAGS", "none") > > > > >>>>>> d.setVar("POPULATESYSROOTDEPS", "") > > > > >>>>>> > > > > >>>>>> + if bb.data.inherits_class("meson", d): > > > > >>>>>> + d.setVar("do_write_config", ":") > > > > >>>>>> + > > > > >>>>>> # Avoid this being unnecessarily different due to > > nuances > > > > of > > > > >>>>>> # the target machine that aren't important for "all" > > arch > > > > >>>>>> # packages. > > > > >>>>>> > > > > >>>>>> > > > > >>>>> > > > > >>>>> Sorry, that isn't quite right. We want to just remove the append > > to > > > > write_config > > > > >>>>> which generates the qemu wrapper which will probably need a > > little > > > > more invasive > > > > >>>>> juggling of the code to make it easier... > > > > >>>> > > > > >>>> Your patch to disable the qemu wrapper for allarch looks like a > > good > > > > solution. > > > > >>>> Hopefully, that will work OK across the board. > > > > >>> > > > > >>> It seemed to be so I've merged it. Am hoping this resolves things! > > > > >> > > > > >> Drat. Unfortunately, it only works if allarch is inherited after > > meson > > > > >> (which inherits qemu). So cantarell-fonts checks out OK, > > > > >> but wayland-protocols doesn't, since it inherits allarch first. > > > > > > > > > > Probably easy to fix but hard to spot new problems :/ > > > > > > > > would an insane check similar to native-last be of help here? > > > > > > That seems like the wrong solution. As far as possible, bbclasses should > > > be designed to be able to inherit them in any order, and it should be > > possible > > > to rewrite this change so that is still possible to do. > > > > Doing so would be a bit ugly, since it's a Python function. Something like > > > > if bb.data.inherits_class('qemu', d): > > d.setVar("qemu_wrapper_cmdline", "def > > qemu_wrapper_cmdline(data, rootfs_path, library_paths):\n return > > 'false'\n") > > > > in the anonymous python function in allarch.bbclass would do that. > > Ok, that's ugly. How about solving it in qemu.bbclass instead by doing: > > def qemu_wrapper_cmdline(data, rootfs_path, library_paths): > import string > > if bb.data.inherits_class('allarch', data): > return 'false' Unfortunately, that wouldn't fix the problem, since task signatures are computed based on the parsed text of the function, which would still include the reference to the OLDEST_KERNEL variable. A somewhat less ugly approach might be to just to do: if bb.data.inherits_class('qemu', d): d.setVar('QEMU_OPTIONS', '') along with all the other variable changes in allarch.bbclass. -Matt > > ... > > > > > -Matt > > > > > > > > > > > > > > > Cheers, > > > > > > > > > > Richard > > > > > > //Peter > > //Peter > ^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2022-01-09 14:20 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-15 20:16 [OE-core][PATCH] qemu.bbclass: drop OLDEST_KERNEL reference Matt Madison
2021-12-15 20:24 ` Khem Raj
2021-12-15 20:28 ` Matt Madison
2021-12-19 23:36 ` Richard Purdie
2021-12-20 13:40 ` Matt Madison
2021-12-20 13:44 ` Richard Purdie
2022-01-07 11:19 ` Richard Purdie
2022-01-07 12:36 ` Matt Madison
2022-01-07 12:51 ` Richard Purdie
[not found] ` <16C7FE06BC92B547.9201@lists.openembedded.org>
2022-01-07 12:56 ` Richard Purdie
2022-01-07 14:44 ` Matt Madison
2022-01-08 14:34 ` Richard Purdie
2022-01-08 15:10 ` Matt Madison
2022-01-08 15:13 ` Richard Purdie
2022-01-09 9:23 ` Konrad Weihmann
2022-01-09 11:32 ` Peter Kjellerstedt
2022-01-09 12:04 ` Matt Madison
2022-01-09 13:52 ` Peter Kjellerstedt
2022-01-09 14:20 ` Matt Madison
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox