From 37e997bc7867901dc5eaf9060358dfddacae8dd6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludovic.courtes@inria.fr>
Date: Mon, 1 Feb 2021 12:37:03 +0100
Subject: [PATCH] gnu: rdma-core: Remove "-DIOCTL_MODE=write" configure flag.

Fixes <https://bugs.gnu.org/46229>.

This flag was added in commit 2b14c60d3870e74f620775ec8dd64634ff874dc7.
It is apparently no longer needed.  Worse, it now causes segfaults when
used with Omni-Path devices, as reported in the bug above.

* gnu/packages/linux.scm (rdma-core)[arguments]: Remove
"-DIOCTL_MODE=write" from #:configure-flags.
---
 gnu/packages/linux.scm | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index da4a76605c1..f22564a35b6 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -5528,14 +5528,7 @@ (define-public rdma-core
                                (string-append "-DRST2MAN_EXECUTABLE="
                                               (assoc-ref %build-inputs
                                                          "python-docutils")
-                                              "/bin/rst2man.py")
-
-                               ;; On some configurations, the
-                               ;; IB_USER_MAD_REGISTER_AGENT ioctl, which is
-                               ;; used by default, would return ENODEV.  To
-                               ;; avoid that, use 'write' instead of ioctls,
-                               ;; as suggested in 'CMakeList.txt'.
-                               "-DIOCTL_MODE=write")
+                                              "/bin/rst2man.py"))
        #:phases
        (modify-phases %standard-phases
          (replace 'build
-- 
GitLab