]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
lsof: add update-alternatives logic
authorAlex Stewart <alex.stewart@ni.com>
Fri, 2 Dec 2022 20:59:10 +0000 (14:59 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 Dec 2022 15:23:13 +0000 (15:23 +0000)
commite2893fa692a6e91eee09fc04c8c03fe27c718a58
treeffaf629dcf61058045ae5c0fbc9b98aec31f3ba6
parent451fe4a067432b432b9cd38d2fc78072f6ce5421
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>
Signed-off-by: Alex Stewart <alex.stewart@ni.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-extended/lsof/lsof_4.96.4.bb