]> code.ossystems Code Review - openembedded-core.git/commit
deb: apply postinstall on sdk
authorhongxu <hongxu.jia@windriver.com>
Thu, 8 Apr 2021 09:04:28 +0000 (02:04 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 18 Apr 2021 10:29:05 +0000 (11:29 +0100)
commit2a9bf19502766baa4087456649d5471483d04f6a
tree76e3e8a1a57f53a091f1c202cea89d072a4f75a0
parentad8fec9ce1704866df925bda18a240d6889b1ed5
deb: apply postinstall on sdk

If not postinstall applied, some nativesdk command could not be found
in sdk due to update-alternatives in postinst not be executed, such as chroot:

$ which chroot
/sbin/chroot
$ which chroot.coreutils
path-to-sdk/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/chroot.coreutils

After applying the fix
$ which chroot
path-to-sdk/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/chroot
$ which chroot.coreutils
path-to-sdk/sysroots/x86_64-wrlinuxsdk-linux/usr/bin/chroot.coreutils

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager/deb/sdk.py