diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 23:28:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-02 15:44:10 +0100 |
commit | bb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch) | |
tree | 76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/classes/insane.bbclass | |
parent | fcc456ee4b8f619134abb4649db53c638074082c (diff) | |
download | poky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz |
Convert to new override syntax
This is the result of automated script conversion:
scripts/contrib/convert-overrides.py <oe-core directory>
converting the metadata to use ":" as the override character instead of "_".
(From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 763d5f1da2..f9a35f2daa 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -40,7 +40,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \ | |||
40 | useless-rpaths rpaths staticdev \ | 40 | useless-rpaths rpaths staticdev \ |
41 | " | 41 | " |
42 | # Add usrmerge QA check based on distro feature | 42 | # Add usrmerge QA check based on distro feature |
43 | ERROR_QA_append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}" | 43 | ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}" |
44 | 44 | ||
45 | FAKEROOT_QA = "host-user-contaminated" | 45 | FAKEROOT_QA = "host-user-contaminated" |
46 | FAKEROOT_QA[doc] = "QA tests which need to run under fakeroot. If any \ | 46 | FAKEROOT_QA[doc] = "QA tests which need to run under fakeroot. If any \ |
@@ -246,7 +246,7 @@ def package_qa_check_mime_xdg(path, name, d, elf, messages): | |||
246 | pkgname = name | 246 | pkgname = name |
247 | if name == d.getVar('PN'): | 247 | if name == d.getVar('PN'): |
248 | pkgname = '${PN}' | 248 | pkgname = '${PN}' |
249 | wstr += "If yes: add \'inhert mime-xdg\' and \'MIME_XDG_PACKAGES += \"%s\"\' / if no add \'INSANE_SKIP_%s += \"mime-xdg\"\' to recipe." % (pkgname, pkgname) | 249 | wstr += "If yes: add \'inhert mime-xdg\' and \'MIME_XDG_PACKAGES += \"%s\"\' / if no add \'INSANE_SKIP:%s += \"mime-xdg\"\' to recipe." % (pkgname, pkgname) |
250 | package_qa_add_message(messages, "mime-xdg", wstr) | 250 | package_qa_add_message(messages, "mime-xdg", wstr) |
251 | if mime_type_found: | 251 | if mime_type_found: |
252 | package_qa_add_message(messages, "mime-xdg", "package contains desktop file with key 'MimeType' but does not inhert mime-xdg: %s path '%s'" % \ | 252 | package_qa_add_message(messages, "mime-xdg", "package contains desktop file with key 'MimeType' but does not inhert mime-xdg: %s path '%s'" % \ |
@@ -279,7 +279,7 @@ def package_qa_check_libdir(d): | |||
279 | # Skip subdirectories for any packages with libdir in INSANE_SKIP | 279 | # Skip subdirectories for any packages with libdir in INSANE_SKIP |
280 | skippackages = [] | 280 | skippackages = [] |
281 | for package in dirs: | 281 | for package in dirs: |
282 | if 'libdir' in (d.getVar('INSANE_SKIP_' + package) or "").split(): | 282 | if 'libdir' in (d.getVar('INSANE_SKIP:' + package) or "").split(): |
283 | bb.note("Package %s skipping libdir QA test" % (package)) | 283 | bb.note("Package %s skipping libdir QA test" % (package)) |
284 | skippackages.append(package) | 284 | skippackages.append(package) |
285 | elif d.getVar('PACKAGE_DEBUG_SPLIT_STYLE') == 'debug-file-directory' and package.endswith("-dbg"): | 285 | elif d.getVar('PACKAGE_DEBUG_SPLIT_STYLE') == 'debug-file-directory' and package.endswith("-dbg"): |
@@ -483,7 +483,7 @@ def package_qa_check_xorg_driver_abi(path, name, d, elf, messages): | |||
483 | driverdir = d.expand("${libdir}/xorg/modules/drivers/") | 483 | driverdir = d.expand("${libdir}/xorg/modules/drivers/") |
484 | if driverdir in path and path.endswith(".so"): | 484 | if driverdir in path and path.endswith(".so"): |
485 | mlprefix = d.getVar('MLPREFIX') or '' | 485 | mlprefix = d.getVar('MLPREFIX') or '' |
486 | for rdep in bb.utils.explode_deps(d.getVar('RDEPENDS_' + name) or ""): | 486 | for rdep in bb.utils.explode_deps(d.getVar('RDEPENDS:' + name) or ""): |
487 | if rdep.startswith("%sxorg-abi-" % mlprefix): | 487 | if rdep.startswith("%sxorg-abi-" % mlprefix): |
488 | return | 488 | return |
489 | package_qa_add_message(messages, "xorg-driver-abi", "Package %s contains Xorg driver (%s) but no xorg-abi- dependencies" % (name, os.path.basename(path))) | 489 | package_qa_add_message(messages, "xorg-driver-abi", "Package %s contains Xorg driver (%s) but no xorg-abi- dependencies" % (name, os.path.basename(path))) |
@@ -795,7 +795,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d): | |||
795 | 795 | ||
796 | # The python is not a package, but python-core provides it, so | 796 | # The python is not a package, but python-core provides it, so |
797 | # skip checking /usr/bin/python if python is in the rdeps, in | 797 | # skip checking /usr/bin/python if python is in the rdeps, in |
798 | # case there is a RDEPENDS_pkg = "python" in the recipe. | 798 | # case there is a RDEPENDS:pkg = "python" in the recipe. |
799 | for py in [ d.getVar('MLPREFIX') + "python", "python" ]: | 799 | for py in [ d.getVar('MLPREFIX') + "python", "python" ]: |
800 | if py in done: | 800 | if py in done: |
801 | filerdepends.pop("/usr/bin/python",None) | 801 | filerdepends.pop("/usr/bin/python",None) |
@@ -808,7 +808,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d): | |||
808 | # For Saving the FILERPROVIDES, RPROVIDES and FILES_INFO | 808 | # For Saving the FILERPROVIDES, RPROVIDES and FILES_INFO |
809 | rdep_data = oe.packagedata.read_subpkgdata(rdep, d) | 809 | rdep_data = oe.packagedata.read_subpkgdata(rdep, d) |
810 | for key in rdep_data: | 810 | for key in rdep_data: |
811 | if key.startswith("FILERPROVIDES_") or key.startswith("RPROVIDES_"): | 811 | if key.startswith("FILERPROVIDES_") or key.startswith("RPROVIDES:"): |
812 | for subkey in bb.utils.explode_deps(rdep_data[key]): | 812 | for subkey in bb.utils.explode_deps(rdep_data[key]): |
813 | filerdepends.pop(subkey,None) | 813 | filerdepends.pop(subkey,None) |
814 | # Add the files list to the rprovides | 814 | # Add the files list to the rprovides |
@@ -821,7 +821,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d): | |||
821 | break | 821 | break |
822 | if filerdepends: | 822 | if filerdepends: |
823 | for key in filerdepends: | 823 | for key in filerdepends: |
824 | error_msg = "%s contained in package %s requires %s, but no providers found in RDEPENDS_%s?" % \ | 824 | error_msg = "%s contained in package %s requires %s, but no providers found in RDEPENDS:%s?" % \ |
825 | (filerdepends[key].replace("_%s" % pkg, "").replace("@underscore@", "_"), pkg, key, pkg) | 825 | (filerdepends[key].replace("_%s" % pkg, "").replace("@underscore@", "_"), pkg, key, pkg) |
826 | package_qa_handle_error("file-rdeps", error_msg, d) | 826 | package_qa_handle_error("file-rdeps", error_msg, d) |
827 | package_qa_check_rdepends[vardepsexclude] = "OVERRIDES" | 827 | package_qa_check_rdepends[vardepsexclude] = "OVERRIDES" |
@@ -903,7 +903,7 @@ def package_qa_check_unlisted_pkg_lics(package, d, messages): | |||
903 | """ | 903 | """ |
904 | Check that all licenses for a package are among the licenses for the recipe. | 904 | Check that all licenses for a package are among the licenses for the recipe. |
905 | """ | 905 | """ |
906 | pkg_lics = d.getVar('LICENSE_' + package) | 906 | pkg_lics = d.getVar('LICENSE:' + package) |
907 | if not pkg_lics: | 907 | if not pkg_lics: |
908 | return True | 908 | return True |
909 | 909 | ||
@@ -913,7 +913,7 @@ def package_qa_check_unlisted_pkg_lics(package, d, messages): | |||
913 | return True | 913 | return True |
914 | 914 | ||
915 | package_qa_add_message(messages, "unlisted-pkg-lics", | 915 | package_qa_add_message(messages, "unlisted-pkg-lics", |
916 | "LICENSE_%s includes licenses (%s) that are not " | 916 | "LICENSE:%s includes licenses (%s) that are not " |
917 | "listed in LICENSE" % (package, ' '.join(unlisted))) | 917 | "listed in LICENSE" % (package, ' '.join(unlisted))) |
918 | return False | 918 | return False |
919 | 919 | ||
@@ -996,8 +996,8 @@ def package_qa_check_missing_update_alternatives(pn, d, messages): | |||
996 | # Look at all packages and find out if any of those sets ALTERNATIVE variable | 996 | # Look at all packages and find out if any of those sets ALTERNATIVE variable |
997 | # without inheriting update-alternatives class | 997 | # without inheriting update-alternatives class |
998 | for pkg in (d.getVar('PACKAGES') or '').split(): | 998 | for pkg in (d.getVar('PACKAGES') or '').split(): |
999 | if d.getVar('ALTERNATIVE_%s' % pkg) and not bb.data.inherits_class('update-alternatives', d): | 999 | if d.getVar('ALTERNATIVE:%s' % pkg) and not bb.data.inherits_class('update-alternatives', d): |
1000 | 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) | 1000 | 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) |
1001 | 1001 | ||
1002 | # The PACKAGE FUNC to scan each package | 1002 | # The PACKAGE FUNC to scan each package |
1003 | python do_package_qa () { | 1003 | python do_package_qa () { |
@@ -1066,7 +1066,7 @@ python do_package_qa () { | |||
1066 | 1066 | ||
1067 | for package in packages: | 1067 | for package in packages: |
1068 | skip = set((d.getVar('INSANE_SKIP') or "").split() + | 1068 | skip = set((d.getVar('INSANE_SKIP') or "").split() + |
1069 | (d.getVar('INSANE_SKIP_' + package) or "").split()) | 1069 | (d.getVar('INSANE_SKIP:' + package) or "").split()) |
1070 | if skip: | 1070 | if skip: |
1071 | bb.note("Package %s skipping QA tests: %s" % (package, str(skip))) | 1071 | bb.note("Package %s skipping QA tests: %s" % (package, str(skip))) |
1072 | 1072 | ||
@@ -1108,7 +1108,7 @@ addtask do_package_qa after do_packagedata do_package before do_build | |||
1108 | python() { | 1108 | python() { |
1109 | pkgs = (d.getVar('PACKAGES') or '').split() | 1109 | pkgs = (d.getVar('PACKAGES') or '').split() |
1110 | for pkg in pkgs: | 1110 | for pkg in pkgs: |
1111 | d.appendVarFlag("do_package_qa", "vardeps", " INSANE_SKIP_{}".format(pkg)) | 1111 | d.appendVarFlag("do_package_qa", "vardeps", " INSANE_SKIP:{}".format(pkg)) |
1112 | } | 1112 | } |
1113 | 1113 | ||
1114 | SSTATETASKS += "do_package_qa" | 1114 | SSTATETASKS += "do_package_qa" |
@@ -1309,8 +1309,8 @@ python () { | |||
1309 | msg = "FILESEXTRAPATHS-variable, must always use _prepend (or _append)\n" | 1309 | msg = "FILESEXTRAPATHS-variable, must always use _prepend (or _append)\n" |
1310 | msg += "type of assignment, and don't forget the colon.\n" | 1310 | msg += "type of assignment, and don't forget the colon.\n" |
1311 | msg += "Please assign it with the format of:\n" | 1311 | msg += "Please assign it with the format of:\n" |
1312 | msg += " FILESEXTRAPATHS_append := \":${THISDIR}/Your_Files_Path\" or\n" | 1312 | msg += " FILESEXTRAPATHS:append := \":${THISDIR}/Your_Files_Path\" or\n" |
1313 | msg += " FILESEXTRAPATHS_prepend := \"${THISDIR}/Your_Files_Path:\"\n" | 1313 | msg += " FILESEXTRAPATHS:prepend := \"${THISDIR}/Your_Files_Path:\"\n" |
1314 | msg += "in your bbappend file\n\n" | 1314 | msg += "in your bbappend file\n\n" |
1315 | msg += "Your incorrect assignment is:\n" | 1315 | msg += "Your incorrect assignment is:\n" |
1316 | msg += "%s\n" % extrapaths | 1316 | msg += "%s\n" % extrapaths |