mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
insane.bbclass: Add documentation headers for logical code blocks
(From OE-Core rev: ac24487a05834cc9c02a95bbd281927d98c5886e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -836,6 +836,10 @@ python do_qa_staging() {
|
|||||||
python do_qa_configure() {
|
python do_qa_configure() {
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Check config.log for cross compile issues
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
configs = []
|
configs = []
|
||||||
workdir = d.getVar('WORKDIR', True)
|
workdir = d.getVar('WORKDIR', True)
|
||||||
bb.note("Checking autotools environment for common misconfiguration")
|
bb.note("Checking autotools environment for common misconfiguration")
|
||||||
@@ -852,6 +856,10 @@ Rerun configure task after fixing this. The path was '%s'""" % root)
|
|||||||
if "configure.in" in files:
|
if "configure.in" in files:
|
||||||
configs.append(os.path.join(root, "configure.in"))
|
configs.append(os.path.join(root, "configure.in"))
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Check gettext configuration and dependencies are correct
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
cnf = d.getVar('EXTRA_OECONF', True) or ""
|
cnf = d.getVar('EXTRA_OECONF', True) or ""
|
||||||
if "gettext" not in d.getVar('P', True) and "gcc-runtime" not in d.getVar('P', True) and "--disable-nls" not in cnf:
|
if "gettext" not in d.getVar('P', True) and "gcc-runtime" not in d.getVar('P', True) and "--disable-nls" not in cnf:
|
||||||
ml = d.getVar("MLPREFIX", True) or ""
|
ml = d.getVar("MLPREFIX", True) or ""
|
||||||
@@ -869,8 +877,13 @@ Rerun configure task after fixing this. The path was '%s'""" % root)
|
|||||||
bb.fatal("""%s required but not in DEPENDS for file %s.
|
bb.fatal("""%s required but not in DEPENDS for file %s.
|
||||||
Missing inherit gettext?""" % (gt, config))
|
Missing inherit gettext?""" % (gt, config))
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Check license variables
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
if not package_qa_check_license(workdir, d):
|
if not package_qa_check_license(workdir, d):
|
||||||
bb.fatal("Licensing Error: LIC_FILES_CHKSUM does not match, please fix")
|
bb.fatal("Licensing Error: LIC_FILES_CHKSUM does not match, please fix")
|
||||||
|
|
||||||
}
|
}
|
||||||
# The Staging Func, to check all staging
|
# The Staging Func, to check all staging
|
||||||
#addtask qa_staging after do_populate_sysroot before do_build
|
#addtask qa_staging after do_populate_sysroot before do_build
|
||||||
@@ -886,6 +899,10 @@ python () {
|
|||||||
if "desktop" in tests:
|
if "desktop" in tests:
|
||||||
d.appendVar("PACKAGE_DEPENDS", "desktop-file-utils-native")
|
d.appendVar("PACKAGE_DEPENDS", "desktop-file-utils-native")
|
||||||
|
|
||||||
|
###########################################################################
|
||||||
|
# Check various variables
|
||||||
|
###########################################################################
|
||||||
|
|
||||||
issues = []
|
issues = []
|
||||||
if (d.getVar('PACKAGES', True) or "").split():
|
if (d.getVar('PACKAGES', True) or "").split():
|
||||||
for var in 'RDEPENDS', 'RRECOMMENDS', 'FILES', 'pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm':
|
for var in 'RDEPENDS', 'RRECOMMENDS', 'FILES', 'pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm':
|
||||||
|
|||||||
Reference in New Issue
Block a user