diff options
| -rw-r--r-- | meta/classes/insane.bbclass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 5b18fadd60..601b6b65bf 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
| @@ -29,6 +29,7 @@ WARN_QA ?= "ldflags useless-rpaths rpaths staticdev libdir xorg-driver-abi \ | |||
| 29 | unknown-configure-option symlink-to-sysroot multilib \ | 29 | unknown-configure-option symlink-to-sysroot multilib \ |
| 30 | invalid-packageconfig host-user-contaminated uppercase-pn patch-fuzz \ | 30 | invalid-packageconfig host-user-contaminated uppercase-pn patch-fuzz \ |
| 31 | mime mime-xdg unlisted-pkg-lics unhandled-features-check \ | 31 | mime mime-xdg unlisted-pkg-lics unhandled-features-check \ |
| 32 | missing-update-alternatives \ | ||
| 32 | " | 33 | " |
| 33 | ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ | 34 | ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ |
| 34 | perms dep-cmp pkgvarcheck perm-config perm-line perm-link \ | 35 | perms dep-cmp pkgvarcheck perm-config perm-line perm-link \ |
| @@ -988,6 +989,14 @@ def package_qa_check_unhandled_features_check(pn, d, messages): | |||
| 988 | if var_set: | 989 | if var_set: |
| 989 | package_qa_handle_error("unhandled-features-check", "%s: recipe doesn't inherit features_check" % pn, d) | 990 | package_qa_handle_error("unhandled-features-check", "%s: recipe doesn't inherit features_check" % pn, d) |
| 990 | 991 | ||
| 992 | QARECIPETEST[missing-update-alternatives] = "package_qa_check_missing_update_alternatives" | ||
| 993 | def package_qa_check_missing_update_alternatives(pn, d, messages): | ||
| 994 | # Look at all packages and find out if any of those sets ALTERNATIVE variable | ||
| 995 | # without inheriting update-alternatives class | ||
| 996 | for pkg in (d.getVar('PACKAGES') or '').split(): | ||
| 997 | if d.getVar('ALTERNATIVE_%s' % pkg) and not bb.data.inherits_class('update-alternatives', d): | ||
| 998 | package_qa_handle_error("missing-update-alternatives", "%s: recipe defines ALTERNATIVE_%s but doesn't inherit update-alternatives. This might fail during do_rootfs later!" % (pn, pkg), d) | ||
| 999 | |||
| 991 | # The PACKAGE FUNC to scan each package | 1000 | # The PACKAGE FUNC to scan each package |
| 992 | python do_package_qa () { | 1001 | python do_package_qa () { |
| 993 | import subprocess | 1002 | import subprocess |
