summaryrefslogtreecommitdiff
path: root/sys-cluster
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-09-11 01:41:34 -0500
committerroot <root@alpha.trunkmasters.com>2026-09-11 01:41:34 -0500
commitfc39c62a8944e95c0ecccfc9781763822b23e66c (patch)
tree11feafa0dbddccf6fcd9dabb290b0ce5faafec36 /sys-cluster
parent98068fb4a1502cade02134b1834439134ca4eed1 (diff)
downloadbaldeagleos-repo-fc39c62a8944e95c0ecccfc9781763822b23e66c.tar.gz
baldeagleos-repo-fc39c62a8944e95c0ecccfc9781763822b23e66c.tar.xz
baldeagleos-repo-fc39c62a8944e95c0ecccfc9781763822b23e66c.zip
Adding metadata
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/rdma-core/Manifest1
-rw-r--r--sys-cluster/rdma-core/files/rdma-core-65.0-lttng-static.patch40
-rw-r--r--sys-cluster/rdma-core/rdma-core-65.0.ebuild97
-rw-r--r--sys-cluster/rdma-core/rdma-core-9999.ebuild29
4 files changed, 141 insertions, 26 deletions
diff --git a/sys-cluster/rdma-core/Manifest b/sys-cluster/rdma-core/Manifest
index 711ffb02d1c3..976d12ec2b93 100644
--- a/sys-cluster/rdma-core/Manifest
+++ b/sys-cluster/rdma-core/Manifest
@@ -2,3 +2,4 @@ DIST rdma-core-57.0.tar.gz 2020448 BLAKE2B 4808103af76e3314ce68b4fc3607d217d7b58
DIST rdma-core-59.0.tar.gz 2037869 BLAKE2B d2836c5c7590754484880951f00015bcf279479549d42ed52325eaf4e40128c4b1289c64986003fb4e326f797971c7c506b22e9fc018694865c7fadfb8a3568f SHA512 f2d2001240e875ad3fec4f2f01e90573468daa040e07ec2f6cc81e875cf7b950c2dfeab10962b8b3d70852ecfe0ede2644ff7bea87560a45084baa47bd2d5401
DIST rdma-core-63.0-fix-efa-with-lttng.patch 1250 BLAKE2B c92299c5b8f659013cad2e840cd44447c2dadc67f4b957a92212dc83b6846968d796e5b448d75e1a0ff87d95584971614ba3aa74b5281fcf3fd01702dd959904 SHA512 7fbe97291ac1c35647cfac4ae2d1c51709c02ea2f797c6b88cd1a87f179c32731e3cd5ebab6c0ae9b07f10b3d20f6446cdd97671629b072431bf61a3c91eeeff
DIST rdma-core-63.0.tar.gz 2114488 BLAKE2B 00c36a6c40ed23daba79139ef0c537082b5382241fa229ecb5cf71c3b3c1467f96c09ca68185d58db16734c8890567fc3446979f4042b3992b868c101909b61b SHA512 aa7308455009a10eea8bff59b09ad80124ab70bbd8fe205451585c9111c33b0cb99f8112930e7b9a62a91d248f9f8411913c8a4f1edec013fae1493c6cb13629
+DIST rdma-core-65.0.tar.gz 2190729 BLAKE2B 7fb8db0347c7ac66f5e6002ee3336b1d3d7e5a9feba4cb68db64e128d3a4d0b62072955a8ac712aee78644fa6086041017a684ce076e2a1072ca04350bb0bb51 SHA512 2695b1fe25d7b1b8c76873c3da920c45cb1bf1429910e5f4f7d756530a2ef7c29ed8d5229b037112e0eed186ae99c3f2725366720802ae5c2eda0ed43c5c4257
diff --git a/sys-cluster/rdma-core/files/rdma-core-65.0-lttng-static.patch b/sys-cluster/rdma-core/files/rdma-core-65.0-lttng-static.patch
new file mode 100644
index 000000000000..014aeb2e4b0c
--- /dev/null
+++ b/sys-cluster/rdma-core/files/rdma-core-65.0-lttng-static.patch
@@ -0,0 +1,40 @@
+From 136666a396a81f65c9a7ff8764fc37dc41bb64ec Mon Sep 17 00:00:00 2001
+From: David Seifert <soap@gentoo.org>
+Date: Wed, 9 Sep 2026 21:45:37 +0200
+Subject: [PATCH] Fix static build against lttng
+
+* With `cmake -DENABLE_STATIC=1 -DTRACING=LTTNG ..`:
+
+ /tmp/rdma-core/providers/efa/efa_trace.h:16:38: fatal error: efa_trace.h: No such file or directory
+ 16 | #define LTTNG_UST_TRACEPOINT_INCLUDE "efa_trace.h"
+ | ^~~~~~~~~~~~~
+ compilation terminated.
+ ninja: build stopped: subcommand failed.
+
+Signed-off-by: David Seifert <soap@gentoo.org>
+---
+ buildlib/rdma_functions.cmake | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/buildlib/rdma_functions.cmake b/buildlib/rdma_functions.cmake
+index 6e0c7d2e8..1942e630f 100644
+--- a/buildlib/rdma_functions.cmake
++++ b/buildlib/rdma_functions.cmake
+@@ -152,6 +152,8 @@ function(rdma_shared_provider DEST VERSION_SCRIPT SOVERSION VERSION)
+ # Create a static provider library
+ if (ENABLE_STATIC)
+ add_library(${DEST}-static STATIC ${ARGN})
++ # LTTng tracepoint headers re-#include themselves by quoted name
++ target_include_directories(${DEST}-static PUBLIC ".")
+ rdma_public_static_lib(${DEST} ${DEST}-static ${VERSION_SCRIPT})
+ endif()
+
+@@ -198,6 +200,8 @@ function(rdma_provider DEST)
+ # Create a static provider library
+ if (ENABLE_STATIC)
+ add_library(${DEST} STATIC ${ARGN})
++ # LTTng tracepoint headers re-#include themselves by quoted name
++ target_include_directories(${DEST} PUBLIC ".")
+ rdma_public_static_lib("${DEST}-rdmav${IBVERBS_PABI_VERSION}" ${DEST} ${BUILDLIB}/provider.map)
+ endif()
+
diff --git a/sys-cluster/rdma-core/rdma-core-65.0.ebuild b/sys-cluster/rdma-core/rdma-core-65.0.ebuild
new file mode 100644
index 000000000000..e2d523f2932e
--- /dev/null
+++ b/sys-cluster/rdma-core/rdma-core-65.0.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit cmake perl-functions python-single-r1 udev systemd
+
+DESCRIPTION="Userspace components for the Linux Kernel's drivers/infiniband subsystem"
+HOMEPAGE="https://github.com/linux-rdma/rdma-core"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/linux-rdma/rdma-core"
+else
+ SRC_URI="https://github.com/linux-rdma/rdma-core/releases/download/v${PV}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
+
+LICENSE="|| ( GPL-2 ( CC0-1.0 MIT BSD BSD-with-attribution ) )"
+SLOT="0"
+IUSE="lttng neigh python static-libs systemd valgrind"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dev-lang/perl:=
+ virtual/libudev:=
+ lttng? ( dev-util/lttng-ust:= )
+ neigh? ( dev-libs/libnl:3 )
+ systemd? ( sys-apps/systemd:= )
+ valgrind? ( dev-debug/valgrind )
+ python? ( ${PYTHON_DEPS} )
+"
+DEPEND="
+ ${RDEPEND}
+ python? (
+ $(python_gen_cond_dep '
+ dev-python/cython[${PYTHON_USEDEP}]
+ ')
+ )
+"
+# python is required unconditionally at build-time
+BDEPEND="
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-39.0-RDMA_BuildType.patch
+ "${FILESDIR}"/${PN}-65.0-lttng-static.patch
+)
+
+src_configure() {
+ perl_set_version
+
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc
+ -DCMAKE_INSTALL_RUNDIR=/run
+ -DCMAKE_INSTALL_SHAREDSTATEDIR="${EPREFIX}"/var/lib
+ -DCMAKE_INSTALL_PERLDIR="${VENDOR_LIB}"
+ -DCMAKE_INSTALL_UDEV_RULESDIR="${EPREFIX}$(get_udevdir)"/rules.d
+ -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)"
+ -DCMAKE_DISABLE_FIND_PACKAGE_Systemd="$(usex !systemd)"
+ -DTRACING="$(usex lttng LTTNG None)"
+ -DENABLE_VALGRIND="$(usex valgrind)"
+ -DENABLE_RESOLVE_NEIGH="$(usex neigh)"
+ -DENABLE_STATIC="$(usex static-libs)"
+ -DNO_PYVERBS="$(usex !python)"
+ -DNO_MAN_PAGES=1
+ -DPYTHON_EXECUTABLE="${PYTHON}"
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ udev_dorules "${ED}"/usr/share/doc/${PF}/70-persistent-ipoib.rules
+
+ if use neigh; then
+ newinitd "${FILESDIR}"/ibacm.init ibacm
+ newinitd "${FILESDIR}"/iwpmd.init iwpmd
+ fi
+
+ newinitd "${FILESDIR}"/srpd.init srpd
+
+ use python && python_optimize
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}
diff --git a/sys-cluster/rdma-core/rdma-core-9999.ebuild b/sys-cluster/rdma-core/rdma-core-9999.ebuild
index 64e1f49f53f4..e2d523f2932e 100644
--- a/sys-cluster/rdma-core/rdma-core-9999.ebuild
+++ b/sys-cluster/rdma-core/rdma-core-9999.ebuild
@@ -18,18 +18,12 @@ else
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
-# https://github.com/linux-rdma/rdma-core/pull/1747
-SRC_URI+="
- https://github.com/linux-rdma/rdma-core/commit/448ecf97586de63da7d7fac1ea24f0f0fa381336.patch
- -> ${PN}-63.0-fix-efa-with-lttng.patch
-"
-
LICENSE="|| ( GPL-2 ( CC0-1.0 MIT BSD BSD-with-attribution ) )"
SLOT="0"
IUSE="lttng neigh python static-libs systemd valgrind"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-COMMON_DEPEND="
+RDEPEND="
dev-lang/perl:=
virtual/libudev:=
lttng? ( dev-util/lttng-ust:= )
@@ -39,30 +33,13 @@ COMMON_DEPEND="
python? ( ${PYTHON_DEPS} )
"
DEPEND="
- ${COMMON_DEPEND}
+ ${RDEPEND}
python? (
$(python_gen_cond_dep '
dev-python/cython[${PYTHON_USEDEP}]
')
)
"
-RDEPEND="${COMMON_DEPEND}
- !sys-fabric/infiniband-diags
- !sys-fabric/libibverbs
- !sys-fabric/librdmacm
- !sys-fabric/libibumad
- !sys-fabric/ibacm
- !sys-fabric/libibmad
- !sys-fabric/srptools
- !sys-fabric/infinipath-psm
- !sys-fabric/libcxgb3
- !sys-fabric/libcxgb4
- !sys-fabric/libmthca
- !sys-fabric/libmlx4
- !sys-fabric/libmlx5
- !sys-fabric/libocrdma
- !sys-fabric/libnes
-"
# python is required unconditionally at build-time
BDEPEND="
${PYTHON_DEPS}
@@ -71,7 +48,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-39.0-RDMA_BuildType.patch
- "${DISTDIR}"/${PN}-63.0-fix-efa-with-lttng.patch
+ "${FILESDIR}"/${PN}-65.0-lttng-static.patch
)
src_configure() {