Skip to contentSkip to conversation

libibverbs: add back from meta-virtualization

PATCH In review kai 2 participants 3 messages Sep 17, 2021

lore
Share & tools
lore

kai

author
#0 lore raw

PATCH 1/1 libibverbs: add back from meta-virtualization

From: Kai Kang <[email protected]>

libibverbs has been removed from meta-virtualization but it is still required by librdmacm and glusterfs. So add it back from meta-virtualization.

---
 .../libibverbs/libibverbs_1.2.1.bb            | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 recipes-extended/libibverbs/libibverbs_1.2.1.bb
recipes-extended/libibverbs/libibverbs_1.2.1.bb new file +34 -0
new file mode 100644
index 00000000..90c424ec
@@ -0,0 +1,34 @@
+SUMMARY = "Support InfiniBand verbs"
+DESCRIPTION = "Libibverbs is a library that allows userspace processes to use InfiniBand/RDMA 'verbs' directly."
+HOMEPAGE = "http://www.openfabrics.org/downloads/verbs/"
+SECTION = "libs/devel"
+
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7c557f27dd795ba77cc419dddc656b51"
+
+# Official repo is at git://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git
+SRC_URI = "https://www.openfabrics.org/downloads/verbs/${BPN}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "1544ebb89d861ce84057ab43dfcd22a0"
+SRC_URI[sha256sum] = "c352a7f24e9a9d30ea74faa35d1b721d78d770506a0c03732e3132b7c85ac330"
+
+inherit autotools
+
+DEPENDS = "libnl pkgconfig-native"
+PACKAGES += "${PN}-utils"
+FILES:${PN} = "${sysconfdir} ${libdir}/*.so.*"
+FILES:${PN}-utils = "${bindir}"
+
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind,"
+
+do_install:append() {
+        mkdir -p ${D}${sysconfdir}/libibverbs.d
+        rm -f ${D}${libdir}/libibverbs.la
+}
+
+PROVIDES = "virtual/libibverbs"
+RPROVIDES:${PN} = "virtual-libibverbs"
+
+COMPATIBLE_HOST:mipsarch = "none"
+COMPATIBLE_HOST:arm = "none"
Signature · 1 line
2.33.0
#1 lore raw
Quoted 5 lines · kai

From: Kai Kang <[email protected]>

libibverbs has been removed from meta-virtualization but it is still required by librdmacm and glusterfs. So add it back from meta-virtualization.

My bad, I can revert the drop in meta-virtualization to keep the churn to a minimum.

We should look into replacing this recipe with rdma-core (which was on my list, but I didn't want to do that replacement this late in the cycle).

As is obvious from the page:
http://www.openfabrics.org/downloads/verbs/, there won't be any more releases of this package, and we are going to eventually run into trouble maintaining it.

Bruce

Quoted 53 lines
---
 .../libibverbs/libibverbs_1.2.1.bb            | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 recipes-extended/libibverbs/libibverbs_1.2.1.bb
recipes-extended/libibverbs/libibverbs_1.2.1.bb new file +34 -1
new file mode 100644
index 00000000..90c424ec
@@ -0,0 +1,34 @@
+SUMMARY = "Support InfiniBand verbs"
+DESCRIPTION = "Libibverbs is a library that allows userspace processes to use InfiniBand/RDMA 'verbs' directly."
+HOMEPAGE = "http://www.openfabrics.org/downloads/verbs/"
+SECTION = "libs/devel"
+
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7c557f27dd795ba77cc419dddc656b51"
+
+# Official repo is at git://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git
+SRC_URI = "https://www.openfabrics.org/downloads/verbs/${BPN}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "1544ebb89d861ce84057ab43dfcd22a0"
+SRC_URI[sha256sum] = "c352a7f24e9a9d30ea74faa35d1b721d78d770506a0c03732e3132b7c85ac330"
+
+inherit autotools
+
+DEPENDS = "libnl pkgconfig-native"
+PACKAGES += "${PN}-utils"
+FILES:${PN} = "${sysconfdir} ${libdir}/*.so.*"
+FILES:${PN}-utils = "${bindir}"
+
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind,"
+
+do_install:append() {
+        mkdir -p ${D}${sysconfdir}/libibverbs.d
+        rm -f ${D}${libdir}/libibverbs.la
+}
+
+PROVIDES = "virtual/libibverbs"
+RPROVIDES:${PN} = "virtual-libibverbs"
+
+COMPATIBLE_HOST:mipsarch = "none"
+COMPATIBLE_HOST:arm = "none"
--

2.33.0

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
author
#2 lore raw
Quoted 11 lines · Bruce Ashfield
Quoted 4 lines · kai

From: Kai Kang <[email protected]>

libibverbs has been removed from meta-virtualization but it is still required by librdmacm and glusterfs. So add it back from meta-virtualization.

My bad, I can revert the drop in meta-virtualization to keep the churn to a minimum.

We should look into replacing this recipe with rdma-core (which was on my list, but I didn't want to do that replacement this late in the cycle).

I check the configure.ac file of librdmacm and no configure option for rdma-core. That's why add it back.

And revert is better.

Regards,
Kai

Quoted 61 lines

As is obvious from the page:
http://www.openfabrics.org/downloads/verbs/, there won't be any more releases of this package, and we are going to eventually run into trouble maintaining it.

Bruce

Quoted 52 lines
---
  .../libibverbs/libibverbs_1.2.1.bb            | 34 +++++++++++++++++++
  1 file changed, 34 insertions(+)

create mode 100644 recipes-extended/libibverbs/libibverbs_1.2.1.bb

recipes-extended/libibverbs/libibverbs_1.2.1.bb new file +34 -1
new file mode 100644
index 00000000..90c424ec
@@ -0,0 +1,34 @@
+SUMMARY = "Support InfiniBand verbs"
+DESCRIPTION = "Libibverbs is a library that allows userspace processes to use InfiniBand/RDMA 'verbs' directly."
+HOMEPAGE = "http://www.openfabrics.org/downloads/verbs/"
+SECTION = "libs/devel"
+
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7c557f27dd795ba77cc419dddc656b51"
+
+# Official repo is at git://git.kernel.org/pub/scm/libs/infiniband/libibverbs.git
+SRC_URI = "https://www.openfabrics.org/downloads/verbs/${BPN}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "1544ebb89d861ce84057ab43dfcd22a0"
+SRC_URI[sha256sum] = "c352a7f24e9a9d30ea74faa35d1b721d78d770506a0c03732e3132b7c85ac330"
+
+inherit autotools
+
+DEPENDS = "libnl pkgconfig-native"
+PACKAGES += "${PN}-utils"
+FILES:${PN} = "${sysconfdir} ${libdir}/*.so.*"
+FILES:${PN}-utils = "${bindir}"
+
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind,"
+
+do_install:append() {
+        mkdir -p ${D}${sysconfdir}/libibverbs.d
+        rm -f ${D}${libdir}/libibverbs.la
+}
+
+PROVIDES = "virtual/libibverbs"
+RPROVIDES:${PN} = "virtual-libibverbs"
+
+COMPATIBLE_HOST:mipsarch = "none"
+COMPATIBLE_HOST:arm = "none"
--

2.33.0

Signature · 2 lines
Kai Kang
Wind River Linux