From unknown Thu Aug 14 21:46:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60401 <60401@debbugs.gnu.org> To: bug#60401 <60401@debbugs.gnu.org> Subject: Status: [PATCH] gnu: bpftool: New package Reply-To: bug#60401 <60401@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:46:05 +0000 retitle 60401 [PATCH] gnu: bpftool: New package reassign 60401 guix-patches submitter 60401 Ryan Sundberg severity 60401 normal tag 60401 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 29 05:54:35 2022 Received: (at submit) by debbugs.gnu.org; 29 Dec 2022 10:54:35 +0000 Received: from localhost ([127.0.0.1]:59374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAqYV-0007il-9N for submit@debbugs.gnu.org; Thu, 29 Dec 2022 05:54:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:37736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAqYS-0007ib-Ss for submit@debbugs.gnu.org; Thu, 29 Dec 2022 05:54:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAqYS-0004X0-Kg for guix-patches@gnu.org; Thu, 29 Dec 2022 05:54:32 -0500 Received: from mail.arctype.co ([138.68.9.245]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pAqYQ-0004mq-Fe for guix-patches@gnu.org; Thu, 29 Dec 2022 05:54:32 -0500 Received: from authenticated-user (mail.arctype.co [138.68.9.245]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mail.arctype.co (Postfix) with ESMTPSA id 17F2313B18E; Thu, 29 Dec 2022 10:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=arctype.co; s=mail; t=1672311235; bh=2I/HHlWBhE48lG3jOrtPYPUXX34p50EuorrnxJRf8Pk=; h=From:To:Cc:Subject:Date:From; b=OvOlNDvGzdAeozhB1Z+p3U72hEQnpsigcc0REU1XWxneI1Iq6phTIqt+ZffX7Xw6l E15x6Gw16v2vAGRsnM4YsyOQ5uXLrwj7PjhPAVmBkGR9IgS5ObxDwdZdtZpPpHZ+FU wHXQXbV/NaEy8OjeSAFmBuGr0wrRrBYxNH9JRJPaBXhuOvhFHRwtkgbU0MkWhkg6xh ImCSsBm7fP6HPavgz0h6XnXfupPmOzXARbQC32XtQMveYudEOatQJstFTMT+Rx2dhR SLH42bs3kCcmiadDnMemutvWwTkXNr96wOOo5OOZu+MGwawPuIygS/j6y3L4uBNDtr s2efiODhx3ZTA== From: Ryan Sundberg To: guix-patches@gnu.org Subject: [PATCH] gnu: bpftool: New package Date: Thu, 29 Dec 2022 02:53:51 -0800 Message-Id: <20221229105351.2318-1-ryan@arctype.co> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=138.68.9.245; envelope-from=ryan@arctype.co; helo=mail.arctype.co X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Ryan Sundberg 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: -2.4 (--) Provides a package for `bpftool` from the Linux kernel source. * gnu/packages/linux.scm (bpftool): New variable --- gnu/packages/linux.scm | 53 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 568c2b6b92..2f625267dc 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -61,6 +61,7 @@ ;;; Copyright © 2021 Olivier Dion ;;; Copyright © 2021 Solene Rapenne ;;; Copyright © 2021, 2022 Petr Hodina +;;; Copyright © 2021 Ryan Sundberg ;;; Copyright © 2022 Artyom V. Poptsov ;;; Copyright © 2022 Rene Saavedra ;;; Copyright © 2022 muradm @@ -9361,6 +9362,58 @@ (define-public bcc and above.") (license license:asl2.0))) +(define-public bpftool + (package + (name "bpftool") + (version (package-version linux-libre)) + (source (package-source linux-libre)) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; This package has no tests. + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (let* ((binutils* (assoc-ref inputs "binutils")) + (ldflags (string-append "-I" (string-append binutils* "/include")))) + (invoke "make" + "-C" + "tools/bpf/bpftool" + ,(string-append "CC=" (cc-for-target)) + ; We need to explicitly set the RUNPATH for these libraries + (string-append "LDFLAGS=-Wl" + ",-rpath=" (assoc-ref inputs "elfutils") "/lib" + ",-rpath=" (assoc-ref inputs "libcap") "/lib" + ",-rpath=" (assoc-ref inputs "zlib") "/lib")) + #t))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (mkdir-p (string-append out "/sbin")) + (mkdir-p (string-append out "/share/bash-completion/completions")) + (invoke "make" + (string-append "prefix=" out) + (string-append "bash_compdir=" out + "/share/bash-completion/completions") + "-C" "tools/bpf/bpftool" + "install") + #t)))))) + (inputs + `(("elfutils", elfutils) ; Provides libelf + ("readline" ,readline) + ("libcap" ,libcap) + ("zlib" ,zlib))) + (native-inputs + `(("bison" ,bison) + ("python" ,python-3))) + ; This tool does not have a proper web page. + (home-page "https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/tree/tools/bpf/bpftool") + (synopsis "Tool for inspection and simple manipulation of eBPF programs and maps") + (description "bpftool allows for inspection and simple modification of BPF +objects on the system.") + (license (package-license linux-libre)))) + (define-public bpftrace (package (name "bpftrace") -- 2.37.2 From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 07 11:36:55 2023 Received: (at 60401-done) by debbugs.gnu.org; 7 Apr 2023 15:36:55 +0000 Received: from localhost ([127.0.0.1]:57096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pko91-0002TM-B3 for submit@debbugs.gnu.org; Fri, 07 Apr 2023 11:36:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pko8z-0002T9-Id for 60401-done@debbugs.gnu.org; Fri, 07 Apr 2023 11:36:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pko8t-0005P5-Je; Fri, 07 Apr 2023 11:36:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=XEtuXiReN1CbWW2AJeg+rghFQnmDbBsbuwXE1unSUAU=; b=NOyJuW7T29YMy/AU4+0B aaKxVOrJFxR+YZOsPmjildbBdihRcGCHsfWi4SpI5R7vo5fT01qFYBPQLrL77/Shx8boZ9XDYdJi3 xg44TnlyPv6NVuk94eCnEENqjNLQ6Tqtx8XsldiwJhcTAaU/EbGhcmsMcBtWdtzuoGAwrWgS3FAjc VDnG8mSUCSoyftcx7cHh9W3smmDt8ndGanl/todqqondXPlSiTxKyNGTrel1uXSFMiIKnvYpg3AqQ rdbVcdB1oirWO/N6GzASgagaNlNNW9tOLdw2oH4hFqS9dpSk6MVtLc3eETcl07sYnCecr658/UU4M pTML4qxHpwyh6w==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pko8t-0005xF-7Z; Fri, 07 Apr 2023 11:36:47 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ryan Sundberg Subject: Re: bug#60401: [PATCH] gnu: bpftool: New package References: <20221229105351.2318-1-ryan@arctype.co> Date: Fri, 07 Apr 2023 17:36:44 +0200 In-Reply-To: <20221229105351.2318-1-ryan@arctype.co> (Ryan Sundberg's message of "Thu, 29 Dec 2022 02:53:51 -0800") Message-ID: <874jprd7qr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60401-done Cc: 60401-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: -3.3 (---) Hi Ryan, Ryan Sundberg skribis: > Provides a package for `bpftool` from the Linux kernel source. > > * gnu/packages/linux.scm (bpftool): New variable Sorry for the long delay! I simplified it quite a bit and applied it. Thanks! Ludo=E2=80=99. From unknown Thu Aug 14 21:46:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 06 May 2023 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator