Patchwork [meta-oe] ntp: Fix the installed but not shipped issue of a systemd units file

login
register
mail settings
Submitter Stefan Herbrechtsmeier
Date Jan. 10, 2014, 12:45 p.m.
Message ID <1389357943-16674-1-git-send-email-stefan@herbrechtsmeier.net>
Download mbox | patch
Permalink /patch/64521/
State Accepted, archived
Headers show

Comments

Stefan Herbrechtsmeier - Jan. 10, 2014, 12:45 p.m.
We will get the following ERROR/WARN if we enable systemd and
the installed-vs-shipped check in QA:

ERROR: QA Issue: ntp: Files/directories were installed but not shipped
  /lib/systemd/ntp-units.d
  /lib/systemd/ntp-units.d/60-ntpd.list

Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
---
 meta-networking/recipes-support/ntp/ntp.inc |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc
index 9ea24e9..8381b9e 100644
--- a/meta-networking/recipes-support/ntp/ntp.inc
+++ b/meta-networking/recipes-support/ntp/ntp.inc
@@ -97,7 +97,9 @@  RCONFLICTS_ntpdate += "ntpdate-systemd"
 
 RSUGGESTS_${PN} = "iana-etc"
 
-FILES_${PN} = "${bindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${sbindir} ${libdir}"
+FILES_${PN} = "${bindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${sbindir} ${libdir} \
+    ${systemd_unitdir}/ntp-units.d/60-ntpd.list \
+"
 FILES_${PN}-tickadj = "${bindir}/tickadj"
 FILES_${PN}-utils = "${bindir}"
 FILES_ntpdate = "${bindir}/ntpdate \