commit:     216c8841d3dec99349669c12c03c373a3b447678
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 12 06:48:13 2023 +0000
Commit:     罗百科 <patrick <AT> gentoo <DOT> org>
CommitDate: Thu Oct 12 06:50:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=216c8841

sys-cluster/rdma-core: Fix lttng dep handling

CMakeList.txt has a small bug that accidentally breaks build.
With default settings it would build as LTTNG is undefined, but
since we set -DLTTNG=no explicitly it fails to build.
Fix CMakeList.txt to restore sanity.

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 sys-cluster/rdma-core/rdma-core-48.0.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys-cluster/rdma-core/rdma-core-48.0.ebuild 
b/sys-cluster/rdma-core/rdma-core-48.0.ebuild
index 19fe7450ce77..66f42a8b2e36 100644
--- a/sys-cluster/rdma-core/rdma-core-48.0.ebuild
+++ b/sys-cluster/rdma-core/rdma-core-48.0.ebuild
@@ -67,6 +67,12 @@ PATCHES=(
        "${FILESDIR}"/${PN}-39.0-RDMA_BuildType.patch
 )
 
+src_prepare() {
+       # DEFINED is true even if the value is false, which makes lttng 
unconditional
+       sed -i -e 's/if (DEFINED ENABLE_LTTNG)/if (ENABLE_LTTNG)/' 
CMakeLists.txt || die
+       cmake_src_prepare
+}
+
 src_configure() {
        perl_set_version
 

Reply via email to