From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH] ntp: remove empty libexecdir to prevent potential QA issues
Date: Thu, 4 Feb 2016 17:07:59 +0100 [thread overview]
Message-ID: <20160204160759.GA2573@jama> (raw)
In-Reply-To: <1454598513-29263-1-git-send-email-mark.asselstine@windriver.com>
[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]
On Thu, Feb 04, 2016 at 10:08:33AM -0500, Mark Asselstine wrote:
> 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@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}
Isn't this the same as:
rmdir --ignore-fail-on-non-empty ${D}${libexecdir}
?
> }
>
> PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
> --
> 2.1.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2016-02-04 16:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 15:08 [meta-networking][PATCH] ntp: remove empty libexecdir to prevent potential QA issues Mark Asselstine
2016-02-04 16:07 ` Martin Jansa [this message]
2016-02-04 16:51 ` Mark Asselstine
2016-02-04 17:07 ` Martin Jansa
2016-02-04 18:11 ` Joe MacDonald
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160204160759.GA2573@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox