diff options
author | Benjamin Bouvier <benjamin.bouvier@ekinops.com> | 2023-07-04 15:18:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-14 17:31:06 +0100 |
commit | 47b5c90267a88220cc2eabc89aeee5077bd02063 (patch) | |
tree | 0837f974921330c228787625bc59567bbe36ade0 /meta/recipes-core | |
parent | d335aea8e841d86d63099d872fdee9391977b1f4 (diff) | |
download | poky-47b5c90267a88220cc2eabc89aeee5077bd02063.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: e4d60408b869c9cc2ccff794d4e271d993ec8a97)
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>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.38.1.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux_2.38.1.bb b/meta/recipes-core/util-linux/util-linux_2.38.1.bb index 9ea7a04e8a..c81405533c 100644 --- a/meta/recipes-core/util-linux/util-linux_2.38.1.bb +++ b/meta/recipes-core/util-linux/util-linux_2.38.1.bb | |||
@@ -234,6 +234,8 @@ ALTERNATIVE_TARGET[getty] = "${base_sbindir}/agetty" | |||
234 | ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump" | 234 | ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump" |
235 | ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock" | 235 | ALTERNATIVE_LINK_NAME[hwclock] = "${base_sbindir}/hwclock" |
236 | ALTERNATIVE_LINK_NAME[ionice] = "${bindir}/ionice" | 236 | ALTERNATIVE_LINK_NAME[ionice] = "${bindir}/ionice" |
237 | ALTERNATIVE_LINK_NAME[ipcrm] = "${bindir}/ipcrm" | ||
238 | ALTERNATIVE_LINK_NAME[ipcs] = "${bindir}/ipcs" | ||
237 | ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" | 239 | ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill" |
238 | ALTERNATIVE:${PN}-last = "last lastb" | 240 | ALTERNATIVE:${PN}-last = "last lastb" |
239 | ALTERNATIVE_LINK_NAME[last] = "${bindir}/last" | 241 | ALTERNATIVE_LINK_NAME[last] = "${bindir}/last" |