diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-07-15 09:35:53 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-07-15 09:54:48 +0100 |
commit | 04472ecf9d368db0a9e759810fefcffe8a4ca41c (patch) | |
tree | 73534f7ab929c6e8083a8a3edc45827726cdb814 /meta/classes/insane.bbclass | |
parent | 8fe2bb0123bbf5096f33caa3c06de9a62f97d5ea (diff) | |
download | poky-04472ecf9d368db0a9e759810fefcffe8a4ca41c.tar.gz |
insane.bbclass: move license check to after configure
Only checking the license at packaging time means we don't check native builds,
so move the check to after do_configure
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 17790919c1..6b14f90027 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -507,7 +507,6 @@ def package_qa_check_rdepends(pkg, pkgdest, d): | |||
507 | python do_package_qa () { | 507 | python do_package_qa () { |
508 | bb.note("DO PACKAGE QA") | 508 | bb.note("DO PACKAGE QA") |
509 | pkgdest = bb.data.getVar('PKGDEST', d, True) | 509 | pkgdest = bb.data.getVar('PKGDEST', d, True) |
510 | workdir = bb.data.getVar('WORKDIR', d, True) | ||
511 | packages = bb.data.getVar('PACKAGES',d, True) | 510 | packages = bb.data.getVar('PACKAGES',d, True) |
512 | 511 | ||
513 | # no packages should be scanned | 512 | # no packages should be scanned |
@@ -534,7 +533,7 @@ python do_package_qa () { | |||
534 | rdepends_sane = False | 533 | rdepends_sane = False |
535 | 534 | ||
536 | 535 | ||
537 | if not walk_sane or not rdepends_sane or not package_qa_check_license(workdir, d): | 536 | if not walk_sane or not rdepends_sane: |
538 | bb.fatal("QA run found fatal errors. Please consider fixing them.") | 537 | bb.fatal("QA run found fatal errors. Please consider fixing them.") |
539 | bb.note("DONE with PACKAGE QA") | 538 | bb.note("DONE with PACKAGE QA") |
540 | } | 539 | } |
@@ -549,13 +548,14 @@ python do_qa_staging() { | |||
549 | bb.fatal("QA staging was broken by the package built above") | 548 | bb.fatal("QA staging was broken by the package built above") |
550 | } | 549 | } |
551 | 550 | ||
552 | # Check broken config.log files & for packages requiring Gettext which don't | 551 | # Check broken config.log files, for packages requiring Gettext which don't |
553 | # have it in DEPENDS | 552 | # have it in DEPENDS and for correct LIC_FILES_CHKSUM |
554 | addtask qa_configure after do_configure before do_compile | 553 | addtask qa_configure after do_configure before do_compile |
555 | python do_qa_configure() { | 554 | python do_qa_configure() { |
556 | configs = [] | 555 | configs = [] |
556 | workdir = bb.data.getVar('WORKDIR', d, True) | ||
557 | bb.note("Checking autotools environment for common misconfiguration") | 557 | bb.note("Checking autotools environment for common misconfiguration") |
558 | for root, dirs, files in os.walk(bb.data.getVar('WORKDIR', d, True)): | 558 | for root, dirs, files in os.walk(workdir): |
559 | statement = "grep 'CROSS COMPILE Badness:' %s > /dev/null" % \ | 559 | statement = "grep 'CROSS COMPILE Badness:' %s > /dev/null" % \ |
560 | os.path.join(root,"config.log") | 560 | os.path.join(root,"config.log") |
561 | if "config.log" in files: | 561 | if "config.log" in files: |
@@ -582,4 +582,7 @@ Rerun configure task after fixing this. The path was '%s'""" % root) | |||
582 | if os.system(gnu) == 0: | 582 | if os.system(gnu) == 0: |
583 | bb.fatal("""Gettext required but not in DEPENDS for file %s. | 583 | bb.fatal("""Gettext required but not in DEPENDS for file %s. |
584 | Missing inherit gettext?""" % config) | 584 | Missing inherit gettext?""" % config) |
585 | |||
586 | if not package_qa_check_license(workdir, d): | ||
587 | bb.fatal("Licensing warning: LIC_FILES_CHKSUM does not match, please fix") | ||
585 | } | 588 | } |