[oe-commits] [meta-openembedded] 01/15: ntp: remove empty libexecdir to prevent potential QA issues

git at git.openembedded.org git at git.openembedded.org
Tue Mar 1 13:48:37 UTC 2016


joe_macdonald pushed a commit to branch master
in repository meta-openembedded.

commit 346cc53ea34cc516de3441862884840379485008
Author: Mark Asselstine <mark.asselstine at windriver.com>
AuthorDate: Thu Feb 4 15:42:15 2016 -0500

    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.
    
    Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    Signed-off-by: Joe MacDonald <joe_macdonald at mentor.com>
---
 meta-networking/recipes-support/ntp/ntp_4.2.8p6.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p6.bb b/meta-networking/recipes-support/ntp/ntp_4.2.8p6.bb
index 1836dd9..a7b998a 100644
--- a/meta-networking/recipes-support/ntp/ntp_4.2.8p6.bb
+++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p6.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.
+    rmdir --ignore-fail-on-non-empty ${D}${libexecdir}
 }
 
 PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list