aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwangmy <wangmy@fujitsu.com>2021-07-21 09:11:08 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-07-20 22:52:39 -0400
commitcd0e28cb09e0cbeff1d9de5ddfebeb9d98875eff (patch)
tree8cd482c3af91e7a1082add8f27b9135ecc715aac
parentf99a5e405181858f4b913b13c886769ce1b3388f (diff)
downloadmeta-cloud-services-cd0e28cb09e0cbeff1d9de5ddfebeb9d98875eff.zip
meta-cloud-services-cd0e28cb09e0cbeff1d9de5ddfebeb9d98875eff.tar.gz
meta-cloud-services-cd0e28cb09e0cbeff1d9de5ddfebeb9d98875eff.tar.bz2
open-iscsi-user: use update-alternatives for libcap-ng.so
libcap-ng also uses the doc 'libcap-ng.so'. libcap-ng has a priority of 100. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--meta-openstack/recipes-connectivity/open-iscsi/open-iscsi-user_2.1.4.bb5
1 files changed, 5 insertions, 0 deletions
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 139ce1d..73b5a66 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