[PATCH] open-iscsi-user: use update-alternatives for libcap-ng.so


wangmy
 

libcap-ng also uses the doc 'libcap-ng.so'.

libcap-ng has a priority of 100.

Signed-off-by: Wang Mingyu <wangmy@...>
---
.../recipes-connectivity/open-iscsi/open-iscsi-user_2.1.4.bb | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.4.bb b/meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.4.bb
index 139ce1db..a05004a1 100644
--- a/meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.4.bb
+++ b/meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.4.bb
@@ -29,6 +29,11 @@ do_compile () {
oe_runmake user
}

+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "60"
+ALTERNATIVE_${PN}-dev = "libcap-ng.so"
+ALTERNATIVE_LINK_NAME[libcap-ng.so] = "${libdir}/libcap-ng.so"

do_install () {
oe_runmake DESTDIR="${D}" install_user
--
2.25.1

Join meta-virtualization@lists.yoctoproject.org to automatically receive all group messages.