😀 > On 19 Jun 2023, at 15:06, Richard Purdie via lists.openembedded.org > <richard.purdie=linuxfoundation....@lists.openembedded.org> wrote: > > Now that we have layer overrides, we can easily enable patch-status in > ERROR_QA without the hardcoded code making it easier for other layers > to opt into the checks. > > Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> > --- > meta/classes-global/insane.bbclass | 16 +++------------- > 1 file changed, 3 insertions(+), 13 deletions(-) > > diff --git a/meta/classes-global/insane.bbclass > b/meta/classes-global/insane.bbclass > index f391fa80538..114781c7803 100644 > --- a/meta/classes-global/insane.bbclass > +++ b/meta/classes-global/insane.bbclass > @@ -45,10 +45,11 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch > pkgconfig la \ > already-stripped installed-vs-shipped ldflags compile-host-path \ > install-host-path pn-overrides unknown-configure-option \ > useless-rpaths rpaths staticdev empty-dirs \ > - patch-fuzz patch-status-core\ > + patch-fuzz \ > " > # Add usrmerge QA check based on distro feature > ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' > usrmerge', '', d)}" > +ERROR_QA:append:layer-core = " patch-status" > > FAKEROOT_QA = "host-user-contaminated" > FAKEROOT_QA[doc] = "QA tests which need to run under fakeroot. If any \ > @@ -1340,24 +1341,13 @@ python do_qa_patch() { > import re > from oe import patch > > - allpatches = False > - if bb.utils.filter('ERROR_QA', 'patch-status-noncore', d) or > bb.utils.filter('WARN_QA', 'patch-status-noncore', d): > - allpatches = True > - > coremeta_path = os.path.join(d.getVar('COREBASE'), 'meta', '') > for url in patch.src_patches(d): > (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url) > > - # skip patches not in oe-core > - patchtype = "patch-status-core" > - if not os.path.abspath(fullpath).startswith(coremeta_path): > - patchtype = "patch-status-noncore" > - if not allpatches: > - continue > - > msg = oe.qa.check_upstream_status(fullpath) > if msg: > - oe.qa.handle_error(patchtype, msg, d) > + oe.qa.handle_error("patch-status", msg, d) > > oe.qa.exit_if_errors(d) > } > -- > 2.39.2 > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#183120): https://lists.openembedded.org/g/openembedded-core/message/183120 Mute This Topic: https://lists.openembedded.org/mt/99623855/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-