When the ptest distro feature is disabled, a ptest directory is still created in the install phase, This directory is not cleaned up or consumed by any package and will throw a QA error, e.g.
ERROR: QA Issue: glib-2.0: Files/directories were installed but not shipped /usr/lib/glib-2.0/ptest ERROR: QA run found fatal errors. Please consider fixing them. ERROR: Function failed: do_package_qa This is caused by the do_install_ptest_base[cleandirs] task flag which is not setup to be conditional on ptest being enabled. This patch changes the task flag to emit the cleandirs path only when the ptest distro feature is enabled. Signed-off-by: Nathan Rossi <nathan.ro...@xilinx.com> --- meta/classes/ptest.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index ec10f80..3450085 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass @@ -49,7 +49,7 @@ do_install_ptest_base() { fi } -do_install_ptest_base[cleandirs] = "${D}${PTEST_PATH}" +do_install_ptest_base[cleandirs] = "${@['', '${D}${PTEST_PATH}'][(d.getVar('PTEST_ENABLED', True) or '') == '1']}" addtask configure_ptest_base after do_configure before do_compile addtask compile_ptest_base after do_compile before do_install -- 1.7.9.5 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core