On 05/03/2018 09:20 AM, Michael Gloff wrote:
I am seeing with the latest in Sumo/Master that the busybox post
install is failing to create all of the applet symlinks if there is
already a package installed from another provider during do_rootfs.
This can be seen, for example, when enabling lsattr applet and having
e2fsprogs installed into an image.
The error is:
update-alternatives: Error: not linking
/home/developer/oe-test/build_master/tmp/work/somimx6-emac-linux-gnueabi/emac-image/1.0-r0/rootfs/usr/bin/lsattr
to /usr/bin/busybox.nosuid since
/home/developer/oe-test/build_master/tmp/work/somimx6-emac-linux-gnueabi/emac-image/1.0-r0/rootfs/usr/bin/lsattr
exists and is not a link
In Rocko and before, this error is present, but the script continues
creating the rest of the symlinks and exits with success.
Does anyone have any idea why the failure is now causing the script to
stop executing?
Michael Gloff
[email protected] <mailto:[email protected]>
e2fsprogs deals with 'chattr', you can do the similar for 'lsattr'.
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb: mv
${D}${bindir}/chattr ${D}${base_bindir}/chattr.e2fsprogs
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:ALTERNATIVE_${PN} =
"chattr"
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:ALTERNATIVE_LINK_NAME[chattr]
= "${base_bindir}/chattr"
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:ALTERNATIVE_TARGET[chattr]
= "${base_bindir}/chattr.e2fsprogs"
For your question, maybe update-alternatives has been upgraded to view
such conflict as error? I didn't check.
Best Regards,
Chen Qi
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core