[OE-core] [PATCH 1/1] msmtp: fix postinstall to avoid do_rootfs failure

ChenQi Qi.Chen at windriver.com
Mon Jul 15 08:38:28 UTC 2019


On 07/15/2019 02:44 PM, Adrian Bunk wrote:
> On Mon, Jul 15, 2019 at 02:40:28PM +0800, ChenQi wrote:
>> On 07/15/2019 02:17 PM, Adrian Bunk wrote:
>>> On Mon, Jul 15, 2019 at 01:35:15PM +0800, Chen Qi wrote:
>>>> When lsb is enabled, that is, 'linuxstdbase' is in OVERRIDES,
>>>> do_rootfs would fail if both 'msmtp' and 'postfix' are installed.
>>>> This is because they both try to create /usr/lib/sendmail link if
>>>> it does not exist. So we need to fix the check to avoid non-zero
>>>> exit status.
>>>> ...
>>> This would make it random (depending on installation order) which is
>>> linked to, and it could also make ${sbindir}/sendmail and
>>> $D/usr/lib/sendmail point to different programs.
>>>
>>> It would be better to make $D/usr/lib/sendmail also an alternative in
>>> all packages that provide sendmail.
>>>
>>> cu
>>> Adrian
>>>
>> I don't think we should mix linuxstdbase and ALTERNATIVES setting. It makes
>> things complicated.
>> As ALTERNATIVES_PRIORITY is higher in postfix, I'll just remove the check in
>> postfix and use 'ln -sf' directly.
>> Can you accept this solution?
> I do not see how this solves your problem if msmtp gets installed
> after postfix.
>
> Is it actually required to have these packages installed at the same
> time in LSB?
>
> If not, something like
>    RCONFLICTS_linuxstdbase = "postfix"
> might work. (untested)
>
>> Regards,
>> Chen Qi
> cu
> Adrian
>
Hi Adrian,

I've sent out V2 using alternatives.

Best Regards,

Chen Qi



More information about the Openembedded-core mailing list