GNU bug report logs - #26257
[PATCH] gnu: Add rdma-core.

Previous Next

Package: guix-patches;

Reported by: Marius Bakke <mbakke <at> fastmail.com>

Date: Sat, 25 Mar 2017 20:35:01 UTC

Severity: normal

Tags: patch

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26257 in the body.
You can then email your comments to 26257 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#26257; Package guix-patches. (Sat, 25 Mar 2017 20:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marius Bakke <mbakke <at> fastmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 25 Mar 2017 20:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: guix-patches <at> gnu.org
Cc: Marius Bakke <mbakke <at> fastmail.com>
Subject: [PATCH] gnu: Add rdma-core.
Date: Sat, 25 Mar 2017 21:33:53 +0100
* gnu/packages/linux.scm (rdma-core): New variable.
---
 gnu/packages/linux.scm | 70 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 69 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 0a1c50040..393224faa 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -15,7 +15,7 @@
 ;;; Copyright © 2016 Ricardo Wurmus <rekado <at> elephly.net>
 ;;; Copyright © 2016 David Craven <david <at> craven.ch>
 ;;; Copyright © 2016 John Darrington <jmd <at> gnu.org>
-;;; Copyright © 2016 Marius Bakke <mbakke <at> fastmail.com>
+;;; Copyright © 2016, 2017 Marius Bakke <mbakke <at> fastmail.com>
 ;;; Copyright © 2016 Rene Saavedra <rennes <at> openmailbox.org>
 ;;; Copyright © 2016 ng0 <ng0 <at> libertad.pw>
 ;;; Copyright © 2017 Leo Famulari <leo <at> famulari.name>
@@ -69,6 +69,7 @@
   #:use-module (gnu packages maths)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages networking)
+  #:use-module (gnu packages ninja)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pciutils)
   #:use-module (gnu packages pkg-config)
@@ -3029,6 +3030,73 @@ commonly found on Microsoft Windows.  It is implemented as a FUSE file system.
 The package provides additional NTFS tools.")
     (license license:gpl2+)))
 
+(define-public rdma-core
+  (package
+    (name "rdma-core")
+    (version "13")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/linux-rdma/rdma-core"
+                                  "/releases/download/v" version "/rdma-core-"
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "15qdfqkia22vab1dh41s88vgi70yifi40ar5s4x7a456rpbhy8z5"))))
+    (build-system cmake-build-system)
+    (arguments
+     '(#:tests? #f ; no tests
+       ;; Upstream uses the "ninja" build system and encourage distros
+       ;; to do the same for consistency. They also recommend using the
+       ;; "Release" build type.
+       #:configure-flags (list "-GNinja"
+                               ;; Defaults to "lib64" on 64-bit archs.
+                               (string-append "-DCMAKE_INSTALL_LIBDIR="
+                                              (assoc-ref %outputs "out") "/lib")
+                               "-DCMAKE_BUILD_TYPE=Release")
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'build
+           (lambda _
+             (zero? (system* "ninja"
+                             "-j" (number->string (parallel-job-count))))))
+         (replace 'install
+           (lambda _
+             (zero? (system* "ninja" "install")))))))
+    (native-inputs
+     `(("ninja" ,ninja)
+       ("pkg-config" ,pkg-config)
+       ("python" ,python-wrapper)))
+    (inputs
+     `(("libnl" ,libnl)
+       ("udev" ,eudev)))
+    (home-page "https://github.com/linux-rdma/rdma-core")
+    (synopsis "Utilities and libraries for working with RDMA devices")
+    (description
+     "This package provides the userspace components for the InfiniBand
+subsystem of the Linux kernel.  Specifically it contains userspace libraries
+for the following device nodes:
+
+@enumerate
+@item @file{/dev/infiniband/uverbsX} (@code{libibverbs})
+@item @file{/dev/infiniband/rdma_cm} (@code{librdmacm})
+@item @file{/dev/infiniband/umadX} (@code{libibumad})
+@end enumerate
+
+The following service daemons are also provided:
+@enumerate
+@item @code{srp_daemon} (for the @code{ib_srp} kernel module)
+@item @code{iwpmd} (for iwarp kernel providers)
+@item @code{ibacm} (for InfiniBand communication management assistant)
+@end enumerate")
+    ;; The package is dual licensed under GPL2 and a custom MIT variant.
+    ;; It also includes some components covered by other licenses.
+    (license
+     (list license:gpl2
+           (license:x11-style "See COPYING.BSD_MIT in the distribution")
+           license:bsd-2             ; Files referring to COPYING.BSD_FB
+           license:cc0               ; most files in ccan/
+           license:bsd-3))))         ; providers/hfi1verbs are dual GPL2/BSD-3
+
 (define-public rng-tools
   (package
     (name "rng-tools")
-- 
2.12.2





Information forwarded to guix-patches <at> gnu.org:
bug#26257; Package guix-patches. (Mon, 27 Mar 2017 11:57:01 GMT) Full text and rfc822 format available.

Message #8 received at 26257 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: 26257 <at> debbugs.gnu.org
Subject: Re: bug#26257: [PATCH] gnu: Add rdma-core.
Date: Mon, 27 Mar 2017 13:55:54 +0200
Marius Bakke <mbakke <at> fastmail.com> skribis:

> * gnu/packages/linux.scm (rdma-core): New variable.

LGTM!

> +    (home-page "https://github.com/linux-rdma/rdma-core")
> +    (synopsis "Utilities and libraries for working with RDMA devices")
> +    (description
> +     "This package provides the userspace components for the InfiniBand
> +subsystem of the Linux kernel.  Specifically it contains userspace libraries
> +for the following device nodes:
> +
> +@enumerate
> +@item @file{/dev/infiniband/uverbsX} (@code{libibverbs})
> +@item @file{/dev/infiniband/rdma_cm} (@code{librdmacm})
> +@item @file{/dev/infiniband/umadX} (@code{libibumad})
> +@end enumerate
> +
> +The following service daemons are also provided:
> +@enumerate
> +@item @code{srp_daemon} (for the @code{ib_srp} kernel module)
> +@item @code{iwpmd} (for iwarp kernel providers)
> +@item @code{ibacm} (for InfiniBand communication management assistant)
> +@end enumerate")

I was wondering whether this code was relying on proprietary InfiniBand
drivers, which would not be okay, but

  find $LINUX_MODULE_DIRECTORY -name ib\*ko

shows a bunch of drivers, including ‘ib_srp’ (mentioned above), so I
guess this is fine.

Thanks!

Ludo’.




Reply sent to Marius Bakke <mbakke <at> fastmail.com>:
You have taken responsibility. (Tue, 28 Mar 2017 15:09:02 GMT) Full text and rfc822 format available.

Notification sent to Marius Bakke <mbakke <at> fastmail.com>:
bug acknowledged by developer. (Tue, 28 Mar 2017 15:09:02 GMT) Full text and rfc822 format available.

Message #13 received at 26257-done <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 26257-done <at> debbugs.gnu.org
Subject: Re: bug#26257: [PATCH] gnu: Add rdma-core.
Date: Tue, 28 Mar 2017 17:08:19 +0200
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> Marius Bakke <mbakke <at> fastmail.com> skribis:
>
>> * gnu/packages/linux.scm (rdma-core): New variable.
>
> LGTM!

Closing, thanks!

[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 26 Apr 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 113 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.