From unknown Sun Jun 22 22:44:48 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27912] add libnl3 Resent-From: Dave Love Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Aug 2017 20:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27912 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 27912@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15016193948266 (code B ref -1); Tue, 01 Aug 2017 20:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Aug 2017 20:29:54 +0000 Received: from localhost ([127.0.0.1]:37336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcdnb-00029D-1g for submit@debbugs.gnu.org; Tue, 01 Aug 2017 16:29:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcdnV-00028x-KR for submit@debbugs.gnu.org; Tue, 01 Aug 2017 16:29:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcdnP-0001vD-0P for submit@debbugs.gnu.org; Tue, 01 Aug 2017 16:29:40 -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.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59835) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcdnO-0001uz-SI for submit@debbugs.gnu.org; Tue, 01 Aug 2017 16:29:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcdnN-0001VW-Dt for guix-patches@gnu.org; Tue, 01 Aug 2017 16:29:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcdnJ-0001rz-Cy for guix-patches@gnu.org; Tue, 01 Aug 2017 16:29:37 -0400 Received: from clarity.mcc.ac.uk ([130.88.200.144]:48652) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcdnJ-0001rG-4C for guix-patches@gnu.org; Tue, 01 Aug 2017 16:29:33 -0400 Received: from asmtp2.its.manchester.ac.uk ([130.88.13.150]) by clarity.mcc.ac.uk with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85 (FreeBSD)) (envelope-from ) id 1dcdnH-000CM8-81 for guix-patches@gnu.org; Tue, 01 Aug 2017 21:29:31 +0100 Received: from albion.it.manchester.ac.uk ([130.88.138.79]:55206 helo=i-ulialbion.it.manchester.ac.uk) by asmtp2.its.manchester.ac.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1dcdnG-0001DV-Uz for guix-patches@gnu.org; Tue, 01 Aug 2017 21:29:30 +0100 From: Dave Love Date: Tue, 01 Aug 2017 21:29:30 +0100 Message-ID: <87y3r3821h.fsf@i-ulialbion.it.manchester.ac.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="pipeline-Islam-Abduganievich-Karimov-EBS-SAR-underground" X-Authenticated-Sender: David Love from albion.it.manchester.ac.uk (i-ulialbion.it.manchester.ac.uk) [130.88.138.79]:55206 X-Authenticated-From: Dave.Love@manchester.ac.uk X-SA-Exim-Connect-IP: 130.88.13.150 X-SA-Exim-Mail-From: fx@gnu.org 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 (-----) --pipeline-Islam-Abduganievich-Karimov-EBS-SAR-underground Content-Type: text/plain This is the first step in openfabrics support. I've also done libibverbs, but need to check that. Let me know if someone else is working on openfabrics. --pipeline-Islam-Abduganievich-Karimov-EBS-SAR-underground Content-Type: text/x-diff Content-Disposition: attachment; filename=0052-gnu-Add-libnl3.patch >From 8eb82c832622761e9a50a860f33addc3c15caf13 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 01 Aug 2017 21:22:26 +0100 Subject: [PATCH 52/69] gnu: Add libnl3. * gnu/packages/linux.scm (libnl3): New variable. --- gnu/packages/linux.scm | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 93a6a583a..6914e60a8 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4195,3 +4195,78 @@ tool, to understand the type of environment a process runs in, and for comparing system environments.") (home-page "http://github.com/jamesodhunt/procenv/") (license license:gpl3+))) + +;; Fixme: Is this the right way/a good way to deal with the Python bits? +(define-public libnl3 + (begin + (use-modules (gnu packages swig)) + (package + (name "libnl3") + (version "3.3.0") + (build-system gnu-build-system) + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/thom311/libnl/releases/download/libnl" + (string-join (string-split version #\.) "_") + "/libnl-" version ".tar.gz")) + (sha256 + (base32 "1r3lw3hjvqxi5zqyq2w1qadm3gisd9nlf71dkl4yplacmssnhm3h")))) + (native-inputs + `(("flex" ,flex) + ("bison" ,bison) + ("python-2" ,python-2) + ("python-3" ,python-3) + ("swig" ,swig) + ("pkg-config" ,pkg-config) + ("libnl3-doc" + ,(origin + (method url-fetch) + (uri (string-append + "https://github.com/thom311/libnl/releases/download/libnl" + (string-join (string-split version #\.) "_") + "/libnl-doc-" version ".tar.gz")) + (sha256 + (base32 "0srab805yj8wb13l64qjyp3mdbqapxg5vk46v3zlhhzpmxqw8j7r")))))) + (outputs '("out")) + (arguments + `(#:configure-flags + `(,(format #f "LDFLAGS=-Wl,-rpath=~a/lib" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-python + (let ((out (assoc-ref %outputs "out"))) + (lambda* (#:key outputs #:allow-other-keys) + (define (python-inst python) + (let ((ldflags (format #f "LDFLAGS=-Wl,-rpath=~a/lib" out))) + (and + ;; The rpm spec quoth "build twice, otherwise capi.py is + ;; not copied to the build directory" + (zero? (system (format #f "~a ~a setup.py build" + ldflags python out))) + (zero? + (system (format #f "~a ~a setup.py install --prefix=~a" + ldflags python out))) + (zero? (system* python "setup.py" "clean"))))) + (with-directory-excursion "./python" + (for-each python-inst '("python2" "python3")))))) + (add-after 'install 'install-doc + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((dest (format #f "~a/share/doc" + (assoc-ref outputs "doc")))) + (mkdir-p dest) + (with-directory-excursion dest + (and + (zero? (system* "tar" "xf" (assoc-ref inputs "libnl3-doc"))) + (zero? (system "mv *libnl-doc* libnl3")))))))))) + (home-page "http://www.infradead.org/~tgr/libnl/") + (synopsis "Convenience library for Linux netlink sockets") + (description + "The libnl suite is a collection of libraries providing APIs to netlink +protocol based Linux kernel interfaces. + +Netlink is an IPC mechanism primarly between the kernel and user space +processes. It was designed to be a more flexible successor to ioctl to +provide mainly networking related kernel configuration and monitoring +interfaces.") + (license license:lgpl2.1)))) -- 2.11.0 --pipeline-Islam-Abduganievich-Karimov-EBS-SAR-underground-- From unknown Sun Jun 22 22:44:48 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27912] add libnl3 Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Aug 2017 21:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27912 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Dave Love , 27912@debbugs.gnu.org Received: via spool by 27912-submit@debbugs.gnu.org id=B27912.150162165218576 (code B ref 27912); Tue, 01 Aug 2017 21:08:01 +0000 Received: (at 27912) by debbugs.gnu.org; 1 Aug 2017 21:07:32 +0000 Received: from localhost ([127.0.0.1]:37363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dceO4-0004pY-0j for submit@debbugs.gnu.org; Tue, 01 Aug 2017 17:07:32 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:35425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dceO2-0004pP-9A for 27912@debbugs.gnu.org; Tue, 01 Aug 2017 17:07:30 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id D1E722098B; Tue, 1 Aug 2017 17:07:29 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 01 Aug 2017 17:07:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=I6GwTzJyelv1s7GH8O5Mj9Fw8Q4ItPlr/t3wNx4mH zM=; b=AIPz3OhykLTSen6O539e8s0a5vREdJ7jS6gnPVDiy36jhab/+x63mxf3w eFQZILooRbc60e/wtDVULNmU2z9d1E2XX5wmoI08O2WbYGCIOvwrAz5ngE/w9p42 yTxsLwGCgWsMgnJlzb+jHQJuC3NcQNj8RxTXsHpRThekjjOEiSc8TUZSWzIj/trM PoxX82hjm4MzzI9Z+xv2wM/KncM6xD5jaRK3TswP50VmARpRf1HtTvXZ0zPNPU0o juuNU7adtx7s8FIv0+SlVUvSy7NfDp3wiDCIk43ak7k+Mmut4e6Qh0xN+I4dq68M FylZlLKeudt8AbOahHY26XidzdI2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=I6GwTzJyelv1s7GH8O 5Mj9Fw8Q4ItPlr/t3wNx4mHzM=; b=IL6UiFJ1qWiF7HrKfnxU0490fQzVPHv/OL OXNBe71upxJdL/2YxwqUAL2edKLBYcz+R7SddDlSTjBOU0dix/M7+pPduOnPMjYi XMMGr6zfrOadyw8/00IzYQ+Ig31RcpeUS40AQAF0bFt8m7hvTiRE3aab+NgM66M/ fS1Fyv2zw5TayBTzeNwsIPYw+zr43thUengNYJ9bnYdTCf9zIUjTkz7hrs7aQyva U0vtL1LE5FgBSuqIcaEeHGBWwcYp8BR+T1yw6duY50lWvfFtEf/7Uwwrmom3REiD 4hncYoJ3ZULCmB4t/+NYSESijdt5MeSNBK8hgsMp8JwsCgbN+npA== X-ME-Sender: X-Sasl-enc: bG/uN3kaoiC4sHjmJo2MRH+k9fWjfEJMZdDerhRdrhhB 1501621649 Received: from localhost (unknown [188.113.81.93]) by mail.messagingengine.com (Postfix) with ESMTPA id 73E712456C; Tue, 1 Aug 2017 17:07:29 -0400 (EDT) From: Marius Bakke In-Reply-To: <87y3r3821h.fsf@i-ulialbion.it.manchester.ac.uk> References: <87y3r3821h.fsf@i-ulialbion.it.manchester.ac.uk> User-Agent: Notmuch/0.25 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) Date: Tue, 01 Aug 2017 23:07:27 +0200 Message-ID: <87shhbvvxs.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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: -0.7 (/) --=-=-= Content-Type: text/plain Dave Love writes: > This is the first step in openfabrics support. I've also done > libibverbs, but need to check that. Let me know if someone else is > working on openfabrics. Hi Dave, We already have the netlink bindings under the name 'libnl', but it probably doesn't install the Python bits. Can you adjust this patch to improve the existing package? We also have libibverbs in 'rdma-core'. I haven't tested the functionality of it, though. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlmA7ZAACgkQoqBt8qM6 VPrFXQf+MCKOWEYKf7JcGbJyX8TuCQ8ezFEnO85cQgDq5VYtIcbtaTpLhrM+ujhH eTVVzf6Z8LDdME2KzPOEf8cLOOTKaviDhZAf3asr06It8KUGZy21ahgW7b3AWSGk 67PMmsevIS/F8eRsYhBqW81wil4iIkXLZk2nxpizZWOnO4QlhnPVwbeKvip/5u7v wXcizSpXqUQahmQBHj4nUCNmnPnDKKl7HXB2R4l2xl399HPB0tOPfxNLNf7oys4r VSHOP6LWhysBf15hj9UOhYrMdzQOO9cWoSw8bOEgDvp3KA5f0nEXuQh02eOPEQ2I Sk/eEKcD/gCEs6dcxVZsssb8UvnqFw== =/d5y -----END PGP SIGNATURE----- --=-=-=-- From unknown Sun Jun 22 22:44:48 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#27912] add libnl3 Resent-From: Dave Love Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Aug 2017 09:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27912 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Marius Bakke Cc: 27912@debbugs.gnu.org Received: via spool by 27912-submit@debbugs.gnu.org id=B27912.150166614318520 (code B ref 27912); Wed, 02 Aug 2017 09:30:02 +0000 Received: (at 27912) by debbugs.gnu.org; 2 Aug 2017 09:29:03 +0000 Received: from localhost ([127.0.0.1]:37675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcpxe-0004oe-OY for submit@debbugs.gnu.org; Wed, 02 Aug 2017 05:29:02 -0400 Received: from probity.mcc.ac.uk ([130.88.200.94]:52771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcpxb-0004oE-Uc for 27912@debbugs.gnu.org; Wed, 02 Aug 2017 05:29:00 -0400 Received: from asmtp2.its.manchester.ac.uk ([130.88.13.150]) by probity.mcc.ac.uk with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85 (FreeBSD)) (envelope-from ) id 1dcpxa-0000GL-PU; Wed, 02 Aug 2017 10:28:58 +0100 Received: from albion.it.manchester.ac.uk ([130.88.138.79]:58950 helo=i-ulialbion.it.manchester.ac.uk) by asmtp2.its.manchester.ac.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1dcpxa-0004JY-Fm; Wed, 02 Aug 2017 10:28:58 +0100 From: Dave Love References: <87y3r3821h.fsf@i-ulialbion.it.manchester.ac.uk> <87shhbvvxs.fsf@fastmail.com> X-Draft-From: ("Misc" 2414) Date: Wed, 02 Aug 2017 10:28:57 +0100 In-Reply-To: <87shhbvvxs.fsf@fastmail.com> (Marius Bakke's message of "Tue, 1 Aug 2017 23:07:27 +0200") Message-ID: <87h8xq8giu.fsf@i-ulialbion.it.manchester.ac.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Sender: David Love from albion.it.manchester.ac.uk (i-ulialbion.it.manchester.ac.uk) [130.88.138.79]:58950 X-Authenticated-From: Dave.Love@manchester.ac.uk X-SA-Exim-Connect-IP: 130.88.13.150 X-SA-Exim-Mail-From: fx@gnu.org X-SA-Exim-Scanned: No (on probity.mcc.ac.uk); SAEximRunCond expanded to false X-Spam-Score: -5.0(?) X-Spam-Flag: NO X-Spam-Score: -1.3 (-) 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: -1.3 (-) Marius Bakke writes: > Hi Dave, > > We already have the netlink bindings under the name 'libnl', but it > probably doesn't install the Python bits. Can you adjust this patch to > improve the existing package? > > We also have libibverbs in 'rdma-core'. I haven't tested the > functionality of it, though. Oops -- thanks! I'm puzzled how I missed libnl, in particular. I don't know whether the Python support is really worth it, but it's in the Fedora rpm, and I'll try to fit it in. I'd expect rdma-core in linux.scm not to be the userspace components, but then I'm also puzzled why I didn't find verbs with --search and it was on Ludo's todo list. I'll look at psm support and libfabrics when I have a chance. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 08 12:02:41 2017 Received: (at control) by debbugs.gnu.org; 8 Sep 2017 16:02:41 +0000 Received: from localhost ([127.0.0.1]:56208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqLjt-0007nb-AA for submit@debbugs.gnu.org; Fri, 08 Sep 2017 12:02:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqLjq-0007nN-TM for control@debbugs.gnu.org; Fri, 08 Sep 2017 12:02:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqLji-00081c-G3 for control@debbugs.gnu.org; Fri, 08 Sep 2017 12:02:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqLji-00081Y-D0 for control@debbugs.gnu.org; Fri, 08 Sep 2017 12:02:30 -0400 Received: from [193.50.110.231] (port=41848 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dqLjh-0006IX-Sb for control@debbugs.gnu.org; Fri, 08 Sep 2017 12:02:30 -0400 Date: Fri, 08 Sep 2017 18:02:28 +0200 Message-Id: <87bmml89gr.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #27912 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: control 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 (-----) tags 27912 fixed close 27912