From: Alexander Kanavin <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: [PATCH 01/34] selftest: always tweak ERROR_QA/WARN_QA per package
Date: Tue, 27 Aug 2024 07:23:21 +0200 [thread overview]
Message-ID: <20240827052354.1319810-1-alex.kanavin@gmail.com> (raw)
From: Alexander Kanavin <alex@linutronix.de>
Globally changing it completely destroys sstate reuse, as seen for example here:
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3763/steps/14/logs/stdio
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
meta/lib/oeqa/selftest/cases/buildoptions.py | 6 +++---
meta/lib/oeqa/selftest/cases/incompatible_lic.py | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py
index 31dafaa9c50..4b6f89d8cb6 100644
--- a/meta/lib/oeqa/selftest/cases/buildoptions.py
+++ b/meta/lib/oeqa/selftest/cases/buildoptions.py
@@ -84,7 +84,7 @@ class SanityOptionsTest(OESelftestTestCase):
self.write_config("INHERIT:remove = \"report-error\"")
if "packages-list" not in get_bb_var("ERROR_QA"):
- self.append_config("ERROR_QA:append = \" packages-list\"")
+ self.append_config("ERROR_QA:append:pn-xcursor-transparent-theme = \" packages-list\"")
self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"')
self.add_command_to_tearDown('bitbake -c clean xcursor-transparent-theme')
@@ -94,8 +94,8 @@ class SanityOptionsTest(OESelftestTestCase):
self.assertTrue(line and line.startswith("ERROR:"), msg=res.output)
self.assertEqual(res.status, 1, msg = "bitbake reported exit code %s. It should have been 1. Bitbake output: %s" % (str(res.status), res.output))
self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"')
- self.append_config('ERROR_QA:remove = "packages-list"')
- self.append_config('WARN_QA:append = " packages-list"')
+ self.append_config('ERROR_QA:remove:pn-xcursor-transparent-theme = "packages-list"')
+ self.append_config('WARN_QA:append:pn-xcursor-transparent-theme = " packages-list"')
res = bitbake("xcursor-transparent-theme -f -c package")
self.delete_recipeinc('xcursor-transparent-theme')
line = self.getline(res, "QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors.")
diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py
index 439c1b9f0ec..be5484bca49 100644
--- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py
+++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py
@@ -114,7 +114,7 @@ INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0* LGPL-3.0*"
def test_bash_and_license(self):
self.disable_class("create-spdx")
- self.write_config(self.default_config() + '\nLICENSE:append:pn-bash = " & SomeLicense"\nERROR_QA:remove = "license-exists"')
+ self.write_config(self.default_config() + '\nLICENSE:append:pn-bash = " & SomeLicense"\nERROR_QA:remove:pn-bash = "license-exists"')
error_msg = "ERROR: core-image-minimal-1.0-r0 do_rootfs: Package bash cannot be installed into the image because it has incompatible license(s): GPL-3.0-or-later"
result = bitbake('core-image-minimal', ignore_status=True)
@@ -123,12 +123,12 @@ INCOMPATIBLE_LICENSE:pn-core-image-minimal = "GPL-3.0* LGPL-3.0*"
def test_bash_or_license(self):
self.disable_class("create-spdx")
- self.write_config(self.default_config() + '\nLICENSE:append:pn-bash = " | SomeLicense"\nERROR_QA:remove = "license-exists license-file-missing"')
+ self.write_config(self.default_config() + '\nLICENSE:append:pn-bash = " | SomeLicense"\nERROR_QA:remove:pn-bash = "license-exists"\nERROR_QA:remove:pn-core-image-minimal = "license-file-missing"')
bitbake('core-image-minimal')
def test_bash_license_exceptions(self):
- self.write_config(self.default_config() + '\nINCOMPATIBLE_LICENSE_EXCEPTIONS:pn-core-image-minimal = "bash:GPL-3.0-or-later"\nERROR_QA:remove = "license-exception"')
+ self.write_config(self.default_config() + '\nINCOMPATIBLE_LICENSE_EXCEPTIONS:pn-core-image-minimal = "bash:GPL-3.0-or-later"\nERROR_QA:remove:pn-core-image-minimal = "license-exception"')
bitbake('core-image-minimal')
--
2.39.2
next reply other threads:[~2024-08-27 5:24 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 5:23 Alexander Kanavin [this message]
2024-08-27 5:23 ` [PATCH 02/34] selftest: use INIT_MANAGER to enable systemd instead of custom settings Alexander Kanavin
2024-08-27 5:23 ` [PATCH 03/34] xmlto: check upstream version tags, not new commits Alexander Kanavin
2024-08-27 5:23 ` [PATCH 04/34] glib-2.0: update 2.80.2 -> 2.80.4 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 05/34] lttng-modules: update 2.13.13 -> 2.13.14 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 06/34] automake: update 1.16.5 -> 1.17 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 07/34] fmt: update 10.2.1 -> 11.0.2 Alexander Kanavin
2024-08-28 18:16 ` [OE-core] " Khem Raj
2024-08-27 5:23 ` [PATCH 08/34] git: 2.45.2 -> 2.46.0 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 09/34] perlcross: update 1.5.2 -> 1.6 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 10/34] perl: update 5.38.2 -> 5.40.0 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 11/34] gnu-config: update to latest revision Alexander Kanavin
2024-08-27 5:23 ` [PATCH 12/34] python3-license-expression: update 30.3.0 -> 30.3.1 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 13/34] python3-pip: 24.0 -> 24.2 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 14/34] python3-pyopenssl: update 24.1.0 -> 24.2.1 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 15/34] python3-pyyaml: update 6.0.1 -> 6.0.2 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 16/34] python3-scons: update 4.7.0 -> 4.8.0 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 17/34] cargo-c-native: update 0.9.30 -> 0.10.3 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 18/34] go-helloworld: update to latest revision Alexander Kanavin
2024-08-27 5:23 ` [PATCH 19/34] vulkan-samples: " Alexander Kanavin
2024-08-27 5:23 ` [PATCH 20/34] ffmpeg: update 6.1.1 -> 7.0.2 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 21/34] libksba: update 1.6.6 -> 1.6.7 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 22/34] p11-kit: update 0.25.3 -> 0.25.5 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 23/34] iproute2: upgrade 6.9.0 -> 6.10.0 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 24/34] ifupdown: upgrade 0.8.41 -> 0.8.43 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 25/34] libdnf: upgrade 0.73.2 -> 0.73.3 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 26/34] mmc-utils: upgrade to latest revision Alexander Kanavin
2024-08-27 5:23 ` [PATCH 27/34] adwaita-icon-theme: upgrade 46.0 -> 46.2 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 28/34] hicolor-icon-theme: upgrade 0.17 -> 0.18 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 29/34] waffle: upgrade 1.8.0 -> 1.8.1 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 30/34] libtraceevent: upgrade 1.8.2 -> 1.8.3 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 31/34] alsa-utils: upgrade 1.2.11 -> 1.2.12 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 32/34] lz4: upgrade 1.9.4 -> 1.10.0 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 33/34] vte: upgrade 0.74.2 -> 0.76.3 Alexander Kanavin
2024-08-27 5:23 ` [PATCH 34/34] cracklib: update 2.9.11 -> 2.10.2 Alexander Kanavin
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=20240827052354.1319810-1-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=alex@linutronix.de \
--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