From unknown Sat Jun 21 12:21:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#28552] [PATCH 2/3] gnu: Add infiniband-diags. Resent-From: Dave Love Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Sep 2017 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28552 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 28552@debbugs.gnu.org Cc: Dave Love X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.150609429811492 (code B ref -1); Fri, 22 Sep 2017 15:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Sep 2017 15:31:38 +0000 Received: from localhost ([127.0.0.1]:53024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvPvV-0002zI-TD for submit@debbugs.gnu.org; Fri, 22 Sep 2017 11:31:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvPvU-0002yz-6E for submit@debbugs.gnu.org; Fri, 22 Sep 2017 11:31:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvPvN-0004tx-IX for submit@debbugs.gnu.org; Fri, 22 Sep 2017 11:31:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49526) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dvPvN-0004th-Fd for submit@debbugs.gnu.org; Fri, 22 Sep 2017 11:31:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvPvI-0007gG-WD for guix-patches@gnu.org; Fri, 22 Sep 2017 11:31:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvPvD-0004iL-8Z for guix-patches@gnu.org; Fri, 22 Sep 2017 11:31:25 -0400 Received: from clarity.mcc.ac.uk ([130.88.200.144]:15489) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dvPv8-0000qB-Pp; Fri, 22 Sep 2017 11:31:14 -0400 Received: from albion.it.manchester.ac.uk ([130.88.138.79] helo=albion.its.manchester.ac.uk) by clarity.mcc.ac.uk with esmtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1dvPW4-0006Nt-HT; Fri, 22 Sep 2017 16:05:20 +0100 Received: by albion.its.manchester.ac.uk (Postfix, from userid 1000) id 9CCCEBB2; Fri, 22 Sep 2017 16:04:58 +0100 (BST) From: Dave Love Date: Fri, 22 Sep 2017 16:04:06 +0100 Message-Id: <20170922150407.18134-2-fx@gnu.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170922150407.18134-1-fx@gnu.org> References: <20170922150407.18134-1-fx@gnu.org> X-SA-Exim-Connect-IP: 130.88.138.79 X-SA-Exim-Mail-From: mdehsdl3@ds.man.ac.uk X-SA-Exim-Scanned: No (on clarity.mcc.ac.uk); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) * gnu/packages/fabric-management.scm (infiniband-diags): New variable. --- gnu/packages/fabric-management.scm | 69 +++++++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fabric-management.scm b/gnu/packages/fabric-management.scm index abef18d36..a0e4b12c4 100644 --- a/gnu/packages/fabric-management.scm +++ b/gnu/packages/fabric-management.scm @@ -23,9 +23,13 @@ #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages bison) #:use-module (gnu packages flex) - #:use-module (gnu packages linux)) + #:use-module (gnu packages glib) + #:use-module (gnu packages linux) + #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config)) ;; Fixme: Done for the library, but needs support for running the daemon ;; (shepherd definition). @@ -70,3 +74,66 @@ also contains various tools for diagnosing and testing Infiniband networks that can be used from any machine and do not need to be run on a machine running the opensm daemon.") (license (list gpl2 bsd-2)))) + +(define-public infiniband-diags + (package + (name "infiniband-diags") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/linux-rdma/infiniband-diags/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1ns9sjwvxnklhi47d6k5x8kxdk1n7f5362y45xwxqmr7gwfvpmwa")))) + (build-system gnu-build-system) + (inputs + `(("rdma-core" ,rdma-core) + ("opensm" ,opensm) + ("glib" ,glib))) + (outputs '("out" "lib")) + (native-inputs + ;; fixme: needs rst2man for man pages + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("perl" ,perl) + ("pkg-config" ,pkg-config))) + (arguments + '(#:configure-flags + (list (string-append "CPPFLAGS=-I" (assoc-ref %build-inputs "opensm") + "/include/infiniband") + (string-append "--with-perl-installdir=" (assoc-ref %outputs "lib") + "/lib/perl5/vendor_perl") + "--disable-static") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'autotools + (lambda _ + (zero? (system "./autogen.sh")))) + (add-after 'install 'licence + (lambda _ + (let ((doc (string-append (assoc-ref %outputs "lib") "/share/doc"))) + (mkdir-p doc) + (install-file "COPYING" doc)))) + (add-after 'install-file 'move-perl + ;; Avoid perl in lib closure + (lambda _ + (let ((perlout (string-append (assoc-ref %outputs "out") "/lib")) + (perlin (string-append (assoc-ref %outputs "lib") + "/lib/perl5"))) + (mkdir-p perlout) + (zero? (system* "mv" perlin perlout)))))))) + (home-page "https://github.com/linux-rdma/infiniband-diags") + (synopsis "Infiniband diagnotic tools") + (description "\ +A set of utilities designed to help configure, debug, and maintain infiniband +fabrics. Many tools and utilities are provided, some with similar +functionality. + +In addition to the utilities provided, a sub-library libibnetdisc, is provided +to scan an entire IB fabric and return data structures representing it. The +interface to this library is not guaranteed to be stable.") + (license + (list gpl2 bsd-2)))) ; dual -- 2.11.0 From unknown Sat Jun 21 12:21:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Dave Love Subject: bug#28552: closed (Re: [bug#28552] [PATCH 2/3] gnu: Add infiniband-diags.) Message-ID: References: <87bmm12yik.fsf@gnu.org> <20170922150407.18134-2-fx@gnu.org> X-Gnu-PR-Message: they-closed 28552 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 28552@debbugs.gnu.org Date: Sat, 23 Sep 2017 16:04:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1506182642-1750-1" This is a multi-part message in MIME format... ------------=_1506182642-1750-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #28552: [PATCH 2/3] gnu: Add infiniband-diags. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 28552@debbugs.gnu.org. --=20 28552: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28552 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1506182642-1750-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 28552-done) by debbugs.gnu.org; 23 Sep 2017 16:03:29 +0000 Received: from localhost ([127.0.0.1]:54780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvmtt-0000RK-D7 for submit@debbugs.gnu.org; Sat, 23 Sep 2017 12:03:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvmts-0000R7-Ly for 28552-done@debbugs.gnu.org; Sat, 23 Sep 2017 12:03:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvmtm-0002U3-6a for 28552-done@debbugs.gnu.org; Sat, 23 Sep 2017 12:03:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvmth-0002Sj-B9; Sat, 23 Sep 2017 12:03:17 -0400 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=58460 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dvmtg-0004AH-Qd; Sat, 23 Sep 2017 12:03:17 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Dave Love Subject: Re: [bug#28552] [PATCH 2/3] gnu: Add infiniband-diags. References: <20170922150407.18134-1-fx@gnu.org> <20170922150407.18134-2-fx@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 =?utf-8?Q?Vend=C3=A9miaire?= an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 23 Sep 2017 18:03:15 +0200 In-Reply-To: <20170922150407.18134-2-fx@gnu.org> (Dave Love's message of "Fri, 22 Sep 2017 16:04:06 +0100") Message-ID: <87bmm12yik.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28552-done Cc: 28552-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain Dave Love skribis: > * gnu/packages/fabric-management.scm (infiniband-diags): New variable. Applied with the cosmetic changes below. Thanks, Ludo'. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/fabric-management.scm b/gnu/packages/fabric-management.scm index 4c6f21a98..edb058842 100644 --- a/gnu/packages/fabric-management.scm +++ b/gnu/packages/fabric-management.scm @@ -96,7 +96,7 @@ running the opensm daemon.") ("glib" ,glib))) (outputs '("out" "lib")) (native-inputs - ;; fixme: needs rst2man for man pages + ;; FIXME: needs rst2man for man pages `(("autoconf" ,autoconf) ("automake" ,automake) ("libtool" ,libtool) @@ -126,16 +126,14 @@ running the opensm daemon.") (perlin (string-append (assoc-ref %outputs "lib") "/lib/perl5"))) (mkdir-p perlout) - (zero? (system* "mv" perlin perlout)))))))) + (rename-file perlin perlout) + #t)))))) (home-page "https://github.com/linux-rdma/infiniband-diags") (synopsis "Infiniband diagnotic tools") - (description "\ -A set of utilities designed to help configure, debug, and maintain infiniband -fabrics. Many tools and utilities are provided, some with similar -functionality. + (description "This is a set of command-line utilities to help configure, +debug, and maintain Infiniband (IB) fabrics. -In addition to the utilities provided, a sub-library libibnetdisc, is provided +In addition to the utilities, a sub-library, @file{libibnetdisc}, is provided to scan an entire IB fabric and return data structures representing it. The interface to this library is not guaranteed to be stable.") - (license - (list gpl2 bsd-2)))) ; dual + (license (list gpl2 bsd-2)))) ; dual --=-=-=-- ------------=_1506182642-1750-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 22 Sep 2017 15:31:38 +0000 Received: from localhost ([127.0.0.1]:53024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvPvV-0002zI-TD for submit@debbugs.gnu.org; Fri, 22 Sep 2017 11:31:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44211) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvPvU-0002yz-6E for submit@debbugs.gnu.org; Fri, 22 Sep 2017 11:31:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvPvN-0004tx-IX for submit@debbugs.gnu.org; Fri, 22 Sep 2017 11:31:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49526) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dvPvN-0004th-Fd for submit@debbugs.gnu.org; Fri, 22 Sep 2017 11:31:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvPvI-0007gG-WD for guix-patches@gnu.org; Fri, 22 Sep 2017 11:31:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvPvD-0004iL-8Z for guix-patches@gnu.org; Fri, 22 Sep 2017 11:31:25 -0400 Received: from clarity.mcc.ac.uk ([130.88.200.144]:15489) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dvPv8-0000qB-Pp; Fri, 22 Sep 2017 11:31:14 -0400 Received: from albion.it.manchester.ac.uk ([130.88.138.79] helo=albion.its.manchester.ac.uk) by clarity.mcc.ac.uk with esmtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1dvPW4-0006Nt-HT; Fri, 22 Sep 2017 16:05:20 +0100 Received: by albion.its.manchester.ac.uk (Postfix, from userid 1000) id 9CCCEBB2; Fri, 22 Sep 2017 16:04:58 +0100 (BST) From: Dave Love To: guix-patches@gnu.org Subject: [PATCH 2/3] gnu: Add infiniband-diags. Date: Fri, 22 Sep 2017 16:04:06 +0100 Message-Id: <20170922150407.18134-2-fx@gnu.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170922150407.18134-1-fx@gnu.org> References: <20170922150407.18134-1-fx@gnu.org> X-SA-Exim-Connect-IP: 130.88.138.79 X-SA-Exim-Mail-From: mdehsdl3@ds.man.ac.uk X-SA-Exim-Scanned: No (on clarity.mcc.ac.uk); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit Cc: Dave Love X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) * gnu/packages/fabric-management.scm (infiniband-diags): New variable. --- gnu/packages/fabric-management.scm | 69 +++++++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fabric-management.scm b/gnu/packages/fabric-management.scm index abef18d36..a0e4b12c4 100644 --- a/gnu/packages/fabric-management.scm +++ b/gnu/packages/fabric-management.scm @@ -23,9 +23,13 @@ #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages bison) #:use-module (gnu packages flex) - #:use-module (gnu packages linux)) + #:use-module (gnu packages glib) + #:use-module (gnu packages linux) + #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config)) ;; Fixme: Done for the library, but needs support for running the daemon ;; (shepherd definition). @@ -70,3 +74,66 @@ also contains various tools for diagnosing and testing Infiniband networks that can be used from any machine and do not need to be run on a machine running the opensm daemon.") (license (list gpl2 bsd-2)))) + +(define-public infiniband-diags + (package + (name "infiniband-diags") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/linux-rdma/infiniband-diags/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1ns9sjwvxnklhi47d6k5x8kxdk1n7f5362y45xwxqmr7gwfvpmwa")))) + (build-system gnu-build-system) + (inputs + `(("rdma-core" ,rdma-core) + ("opensm" ,opensm) + ("glib" ,glib))) + (outputs '("out" "lib")) + (native-inputs + ;; fixme: needs rst2man for man pages + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("perl" ,perl) + ("pkg-config" ,pkg-config))) + (arguments + '(#:configure-flags + (list (string-append "CPPFLAGS=-I" (assoc-ref %build-inputs "opensm") + "/include/infiniband") + (string-append "--with-perl-installdir=" (assoc-ref %outputs "lib") + "/lib/perl5/vendor_perl") + "--disable-static") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'autotools + (lambda _ + (zero? (system "./autogen.sh")))) + (add-after 'install 'licence + (lambda _ + (let ((doc (string-append (assoc-ref %outputs "lib") "/share/doc"))) + (mkdir-p doc) + (install-file "COPYING" doc)))) + (add-after 'install-file 'move-perl + ;; Avoid perl in lib closure + (lambda _ + (let ((perlout (string-append (assoc-ref %outputs "out") "/lib")) + (perlin (string-append (assoc-ref %outputs "lib") + "/lib/perl5"))) + (mkdir-p perlout) + (zero? (system* "mv" perlin perlout)))))))) + (home-page "https://github.com/linux-rdma/infiniband-diags") + (synopsis "Infiniband diagnotic tools") + (description "\ +A set of utilities designed to help configure, debug, and maintain infiniband +fabrics. Many tools and utilities are provided, some with similar +functionality. + +In addition to the utilities provided, a sub-library libibnetdisc, is provided +to scan an entire IB fabric and return data structures representing it. The +interface to this library is not guaranteed to be stable.") + (license + (list gpl2 bsd-2)))) ; dual -- 2.11.0 ------------=_1506182642-1750-1--