Skip to contentSkip to conversation

ntp: remove empty libexecdir to prevent potential QA issues

PATCH New Mark Asselstine 1 participant 1 message Feb 4, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ntp: remove empty libexecdir to prevent potential QA issues

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.

---

Changes v1 -> v2
* switched to use rmdir instead of test+rm

 meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-support/ntp/ntp_4.2.8p4.bb +3 -0
index f9f900e..7caa5a6 100644
@@ -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.
+    rmdir --ignore-fail-on-non-empty ${D}${libexecdir}
 }
 
 PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
Signature · 1 line
2.1.4