dnf: remove systemd units in nativesdk builds
PATCH 1/1 dnf: remove systemd units in nativesdk builds
If the DISTRO_FEATURES contain systemd then the systemd class won't delete the units for us. Until the class is fixed to do this automatically, delete them explicitly.
--- meta/recipes-devtools/dnf/dnf_git.bb | 6 ++++++ 1 file changed, 6 insertions(+)
meta/recipes-devtools/dnf/dnf_git.bb +6 -0
@@ -42,6 +42,12 @@ do_install_append_class-native() { RPM_NO_CHROOT_FOR_SCRIPTS=1 } +# If the distro uses systemd then these won't be deleted by systemd.bbclass +do_install_append_class-nativesdk() { + rm -rf ${D}/${systemd_unitdir} + rmdir --ignore-fail-on-non-empty ${D}${nonarch_base_libdir} +} + SYSTEMD_SERVICE_${PN} = "dnf-makecache.service dnf-makecache.timer \ dnf-automatic-download.service dnf-automatic-download.timer \ dnf-automatic-install.service dnf-automatic-install.timer \
Signature · 1 line
2.8.1
✗ patchtest: failure for dnf: remove systemd units in nativesdk builds
== Series Details ==
Series: dnf: remove systemd units in nativesdk builds
Revision: 1
URL : https://patchwork.openembedded.org/series/6017/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at d68a86d87a)
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe