[oe] [meta-networking][PATCH] ntp: remove empty libexecdir to prevent potential QA issues
Mark Asselstine
mark.asselstine at windriver.com
Thu Feb 4 15:08:33 UTC 2016
Depending on the configuration used to build ntp it is possible to
have an empty libexecdir. This can cause QA issues. Add a test at the
end of install() to remove libexecdir if it is empty, thus avoiding
the possibility of QA issues, regardless of configuration.
Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
---
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb b/meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb
index f9f900e..cb09e77 100644
--- a/meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb
+++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb
@@ -94,6 +94,9 @@ do_install_append() {
install -d ${D}${systemd_unitdir}/ntp-units.d
install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
+
+ # Remove an empty libexecdir.
+ [ ! "$(ls -A ${D}${libexecdir})" ] && rm -r ${D}${libexecdir}
}
PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
--
2.1.4
More information about the Openembedded-devel
mailing list