]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
update-alternatives.bbclass: run update-alternatives firstly in postinst script
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 17 Jun 2019 08:11:11 +0000 (16:11 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Wed, 26 Jun 2019 07:30:11 +0000 (15:30 +0800)
commit7670cc471f807cd801b77532e1480031f4cba8c4
treee0e4c040ed884e6ba507fad9665696010f32557f
parent4bb3e8f98e2bbfcb20f1b32d2b7674d1a6cb47be
update-alternatives.bbclass: run update-alternatives firstly in postinst script

Recipes like postfix run command newaliases in postinst, but newaliases is
installed as newaliases.postfix, it needs run update-alternatives to update it
to newaliases, so there was an error when installed 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@windriver.com>
meta/classes/update-alternatives.bbclass