[OE-core] [PATCH 3/4] update-alternatives.bbclass: run update-alternatives firstly in postinst script

Robert Yang liezhi.yang at windriver.com
Fri Jun 21 09:20:34 UTC 2019


Hi,

I can reproduce it now, sorry about that, I'm working on it.

// Robert

On 6/20/19 11:33 PM, Richard Purdie wrote:
> On Thu, 2019-06-20 at 16:15 +0800, Robert Yang wrote:
>> Recipes like postfix run command newaliases in postinst, but
>> newaliases is
>> installed newaliases.postfix, and need run update-alternatives to
>> update it to
>> newaliases, so we would get the error when install postinst on
>> target.
>>
>> Fixed:
>> $ opkg install postfix
>> Configuring postfix.
>> ///var/lib/opkg/info/postfix.postinst: line 4: newaliases: command
>> not found
>>
>> Run update-alternatives firstly will fix the problem.
>>
>> Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
>> ---
>>   meta/classes/update-alternatives.bbclass | 7 +++++--
>>   1 file changed, 5 insertions(+), 2 deletions(-)
> 
> This seemed to result in:
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/61/builds/724
> 
> Cheers,
> 
> Richard
> 
> 


More information about the Openembedded-core mailing list