commit:     95871e5501c36864b23f8e8f47179aa5fe3c9a2d
Author:     Brahmajit Das <listout <AT> listout <DOT> xyz>
AuthorDate: Wed Nov  5 15:32:46 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec  4 12:11:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95871e55

sys-block/libfabric: add 2.3.1

Closes: https://github.com/gentoo/gentoo/pull/33923
Closes: https://bugs.gentoo.org/828976
Closes: https://bugs.gentoo.org/895062
Signed-off-by: Brahmajit Das <listout <AT> listout.xyz>
Part-of: https://github.com/gentoo/gentoo/pull/44494
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-block/libfabric/Manifest               |  1 +
 sys-block/libfabric/libfabric-2.3.1.ebuild | 89 ++++++++++++++++++++++++++++++
 sys-block/libfabric/metadata.xml           |  3 +-
 3 files changed, 92 insertions(+), 1 deletion(-)

diff --git a/sys-block/libfabric/Manifest b/sys-block/libfabric/Manifest
index cad5c57c4d1e..299ff819ef42 100644
--- a/sys-block/libfabric/Manifest
+++ b/sys-block/libfabric/Manifest
@@ -1 +1,2 @@
 DIST libfabric-1.11.2.tar.bz2 1480982 BLAKE2B 
df419a4282b21cb513708d035721b35861969934af3771b9781288d17761be2a341bbe23098110c3a6ecb119cd508fe9cf93c002b4861c7595d3b384a99b53a5
 SHA512 
79d9ce52287ead57dfec20bcca91d4ca186e709379b55669612e596f40f02c83fee1c69601927e1894a01395eff128bd918c8f23ffb198f1bbba9b8d484780ef
+DIST libfabric-2.3.1.tar.bz2 3045499 BLAKE2B 
4a626d766a1bbee9acd6a4436d95f4ff958f1f975c21829fc154f28025428c4248ff82af4dac684c0cf2c7e64ea044c80f1eb46396ea4622d5efee807e841753
 SHA512 
c33e416d25b333ad020f0620b70d3b5a445a3a7e7ca97f88fceec636e41370ed368030ecaa2a7c4c5cb441ebfd628158e42fdb26524e3993bab47ab9894a6902

diff --git a/sys-block/libfabric/libfabric-2.3.1.ebuild 
b/sys-block/libfabric/libfabric-2.3.1.ebuild
new file mode 100644
index 000000000000..37ad3c777343
--- /dev/null
+++ b/sys-block/libfabric/libfabric-2.3.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="The Open Fabrics Interfaces (OFI) framework"
+HOMEPAGE="http://libfabric.org/ https://github.com/ofiwg/libfabric";
+
+LICENSE="BSD GPL-2"
+
+SRC_URI="https://github.com/ofiwg/${PN}/releases/download/v${PV}/${P}.tar.bz2";
+KEYWORDS="~amd64"
+
+# SONAME
+SLOT="0/1"
+IUSE="cuda efa usnic rocm verbs ucx"
+
+DEPEND="
+       rocm? ( dev-libs/rocr-runtime:= )
+       usnic? ( dev-libs/libnl:= )
+       verbs? ( sys-cluster/rdma-core )
+"
+RDEPEND="
+       ${DEPEND}
+       cuda? ( dev-util/nvidia-cuda-toolkit )
+       ucx? ( sys-cluster/ucx )
+"
+BDEPEND="
+       virtual/pkgconfig
+"
+
+DOCS=(
+       AUTHORS
+       NEWS.md
+       README
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               --disable-static
+               # let's try to avoid automagic deps
+               --enable-cuda-dlopen="$(usex cuda)"
+               --enable-efa="$(usex efa)"
+               --enable-cxi=no
+               --enable-gdrcopy-dlopen=no
+               --enable-mrail=yes
+               --enable-perf=no
+               # no psm libraries packaged that I can find (patches accepted)
+               --enable-psm2=no
+               --enable-psm3=no
+               --enable-rocr-dlopen="$(usex rocm)"
+               --enable-rxd=yes
+               --enable-rxm=yes
+               --enable-sockets=yes
+               --enable-shm=yes
+               --enable-sm2=yes
+               --enable-ucx="$(usex ucx)"
+               --enable-lpp=yes
+               --enable-trace=yes
+               --enable-profile=yes
+               --enable-monitor=yes
+               --enable-hook_hmem=no
+               --enable-dmabuf_peer_mem=no
+               --enable-lnx=yes
+               --enable-opx=no
+               --enable-lnx=yes
+               --enable-tcp=yes
+               --enable-udp=yes
+               --enable-usnic="$(usex usnic)"
+               --enable-verbs="$(usex verbs)"
+               --enable-xpmem=no
+               "$(use_with cuda cuda "${CUDA_PATH:-${ESYSROOT}/opt/cuda}")"
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+
+       # no static archives
+       find "${ED}" -name '*.la' -delete || die
+}

diff --git a/sys-block/libfabric/metadata.xml b/sys-block/libfabric/metadata.xml
index a862330d86fe..b492ab5f974f 100644
--- a/sys-block/libfabric/metadata.xml
+++ b/sys-block/libfabric/metadata.xml
@@ -8,7 +8,8 @@
        <use>
                <flag name="efa">Enable Amazon EC2 Elastic Fabric Adapter 
provider</flag>
                <flag name="usnic">Enable Cisco VIC (virtualized NIC) hardware 
on Cisco UCS server provider</flag>
-               <flag name="rocr">Enable Radeon Open Compute provider</flag>
+               <flag name="rocm">Enable Radeon Open Compute provider</flag>
                <flag name="verbs">Enable Linux Infiniband verbs provider</flag>
+               <flag name="ucx">Enable Unified Communication X library 
support</flag>
        </use>
 </pkgmetadata>

Reply via email to