summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorQuentin Schulz <foss@0leil.net>2021-08-11 21:59:39 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-13 14:44:06 +0100
commit3ae80177fb78799f6b42240a6ac8fb4753521aec (patch)
tree4276da30a69c0386384269131174272b41b208cd /meta/classes/insane.bbclass
parent9fe8f880260f404cae3d5befcf394251627fed10 (diff)
downloadpoky-3ae80177fb78799f6b42240a6ac8fb4753521aec.tar.gz
insane.bbclass: fix new override syntax migration
A few variables and messages were not migrated over to the new override syntax (_ to :). Let's fix that. (From OE-Core rev: c595d6040d2e0ef94d7da043b41226e90dddf318) Signed-off-by: Quentin Schulz <foss@0leil.net> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index be5ec60146..810459d432 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -835,11 +835,11 @@ def package_qa_check_deps(pkg, pkgdest, d):
835 try: 835 try:
836 rvar = bb.utils.explode_dep_versions2(localdata.getVar(var) or "") 836 rvar = bb.utils.explode_dep_versions2(localdata.getVar(var) or "")
837 except ValueError as e: 837 except ValueError as e:
838 bb.fatal("%s_%s: %s" % (var, pkg, e)) 838 bb.fatal("%s:%s: %s" % (var, pkg, e))
839 for dep in rvar: 839 for dep in rvar:
840 for v in rvar[dep]: 840 for v in rvar[dep]:
841 if v and not v.startswith(('< ', '= ', '> ', '<= ', '>=')): 841 if v and not v.startswith(('< ', '= ', '> ', '<= ', '>=')):
842 error_msg = "%s_%s is invalid: %s (%s) only comparisons <, =, >, <=, and >= are allowed" % (var, pkg, dep, v) 842 error_msg = "%s:%s is invalid: %s (%s) only comparisons <, =, >, <=, and >= are allowed" % (var, pkg, dep, v)
843 package_qa_handle_error("dep-cmp", error_msg, d) 843 package_qa_handle_error("dep-cmp", error_msg, d)
844 844
845 check_valid_deps('RDEPENDS') 845 check_valid_deps('RDEPENDS')
@@ -888,7 +888,7 @@ def package_qa_check_expanded_d(package, d, messages):
888 expanded_d = d.getVar('D') 888 expanded_d = d.getVar('D')
889 889
890 for var in 'FILES','pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm': 890 for var in 'FILES','pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm':
891 bbvar = d.getVar(var + "_" + package) or "" 891 bbvar = d.getVar(var + ":" + package) or ""
892 if expanded_d in bbvar: 892 if expanded_d in bbvar:
893 if var == 'FILES': 893 if var == 'FILES':
894 package_qa_add_message(messages, "expanded-d", "FILES in %s recipe should not contain the ${D} variable as it references the local build directory not the target filesystem, best solution is to remove the ${D} reference" % package) 894 package_qa_add_message(messages, "expanded-d", "FILES in %s recipe should not contain the ${D} variable as it references the local build directory not the target filesystem, best solution is to remove the ${D} reference" % package)
@@ -1325,10 +1325,10 @@ python () {
1325 if prog.search(pn): 1325 if prog.search(pn):
1326 package_qa_handle_error("uppercase-pn", 'PN: %s is upper case, this can result in unexpected behavior.' % pn, d) 1326 package_qa_handle_error("uppercase-pn", 'PN: %s is upper case, this can result in unexpected behavior.' % pn, d)
1327 1327
1328 # Some people mistakenly use DEPENDS_${PN} instead of DEPENDS and wonder 1328 # Some people mistakenly use DEPENDS:${PN} instead of DEPENDS and wonder
1329 # why it doesn't work. 1329 # why it doesn't work.
1330 if (d.getVar(d.expand('DEPENDS_${PN}'))): 1330 if (d.getVar(d.expand('DEPENDS:${PN}'))):
1331 package_qa_handle_error("pkgvarcheck", "recipe uses DEPENDS_${PN}, should use DEPENDS", d) 1331 package_qa_handle_error("pkgvarcheck", "recipe uses DEPENDS:${PN}, should use DEPENDS", d)
1332 1332
1333 issues = [] 1333 issues = []
1334 if (d.getVar('PACKAGES') or "").split(): 1334 if (d.getVar('PACKAGES') or "").split():