GNU bug report logs - #45843
[PATCH 0/2] gnu: bcc: Update to 0.18.0.

Previous Next

Package: guix-patches;

Reported by: Greg Hogan <code <at> greghogan.com>

Date: Wed, 13 Jan 2021 15:15:02 UTC

Severity: normal

Tags: patch

Done: Efraim Flashner <efraim <at> flashner.co.il>

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 45843 in the body.
You can then email your comments to 45843 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#45843; Package guix-patches. (Wed, 13 Jan 2021 15:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Greg Hogan <code <at> greghogan.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 13 Jan 2021 15:15:02 GMT) Full text and rfc822 format available.

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

From: Greg Hogan <code <at> greghogan.com>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] gnu: bcc: Update to 0.18.0.
Date: Wed, 13 Jan 2021 10:14:29 -0500
[Message part 1 (text/plain, inline)]
bcc update depends on updated libbpf.
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#45843; Package guix-patches. (Wed, 13 Jan 2021 15:20:02 GMT) Full text and rfc822 format available.

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

From: Greg Hogan <code <at> greghogan.com>
To: 45843 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: libbpf: Update to 0.3.
Date: Wed, 13 Jan 2021 10:19:19 -0500
[Message part 1 (text/plain, inline)]
From dc8b0a99a9aece0a86406df963b3d4b5d887d482 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code <at> greghogan.com>
Date: Tue, 12 Jan 2021 19:56:31 +0000
Subject: [PATCH 1/2] gnu: libbpf: Update to 0.3.

* gnu/packages/linux.scm (libbpf): Update to 0.3.
[arguments]: Remove obsolete deletion.
---
 gnu/packages/linux.scm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index b16b3b7adb..29b6f44ba6 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -49,7 +49,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike <at> rohleder.de>
 ;;; Copyright © 2020 Anders Thuné <asse.97 <at> gmail.com>
 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
-;;; Copyright © 2020 Greg Hogan <code <at> greghogan.com>
+;;; Copyright © 2020, 2021 Greg Hogan <code <at> greghogan.com>
 ;;; Copyright © 2020 Zhu Zihao <all_but_last <at> 163.com>
 ;;; Copyright © 2020 David Dashyan <mail <at> davie.li>
 ;;; Copyright © 2020 pukkamustard <pukkamustard <at> posteo.net>
@@ -7585,7 +7585,7 @@ persistent over reboots.")
 (define-public libbpf
   (package
     (name "libbpf")
-    (version "0.0.9")
+    (version "0.3")
     (source
      (origin
        (method git-fetch)
@@ -7595,7 +7595,7 @@ persistent over reboots.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "18l0gff7nm841mwhr7bc7x863xcyvwh58zl7mc0amnsjqlbrvqg7"))))
+         "1zw04rz2igywwj2rwxw6ffwa5rp3d6iz0xi7nv9lmq5gpzpm25di"))))
     (build-system gnu-build-system)
     (native-inputs
      `(("pkg-config" ,pkg-config)))
@@ -7616,9 +7616,6 @@ persistent over reboots.")
          (delete 'configure)
          (add-before 'build 'pre-build
            (lambda* (#:key inputs #:allow-other-keys)
-             (substitute* "scripts/check-reallocarray.sh"
-               (("/bin/rm" rm)
-                (string-append (assoc-ref inputs "coreutils") rm)))
              (chdir "src")
              #t)))))
     (home-page "https://github.com/libbpf/libbpf")
-- 
2.23.3
[Message part 2 (text/html, inline)]
[0001-gnu-libbpf-Update-to-0.3.patch (application/octet-stream, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#45843; Package guix-patches. (Wed, 13 Jan 2021 15:21:02 GMT) Full text and rfc822 format available.

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

From: Greg Hogan <code <at> greghogan.com>
To: 45843 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: bcc: Update to 0.18.0.
Date: Wed, 13 Jan 2021 10:20:20 -0500
[Message part 1 (text/plain, inline)]
From 347d6085929e4f01b9f6a57fe22aab98e3b50bb9 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code <at> greghogan.com>
Date: Tue, 12 Jan 2021 19:56:57 +0000
Subject: [PATCH 2/2] gnu: bcc: Update to 0.18.0.

* gnu/packages/linux.scm (bcc): Update to 0.18.0.
---
 gnu/packages/linux.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 29b6f44ba6..1a0a0a42af 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -7629,7 +7629,7 @@ headers.")
 (define-public bcc
   (package
     (name "bcc")
-    (version "0.15.0")
+    (version "0.18.0")
     (source
      (origin
        (method git-fetch)
@@ -7639,7 +7639,7 @@ headers.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "1d5j9zanffa1c7lpi5fcrdlx1n7hy86xl82fam2xqr0s41q4ipxw"))))
+         "1cxvawglph4510s8aga6xnq2xnv0rrnpchgj93j1xgzwipwnqr40"))))
     (build-system cmake-build-system)
     (native-inputs
      `(("bison" ,bison)
-- 
2.23.3
[Message part 2 (text/html, inline)]
[0002-gnu-bcc-Update-to-0.18.0.patch (application/octet-stream, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#45843; Package guix-patches. (Wed, 20 Jan 2021 09:07:02 GMT) Full text and rfc822 format available.

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

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Greg Hogan <code <at> greghogan.com>
Cc: 45843 <at> debbugs.gnu.org
Subject: Re: [bug#45843] [PATCH 0/2] gnu: bcc: Update to 0.18.0.
Date: Wed, 20 Jan 2021 11:06:08 +0200
[Message part 1 (text/plain, inline)]
These patches break bpftrace. I checked upstream and didn't see a newer
release than 0.11.4.

In file included from /tmp/guix-build-bpftrace-0.11.4.drv-0/bpftrace-0.11.4-checkout/src/btf.cpp:20:
/gnu/store/w9yqdg4v092cblkkbpwcpvyfpdppvn3r-libbpf-0.3/include/bpf/btf.h:125:14: error: ISO C++ forbids forward references to 'enum' types
                             enum btf_func_linkage linkage, int proto_type_id);
                                  ^
1 error generated.
make[2]: *** [src/CMakeFiles/bpftrace.dir/build.make:105: src/CMakeFiles/bpftrace.dir/btf.cpp.o] Error 1

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#45843; Package guix-patches. (Thu, 28 Jan 2021 17:05:01 GMT) Full text and rfc822 format available.

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

From: Greg Hogan <code <at> greghogan.com>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 45843 <at> debbugs.gnu.org
Subject: Re: [bug#45843] [PATCH 0/2] gnu: bcc: Update to 0.18.0.
Date: Thu, 28 Jan 2021 12:03:57 -0500
[Message part 1 (text/plain, inline)]
Thank you for verifying this. Is there a way to select and locally build a
full (but small) set of package dependents?

bpftrace, bcc, and libbpf only compile for me with libbpf 0.1.1 and bcc
0.16.0. New patches below and attached.


From a785056285c7cf4995ca905acb7317e25d7ec801 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code <at> greghogan.com>
Date: Tue, 12 Jan 2021 19:56:31 +0000
Subject: [PATCH 1/2] gnu: libbpf: Update to 0.1.1.

* gnu/packages/linux.scm (libbpf): Update to 0.1.1.
[arguments]: Remove obsolete deletion.
---
 gnu/packages/linux.scm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 2735c67200..f22008dcbf 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -49,7 +49,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike <at> rohleder.de>
 ;;; Copyright © 2020 Anders Thuné <asse.97 <at> gmail.com>
 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
-;;; Copyright © 2020 Greg Hogan <code <at> greghogan.com>
+;;; Copyright © 2020, 2021 Greg Hogan <code <at> greghogan.com>
 ;;; Copyright © 2020 Zhu Zihao <all_but_last <at> 163.com>
 ;;; Copyright © 2020 David Dashyan <mail <at> davie.li>
 ;;; Copyright © 2020 pukkamustard <pukkamustard <at> posteo.net>
@@ -7587,7 +7587,7 @@ persistent over reboots.")
 (define-public libbpf
   (package
     (name "libbpf")
-    (version "0.0.9")
+    (version "0.1.1")
     (source
      (origin
        (method git-fetch)
@@ -7597,7 +7597,7 @@ persistent over reboots.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "18l0gff7nm841mwhr7bc7x863xcyvwh58zl7mc0amnsjqlbrvqg7"))))
+         "0ilnnm4q22f8fagwp8kb37licy4ks861i2iqh2djsypqhnxvx3fv"))))
     (build-system gnu-build-system)
     (native-inputs
      `(("pkg-config" ,pkg-config)))
@@ -7618,9 +7618,6 @@ persistent over reboots.")
          (delete 'configure)
          (add-before 'build 'pre-build
            (lambda* (#:key inputs #:allow-other-keys)
-             (substitute* "scripts/check-reallocarray.sh"
-               (("/bin/rm" rm)
-                (string-append (assoc-ref inputs "coreutils") rm)))
              (chdir "src")
              #t)))))
     (home-page "https://github.com/libbpf/libbpf")
-- 
2.30.0



From 480ebd33111e1a85e3855974ebbd87ecbd6c6f25 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code <at> greghogan.com>
Date: Tue, 12 Jan 2021 19:56:57 +0000
Subject: [PATCH 2/2] gnu: bcc: Update to 0.16.0.

* gnu/packages/linux.scm (bcc): Update to 0.16.0.
---
 gnu/packages/linux.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index f22008dcbf..6066a7a4c8 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -7631,7 +7631,7 @@ headers.")
 (define-public bcc
   (package
     (name "bcc")
-    (version "0.15.0")
+    (version "0.16.0")
     (source
      (origin
        (method git-fetch)
@@ -7641,7 +7641,7 @@ headers.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "1d5j9zanffa1c7lpi5fcrdlx1n7hy86xl82fam2xqr0s41q4ipxw"))))
+         "1367c0bzrpclvjvmk0sxgi49rh7j2f9izqk5a7g3yvawh1fmvvjh"))))
     (build-system cmake-build-system)
     (native-inputs
      `(("bison" ,bison)
-- 
2.30.0

On Wed, Jan 20, 2021 at 4:06 AM Efraim Flashner <efraim <at> flashner.co.il>
wrote:

> These patches break bpftrace. I checked upstream and didn't see a newer
> release than 0.11.4.
>
> In file included from
> /tmp/guix-build-bpftrace-0.11.4.drv-0/bpftrace-0.11.4-checkout/src/btf.cpp:20:
> /gnu/store/w9yqdg4v092cblkkbpwcpvyfpdppvn3r-libbpf-0.3/include/bpf/btf.h:125:14:
> error: ISO C++ forbids forward references to 'enum' types
>                              enum btf_func_linkage linkage, int
> proto_type_id);
>                                   ^
> 1 error generated.
> make[2]: *** [src/CMakeFiles/bpftrace.dir/build.make:105:
> src/CMakeFiles/bpftrace.dir/btf.cpp.o] Error 1
>
> --
> Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted
>
[Message part 2 (text/html, inline)]
[0001-gnu-libbpf-Update-to-0.1.1.patch (application/octet-stream, attachment)]

Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Thu, 28 Jan 2021 18:29:02 GMT) Full text and rfc822 format available.

Notification sent to Greg Hogan <code <at> greghogan.com>:
bug acknowledged by developer. (Thu, 28 Jan 2021 18:29:02 GMT) Full text and rfc822 format available.

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

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Greg Hogan <code <at> greghogan.com>
Cc: 45843-done <at> debbugs.gnu.org
Subject: Re: [bug#45843] [PATCH 0/2] gnu: bcc: Update to 0.18.0.
Date: Thu, 28 Jan 2021 20:28:08 +0200
[Message part 1 (text/plain, inline)]
On Thu, Jan 28, 2021 at 12:03:57PM -0500, Greg Hogan wrote:
> Thank you for verifying this. Is there a way to select and locally build a
> full (but small) set of package dependents?

I have a script I use that uses fold-packages to find the packages which
directly have a specific package as an input. I'm trying to get it to
work with inputs, but for now I manually edit it to add the package and
run it guile. I've attached it.

> bpftrace, bcc, and libbpf only compile for me with libbpf 0.1.1 and bcc
> 0.16.0. New patches below and attached.

Thanks, it all looks good now. Patches pushed.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[direct-dependants.scm (text/plain, attachment)]
[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. (Fri, 26 Feb 2021 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 60 days ago.

Previous Next


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