qt5-ptest.inc: fix qtxmlpatterns:do_install_ptest out-of-order call
PATCH v2 1/1 qt5-ptest.inc: fix qtxmlpatterns:do_install_ptest out-of-order call
From: Denys Dmytriyenko <[email protected]>
ptest.bbclass provides a set of standard do_*_ptest_base tasks. Each of them calls a corresponding regular do_*_ptest task, that components are supposed to override for own implementation. When PTEST_ENABLED is not set, an anonymous python function removes all do_*_ptest_base tasks from the queue. qt5-ptest.inc adds a special case for do_populate_sysroot and re-arranges the order or ptest tasks due to that. But, unfortunately, do_install_ptest was added directly, not do_install_ptest_base, hence when "ptest" is disabled and all other do_*_ptest_base tasks are removed, this one do_install_ptest task is left w/o dependencies and gets scheduled for execution very early on, even before pseudo-native gets built and stages "fakeroot" functionality. The fix is to add do_install_ptest_base task, which calls do_install_ptest only when "ptest" is enabled.
---
v2 - fix circular dependencies, delete default do_install_ptest_base
recipes-qt/qt5/qt5-ptest.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
recipes-qt/qt5/qt5-ptest.inc +3 -2
@@ -4,8 +4,9 @@ inherit ptest addtask do_populate_sysroot after do_install before do_compile_ptest_base deltask do_compile_ptest_base -addtask do_compile_ptest_base after do_populate_sysroot before do_install_ptest -addtask do_install_ptest after do_compile_ptest_base before do_package +addtask do_compile_ptest_base after do_populate_sysroot before do_install_ptest_base +deltask do_install_ptest_base +addtask do_install_ptest_base after do_compile_ptest_base before do_package do_compile_ptest() { cd ${S}/tests
Signature · 1 line
2.7.4
Either this or the objcopy change seems to cause:
http://errors.yoctoproject.org/Errors/Details/157417/
Quoted 50 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
ptest.bbclass provides a set of standard do_*_ptest_base tasks. Each of them calls a corresponding regular do_*_ptest task, that components are supposed to override for own implementation. When
PTEST_ENABLEDis not set, an anonymous python function removes all do_*_ptest_base tasks from the queue. qt5-ptest.inc adds a special case fordo_populate_sysrootand re-arranges the order or ptest tasks due to that. But, unfortunately,do_install_ptestwas added directly, notdo_install_ptest_base, hence when "ptest" is disabled and all other do_*_ptest_base tasks are removed, this onedo_install_ptesttask is left w/o dependencies and gets scheduled for execution very early on, even before pseudo-native gets built and stages "fakeroot" functionality. The fix is to adddo_install_ptest_basetask, which callsdo_install_ptestonly when "ptest" is enabled.Signed-off-by Denys Dmytriyenko <[email protected]>---
v2 - fix circular dependencies, delete defaultdo_install_ptest_baserecipes-qt/qt5/qt5-ptest.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)recipes-qt/qt5/qt5-ptest.inc +0
-1@@ -4,8 +4,9 @@ inherit ptest addtask do_populate_sysroot after do_install before do_compile_ptest_base deltask do_compile_ptest_base -addtask do_compile_ptest_base after do_populate_sysroot before
do_install_ptestrecipes-qt/qt5/qt5-ptest.inc +1
-1-addtask do_install_ptest after do_compile_ptest_base before do_package +addtask do_compile_ptest_base after do_populate_sysroot before
do_install_ptest_baserecipes-qt/qt5/qt5-ptest.inc +2
-0+deltask do_install_ptest_base +addtask do_install_ptest_base after do_compile_ptest_base before
do_packagedo_compile_ptest() { cd ${S}/tests--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
I've seen some breakage, not exactly this one, when trying to build with this change - had to clean sstate for some reason, then it worked...
Quoted 55 lines · Martin Jansa
Either this or the objcopy change seems to cause:
http://errors.yoctoproject.org/Errors/Details/157417/Quoted 50 lines · Denys Dmytriyenko
From: Denys Dmytriyenko <[email protected]>
ptest.bbclass provides a set of standard do_*_ptest_base tasks. Each of them calls a corresponding regular do_*_ptest task, that components are supposed to override for own implementation. When
PTEST_ENABLEDis not set, an anonymous python function removes all do_*_ptest_base tasks from the queue. qt5-ptest.inc adds a special case fordo_populate_sysrootand re-arranges the order or ptest tasks due to that. But, unfortunately,do_install_ptestwas added directly, notdo_install_ptest_base, hence when "ptest" is disabled and all other do_*_ptest_base tasks are removed, this onedo_install_ptesttask is left w/o dependencies and gets scheduled for execution very early on, even before pseudo-native gets built and stages "fakeroot" functionality. The fix is to adddo_install_ptest_basetask, which callsdo_install_ptestonly when "ptest" is enabled.Signed-off-by Denys Dmytriyenko <[email protected]>---
v2 - fix circular dependencies, delete defaultdo_install_ptest_baserecipes-qt/qt5/qt5-ptest.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)recipes-qt/qt5/qt5-ptest.inc +0
-1@@ -4,8 +4,9 @@ inherit ptest addtask do_populate_sysroot after do_install before do_compile_ptest_base deltask do_compile_ptest_base -addtask do_compile_ptest_base after do_populate_sysroot before
do_install_ptestrecipes-qt/qt5/qt5-ptest.inc +1
-1-addtask do_install_ptest after do_compile_ptest_base before do_package +addtask do_compile_ptest_base after do_populate_sysroot before
do_install_ptest_baserecipes-qt/qt5/qt5-ptest.inc +2
-0+deltask do_install_ptest_base +addtask do_install_ptest_base after do_compile_ptest_base before
do_packagedo_compile_ptest() { cd ${S}/tests--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel