From: Ryan Eatmon <reatmon@ti.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [OE-core][PATCH] package: Add support for INSANE_SKIP for incompatible-license
Date: Mon, 15 Jul 2024 14:07:38 -0500 [thread overview]
Message-ID: <20240715190738.32206-1-reatmon@ti.com> (raw)
With the move to make more warnings into errors it is inevitable that we
will need more hooks to skip the errors on a recipe by recipe basis.
This patch just adds INSANE_SKIP support for the incompatible-license check.
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
meta/lib/oe/package.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index e6b46a0dc5..a2b9019db6 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -1411,8 +1411,11 @@ def populate_packages(d):
for pkg in packages:
licenses = d.getVar('_exclude_incompatible-' + pkg)
if licenses:
- msg = "Excluding %s from packaging as it has incompatible license(s): %s" % (pkg, licenses)
- oe.qa.handle_error("incompatible-license", msg, d)
+ if "incompatible-license" in (d.getVar('INSANE_SKIP:' + pn) or "").split():
+ bb.note("Package %s skipping QA tests: incompatible-license" % pn)
+ else:
+ msg = "Excluding %s from packaging as it has incompatible license(s): %s" % (pkg, licenses)
+ oe.qa.handle_error("incompatible-license", msg, d)
else:
package_list.append(pkg)
d.setVar('PACKAGES', ' '.join(package_list))
--
2.17.1
next reply other threads:[~2024-07-15 19:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-15 19:07 Ryan Eatmon [this message]
2024-07-16 7:57 ` [OE-core][PATCH] package: Add support for INSANE_SKIP for incompatible-license Alexander Kanavin
2024-07-16 9:00 ` Richard Purdie
[not found] ` <17E2A5EE047FA37E.16356@lists.openembedded.org>
2024-07-16 9:43 ` Richard Purdie
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=20240715190738.32206-1-reatmon@ti.com \
--to=reatmon@ti.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