openl2tp: Fix do_package_qa Issue
PATCH 1/1 openl2tp: Fix do_package_qa Issue
Fix following issue when using customized kernel without kernel-module-l2tp-ppp enabled.
ERROR: openl2tp-1.8-r0 do_package_qa: QA Issue: openl2tp-ptest rdepends on kernel-module-l2tp-ppp, but it isn't a build dependency? [build-deps]
--- meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb +2 -0
@@ -97,3 +97,5 @@ do_install_ptest () { RDEPENDS:${PN} = "ppp ppp-l2tp bash" RDEPENDS:${PN}-ptest += "rpcbind kernel-module-l2tp-ppp procps-ps tcl" + +INSANE_SKIP:${PN}-ptest += "build-deps"
Signature · 1 line
2.43.0
Quoted 2 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
Fix following issue when using customized kernel without kernel-module-l2tp-ppp enabled.
ERROR: openl2tp-1.8-r0do_package_qa: QA Issue: openl2tp-ptest rdepends on kernel-module-l2tp-ppp, but it isn't a build dependency? [build-deps]
But does it make sense to build ptests for this recipe with such a kernel? I'd expect that it fails the latest at runtime due to the missing module (but most likely during buildtime, due to missing RDEPENDS) Instead of disabling this check (which seems to work as expected), wouldn't it be better to disable ptest completely in user layer (bbappend, local.conf...)?
Or maybe the module could be moved to RRECOMMENDS, so it won't be a hard dependency. Ptests would still fail at runtime (with incompatible kernel config), but the build and qa checks could go on.
Quoted 24 lines
Signed-off-by Liu Yiding <[email protected]>--- meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb | 2 ++ 1 file changed, 2 insertions(+)meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb +2
-1@@ -97,3 +97,5 @@ do_install_ptest () { RDEPENDS:${PN} = "ppp ppp-l2tp bash" RDEPENDS:${PN}-ptest += "rpcbind kernel-module-l2tp-ppp procps-ps tcl" + +INSANE_SKIP:${PN}-ptest += "build-deps" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#123859): https://lists.openembedded.org/g/openembedded-devel/message/123859
Mute This Topic: https://lists.openembedded.org/mt/117464733/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 17 lines · Yiding Liu (Fujitsu) via lists.openembedded.org
Fix following issue when using customized kernel without kernel-module-l2tp-ppp enabled.
ERROR: openl2tp-1.8-r0do_package_qa: QA Issue: openl2tp-ptest rdepends on kernel-module-l2tp-ppp, but it isn't a build dependency? [build-deps]Signed-off-by Liu Yiding <[email protected]>--- meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb | 2 ++ 1 file changed, 2 insertions(+)meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb +0
-0
meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb do_install_ptest () { · line 99
Quoted 3 lines
meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb +0
-0@@ -97,3 +97,5 @@ do_install_ptest () { RDEPENDS:${PN} = "ppp ppp-l2tp bash" RDEPENDS:${PN}-ptest += "rpcbind kernel-module-l2tp-ppp procps-ps tcl"
Try changing above line to use
RRECOMMENDS:${PN}-ptest instead of rdep
Quoted 17 lines
meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb +2
-1+ +INSANE_SKIP:${PN}-ptest += "build-deps" --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#123859):
https://lists.openembedded.org/g/openembedded-devel/message/123859
Mute This Topic: https://lists.openembedded.org/mt/117464733/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-