Skip to contentSkip to conversation

libibverbs: provide virtual/libibverbs

PATCH In review Chen Qi 2 participants 4 messages Dec 26, 2017 – Dec 28, 2017

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/3 libibverbs: provide virtual/libibverbs

dpdk-dev-libibverbs recipe provides the same library as what libibverbs provides. To avoid building these two recipes at the same time at one single build, we use the technique of 'virtual/libibverbs'.

Make libibverbs provide 'virtual/libibverbs' so that other recipes could use 'virtual/libibverbs' as their dependencies. In this way, potential conflicts are avoided.

---
 recipes-extended/libibverbs/libibverbs_1.1.7.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-extended/libibverbs/libibverbs_1.1.7.bb +2 -1
index 9fc0d6e..b3cd73f 100644
@@ -26,4 +26,5 @@ do_install_append() {
         rm -f ${D}${libdir}/libibverbs.la
 }
 
-RCONFLICTS_${PN} = "dpdk-dev-libibverbs"
+PROVIDES = "virtual/libibverbs"
+RPROVIDES_${PN} = "virtual/libibverbs"
Signature · 1 line
2.11.0
author
#1 lore raw

PATCH 2/3 glusterfs: use virtual/libibverbs

Use 'virtual/libibverbs' instead of hardcoding libibverbs. This is to avoid potential conflict between libibverbs in this layer and dpdk-dev-libibverbs in meta-dpdk layer.

---
 recipes-extended/glusterfs/glusterfs.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/glusterfs/glusterfs.inc +1 -1
index e45dc9e..0556e2a 100644
@@ -48,7 +48,7 @@ PACKAGECONFIG ??= "georeplication libibverbs"
 PACKAGECONFIG[bd-xlator] = "--enable-bd-xlator,--disable-bd-xlator,lvm2,"
 PACKAGECONFIG[debug] = "--enable-debug,--disable-debug,,"
 PACKAGECONFIG[georeplication] = "--enable-georeplication,--disable-georeplication,,rsync"
-PACKAGECONFIG[libibverbs] = "--enable-ibverbs,--disable-ibverbs,libibverbs librdmacm,"
+PACKAGECONFIG[libibverbs] = "--enable-ibverbs,--disable-ibverbs,virtual/libibverbs librdmacm,"
 PACKAGECONFIG[ocf] = "--with-ocf,--without-ocf,,"
 PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind,"
 
Signature · 1 line
2.11.0
author
#2 lore raw

PATCH 3/3 librdmacm: use virtual/libibverbs

In reply to Chen Qi

Use 'virtual/libibverbs' instead of hardcoding libibverbs. This is to avoid potential conflicts between libibverbs in this layer and dpdk-dev-libibverbs in meta-dpdk layer.

---
 recipes-extended/librdmacm/librdmacm_1.0.17.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/librdmacm/librdmacm_1.0.17.bb +1 -1
index ba022b0..40cacdc 100644
@@ -12,7 +12,7 @@ SECTION = "libs/devel"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=39cc3044d68741f9005da73e9b92db95"
 
-DEPENDS = "libibverbs"
+DEPENDS = "virtual/libibverbs"
 
 # Repo is at http://git.openfabrics.org/git?p=~shefty/librdmacm.git
 SRC_URI = "http://www.openfabrics.org/downloads/rdmacm/${BPN}-${PV}.tar.gz \
Signature · 1 line
2.11.0
#3 lore raw
In reply to Chen Qi

merged.

Bruce

Quoted 32 lines · Chen Qi

dpdk-dev-libibverbs recipe provides the same library as what libibverbs provides. To avoid building these two recipes at the same time at one single build, we use the technique of 'virtual/libibverbs'.

Make libibverbs provide 'virtual/libibverbs' so that other recipes could use 'virtual/libibverbs' as their dependencies. In this way, potential conflicts are avoided.

---
 recipes-extended/libibverbs/libibverbs_1.1.7.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-extended/libibverbs/libibverbs_1.1.7.bb +2 -2
index 9fc0d6e..b3cd73f 100644
@@ -26,4 +26,5 @@ do_install_append() {
         rm -f ${D}${libdir}/libibverbs.la
 }
 
-RCONFLICTS_${PN} = "dpdk-dev-libibverbs"
+PROVIDES = "virtual/libibverbs"
+RPROVIDES_${PN} = "virtual/libibverbs"
--

2.11.0

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"