summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Bouvier <benjamin.bouvier@ekinops.com>2023-07-04 15:18:44 +0200
committerSteve Sakoman <steve@sakoman.com>2023-08-02 04:47:13 -1000
commit96404a7c4c577fef4416d515fa3f4af96664ff65 (patch)
treeba069e140d5b1cea9bf14cc44b25c417209a1b81
parentf285505e209bd5d20c512ab48f83c4a77d1a9ee9 (diff)
downloadpoky-96404a7c4c577fef4416d515fa3f4af96664ff65.tar.gz
util-linux: add alternative links for ipcs,ipcrm
When enabling ipcs and ipcrm configuration into busybox, both tools are built and then deployed during do_rootfs. These operation lead to below issue (similar behavior happens for ipcs): do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot, then please place them into pkg_postinst_ontarget:${PN} (). update-alternatives: Error: not linking .../build/tmp/work/board-poky-linux/board-image/1.0-r0/rootfs/usr/bin/ipcrm to /bin/busybox since .../build/tmp/work/board-poky-linux/board-image/1.0-r0/rootfs/usr/bin/ipcrm exists and is not a link Binaries enter in conflict with same named util-linux utilities during do_rootfs step. Adding ALTERNATIVE_LINK_NAME for both tools fix the issue. (From OE-Core rev: dc2e760591c5ed3c999222f235484829426c71a7) Signed-off-by: Benjamin Bouvier <benjamin.bouvier@ekinops.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit e4d60408b869c9cc2ccff794d4e271d993ec8a97) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-core/util-linux/util-linux_2.37.4.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux_2.37.4.bb b/meta/recipes-core/util-linux/util-linux_2.37.4.bb
index f6d3ea2bc1..8866120eed 100644
--- a/meta/recipes-core/util-linux/util-linux_2.37.4.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.37.4.bb
@@ -233,6 +233,8 @@ ALTERNATIVE_TARGET[getty] = "${base_sbindir}/agetty"
233ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump" 233ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump"
234ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock" 234ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock"
235ALTERNATIVE_LINK_NAME[ionice] = "${bindir}/ionice" 235ALTERNATIVE_LINK_NAME[ionice] = "${bindir}/ionice"
236ALTERNATIVE_LINK_NAME[ipcrm] = "${bindir}/ipcrm"
237ALTERNATIVE_LINK_NAME[ipcs] = "${bindir}/ipcs"
236ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" 238ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill"
237ALTERNATIVE:${PN}-last = "last lastb" 239ALTERNATIVE:${PN}-last = "last lastb"
238ALTERNATIVE_LINK_NAME[last] = "${bindir}/last" 240ALTERNATIVE_LINK_NAME[last] = "${bindir}/last"