summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-11 10:37:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-14 13:04:29 +0100
commite665be2ad94b736d5a07395303fd71937c021ee8 (patch)
tree81490506fd33c618ef2dffe85f521d80c25c5683
parentf20dfaeb1c31da45bd561f6d8c9d90d97cc6759f (diff)
downloadpoky-e665be2ad94b736d5a07395303fd71937c021ee8.tar.gz
insane: Promote long standing warnings to errors
Most of these warnings have been around and enabled for a long time. In particular, buildpaths has been like this for two years. I'm aware some layers still have not been able to resolve all the warnings but I believe that regardless, it is still time to raise the bar. If the warnings don't get fixed, it is probably a sign that nobody cares about the recipe and it should be dropped. For anyone coming here to find out what changed and how to disable it, if you are going to remove from ERROR_QA and add back to WARN_QA (or just ignore the warnings), please do it with a layer specific override rather than making it global. We have fixed these issues in core and intend to keep them all fixed. If you globally disable the errors, it just means we get patches which end up regressing things. You can do things like: ERROR_QA:remove:layer-mylayername = "buildpaths" not that I'd recommend it. Also note that the next version of Yocto Project Compatible will only be available to layers which are not disabling some set of these errors. (From OE-Core rev: b79b191cc43a45dde2adb61ea349b426cb2461d1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-global/insane.bbclass11
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 6888fa06f0..b6c7348999 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -26,17 +26,16 @@
26 26
27# Elect whether a given type of error is a warning or error, they may 27# Elect whether a given type of error is a warning or error, they may
28# have been set by other files. 28# have been set by other files.
29WARN_QA ?= " libdir xorg-driver-abi buildpaths \ 29WARN_QA ?= "32bit-time native-last"
30ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
30 textrel incompatible-license files-invalid \ 31 textrel incompatible-license files-invalid \
31 infodir build-deps src-uri-bad symlink-to-sysroot multilib \ 32 infodir build-deps src-uri-bad symlink-to-sysroot multilib \
32 invalid-packageconfig host-user-contaminated uppercase-pn \ 33 invalid-packageconfig host-user-contaminated uppercase-pn \
33 mime mime-xdg unlisted-pkg-lics unhandled-features-check \ 34 mime mime-xdg unlisted-pkg-lics unhandled-features-check \
34 missing-update-alternatives native-last missing-ptest \ 35 missing-update-alternatives missing-ptest \
35 license-exists license-no-generic license-syntax license-format \ 36 license-exists license-no-generic license-syntax license-format \
36 license-incompatible license-file-missing obsolete-license \ 37 license-incompatible license-file-missing obsolete-license \
37 32bit-time virtual-slash \ 38 libdir xorg-driver-abi buildpaths \
38 "
39ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
40 perms dep-cmp pkgvarcheck perm-config perm-line perm-link \ 39 perms dep-cmp pkgvarcheck perm-config perm-line perm-link \
41 split-strip packages-list pkgv-undefined var-undefined \ 40 split-strip packages-list pkgv-undefined var-undefined \
42 version-going-backwards expanded-d invalid-chars \ 41 version-going-backwards expanded-d invalid-chars \
@@ -45,7 +44,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
45 already-stripped installed-vs-shipped ldflags compile-host-path \ 44 already-stripped installed-vs-shipped ldflags compile-host-path \
46 install-host-path pn-overrides unknown-configure-option \ 45 install-host-path pn-overrides unknown-configure-option \
47 useless-rpaths rpaths staticdev empty-dirs \ 46 useless-rpaths rpaths staticdev empty-dirs \
48 patch-fuzz patch-status \ 47 patch-fuzz patch-status virtual-slash \
49 " 48 "
50# Add usrmerge QA check based on distro feature 49# Add usrmerge QA check based on distro feature
51ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}" 50ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}"