diff options
| author | Philip Lorenz <philip.lorenz@bmw.de> | 2025-07-28 11:59:29 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-31 10:48:35 +0100 |
| commit | c4110987b193403ed5fdb0204f3395c77afc323e (patch) | |
| tree | 9296a35928767fb95fa2ec6e37e2fb4cedfb75b7 | |
| parent | 5bdce86cde17f57ffcea81895ea06689ac77fe0a (diff) | |
| download | poky-c4110987b193403ed5fdb0204f3395c77afc323e.tar.gz | |
package: Drop var-undefined QA check
The variables checked for are mandatory in all cases so a QA check does
not seem to be the right choice for this. Additionally, the code never
called `exit_if_errors` so the reported QA issue didn't actually fail
the task.
(From OE-Core rev: cb69d7eba80215f9f8b74dafe40ca2289fa294aa)
Signed-off-by: Philip Lorenz <philip.lorenz@bmw.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-global/insane.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes-global/package.bbclass | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 4ef664b3ce..fed8163c3e 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
| @@ -35,7 +35,7 @@ CHECKLAYER_REQUIRED_TESTS = "\ | |||
| 35 | packages-list patch-fuzz patch-status perllocalpod perm-config perm-line perm-link recipe-naming \ | 35 | packages-list patch-fuzz patch-status perllocalpod perm-config perm-line perm-link recipe-naming \ |
| 36 | pkgconfig pkgvarcheck pkgv-undefined pn-overrides shebang-size src-uri-bad symlink-to-sysroot \ | 36 | pkgconfig pkgvarcheck pkgv-undefined pn-overrides shebang-size src-uri-bad symlink-to-sysroot \ |
| 37 | unhandled-features-check unknown-configure-option unlisted-pkg-lics uppercase-pn useless-rpaths \ | 37 | unhandled-features-check unknown-configure-option unlisted-pkg-lics uppercase-pn useless-rpaths \ |
| 38 | var-undefined virtual-slash xorg-driver-abi" | 38 | virtual-slash xorg-driver-abi" |
| 39 | 39 | ||
| 40 | # Elect whether a given type of error is a warning or error, they may | 40 | # Elect whether a given type of error is a warning or error, they may |
| 41 | # have been set by other files. | 41 | # have been set by other files. |
diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass index 9be1d6a5b1..d7ff333f20 100644 --- a/meta/classes-global/package.bbclass +++ b/meta/classes-global/package.bbclass | |||
| @@ -494,8 +494,7 @@ python do_package () { | |||
| 494 | pn = d.getVar('PN') | 494 | pn = d.getVar('PN') |
| 495 | 495 | ||
| 496 | if not workdir or not outdir or not dest or not dvar or not pn: | 496 | if not workdir or not outdir or not dest or not dvar or not pn: |
| 497 | msg = "WORKDIR, DEPLOY_DIR, D, PN and PKGD all must be defined, unable to package" | 497 | bb.fatal("WORKDIR, DEPLOY_DIR, D, PN and PKGD all must be defined, unable to package") |
| 498 | oe.qa.handle_error("var-undefined", msg, d) | ||
| 499 | return | 498 | return |
| 500 | 499 | ||
| 501 | bb.build.exec_func("package_setup_pkgv", d) | 500 | bb.build.exec_func("package_setup_pkgv", d) |
