[OE-core] [PATCH 2/3] msmtp: add link file in /usr/lib

Kang Kai Kai.Kang at windriver.com
Thu Mar 5 02:36:25 UTC 2015


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 at 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




More information about the Openembedded-core mailing list