From: Kang Kai <Kai.Kang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 2/3] msmtp: add link file in /usr/lib
Date: Thu, 5 Mar 2015 10:36:25 +0800 [thread overview]
Message-ID: <54F7C129.20909@windriver.com> (raw)
In-Reply-To: <35db6d0fb6ac25ab4e970f4f9ea3c269f30b7e23.1425518329.git.kai.kang@windriver.com>
On 2015年03月05日 09:20, Kai Kang wrote:
> Link file /usr/lib/sendmail points to /usr/sbin/sendmail is required by
> LSB core test according to Linux FHS.
>
> Refs:
> 1 http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/normativerefs.html#STD.LSB
> 2 http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS13
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
> meta/recipes-extended/msmtp/msmtp_1.6.1.bb | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/recipes-extended/msmtp/msmtp_1.6.1.bb b/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
> index c9ad1da..ba93600 100644
> --- a/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
> +++ b/meta/recipes-extended/msmtp/msmtp_1.6.1.bb
> @@ -23,3 +23,8 @@ ALTERNATIVE_${PN} = "sendmail"
> ALTERNATIVE_TARGET[sendmail] = "${bindir}/msmtp"
> ALTERNATIVE_LINK_NAME[sendmail] = "${sbindir}/sendmail"
> ALTERNATIVE_PRIORITY = "100"
> +
> +pkg_postinst_${PN}_linuxstdbase () {
> + # /usr/lib is required by LSB rather than ${libdir}
> + [ ! -e /usr/lib/sendmail ] && ln -sf ${sbindir}/sendmail /usr/lib
> +}
Retrieve it.
It should use ALTERNATIVES to deal the link files. I'll send V2.
Sorry for trouble.
--
Regards,
Neil | Kai Kang
next prev parent reply other threads:[~2015-03-05 2:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-05 1:20 [PATCH 0/3] Some fixes for LSB test Kai Kang
2015-03-05 1:20 ` [PATCH 1/3] lsb: update init-functions and remove sendmail Kai Kang
2015-03-05 1:20 ` [PATCH 2/3] msmtp: add link file in /usr/lib Kai Kang
2015-03-05 2:36 ` Kang Kai [this message]
2015-03-05 1:20 ` [PATCH 3/3] systemd: correct permission mode of /var/volatile/tmp Kai Kang
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=54F7C129.20909@windriver.com \
--to=kai.kang@windriver.com \
--cc=openembedded-core@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.