All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization] [PATCH] open-iscsi-user: use update-alternatives for libcap-ng.so
@ 2021-07-21  1:11 wangmy
  2021-07-21  2:52 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: wangmy @ 2021-07-21  1:11 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Wang Mingyu

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

libcap-ng has a priority of 100.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-21  2:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-21  1:11 [meta-virtualization] [PATCH] open-iscsi-user: use update-alternatives for libcap-ng.so wangmy
2021-07-21  2:52 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.