mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
lsof: add update-alternatives logic
Some distributions (NI LinuxRT) provide both busybox-lsof and full-featured lsof implementations. When users install the full-featured lsof package, the full-binary fails to replace the bbox-binary in PATH, because `lsof` contains no update-alternatives logic. Inherit the update-alternatives bbclass and assert that the full-featured lsof package has higher priority than the busybox implementation. Co-Authored-By: Kyle Roeschley <kyle.roeschley@ni.com> (From OE-Core rev: 750f4e17f63cf957076c13c53139ddaab1617597) Signed-off-by: Alex Stewart <alex.stewart@ni.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit e2893fa692a6e91eee09fc04c8c03fe27c718a58) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
13d7119cdf
commit
41dbb14cb9
@@ -19,6 +19,15 @@ SRCREV = "005e014e1abdadb2493d8b3ce87b37a2c0a2351d"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
|
||||
inherit update-alternatives
|
||||
|
||||
ALTERNATIVE_${PN} = "lsof"
|
||||
ALTERNATIVE_LINK_NAME[lsof] = "${sbindir}/lsof"
|
||||
# Make our priority higher than busybox
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
|
||||
export LSOF_INCLUDE = "${STAGING_INCDIR}"
|
||||
|
||||
do_configure () {
|
||||
|
||||
Reference in New Issue
Block a user