Define builtin PTEST_PATH Delete the systemd test fragment if ptest is not enabled Fixes NOTE: Executing Tasks ERROR: sdbus-c++-0.8.1-r0 do_package: QA Issue: sdbus-c++: Files/directories were installed but not shipped in any package: /etc /etc/dbus-1 /etc/dbus-1/system.d /etc/dbus-1/system.d/org.sdbuscpp.integrationtests.conf
Signed-off-by: Khem Raj <[email protected]> Cc: Stanislav Angelovic <[email protected]> --- meta-oe/recipes-core/sdbus-c++/sdbus-c++_0.8.1.bb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_0.8.1.bb b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_0.8.1.bb index c4d63fd272..82860a82f7 100644 --- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_0.8.1.bb +++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_0.8.1.bb @@ -26,7 +26,12 @@ EXTRA_OECMAKE = "-DBUILD_CODE_GEN=ON \ S = "${WORKDIR}/git" -FILES_${PN}_remove = "${sysconfdir}" -FILES_${PN}-ptest += "${sysconfdir}/dbus-1/system.d/" -FILES_${PN}-ptest += "${libdir}/${BPN}/tests" +do_install_append() { + if ! ${@bb.utils.contains('PTEST_ENABLED', '1', 'true', 'false', d)}; then + rm -rf ${D}${sysconfdir}/dbus-1 + fi +} + +PTEST_PATH = "${libdir}/${BPN}/tests" +FILES_${PN}-ptest =+ "${sysconfdir}/dbus-1/system.d/" FILES_${PN}-dev += "${bindir}/sdbus-c++-xml2cpp" -- 2.28.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#86460): https://lists.openembedded.org/g/openembedded-devel/message/86460 Mute This Topic: https://lists.openembedded.org/mt/76295741/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
