Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 84C12770CD for ; Thu, 4 Feb 2016 15:08:34 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id u14F8YjH013552 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 4 Feb 2016 07:08:34 -0800 (PST) Received: from yow-dellw-ma.wrs.com (128.224.56.18) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.248.2; Thu, 4 Feb 2016 07:08:33 -0800 From: Mark Asselstine To: , Date: Thu, 4 Feb 2016 10:08:33 -0500 Message-ID: <1454598513-29263-1-git-send-email-mark.asselstine@windriver.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Subject: [meta-networking][PATCH] ntp: remove empty libexecdir to prevent potential QA issues X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2016 15:08:34 -0000 Content-Type: text/plain 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 --- 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