[Bug 2281565] Review Request: bpftop - Dynamic real-time view of running eBPF programs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2281565



--- Comment #11 from Jose Fernandez <me@xxxxxxxxxxxxxxx> ---
> There are some BuildRequires and Requires that don't look like they are
> actually necessary:
> 
> """
> BuildRequires:  elfutils-libelf-devel
> BuildRequires:  zlib-devel
> BuildRequires:  clang
> 
> Requires:       elfutils-libelf
> Requires:       zlib
> """
> 
> Is there a specific reason why you added these?

I'm under the impression that libelf and zlib are required at link time to
build bpftop because it pulls in libbpf-rs, which compiles libbpf. They are
also needed for bpftop to run since it loads a bpf program. From the libbpf
docs:
"libelf and zlib are internal dependencies of libbpf and thus are required to
link against and must be installed on the system for applications to work." 
https://docs.kernel.org/bpf/libbpf/libbpf_build.html

> 
> At least the Requires for elfutils-libelf and zlib are unnecessary. Both
> libraries are dynamically linked, and dependencies on them are generated by
> RPM automatically.

How does RPM detect that they are dependencies?

> 
> The BuildRequires on elfutils-libelf-devel, zlib-devel and clang might be
> leftovers from building with vendored sources? 
> 

Clang is needed for libbpf-rs to compile the bpf program embedded in bpftop.
libbpf-cargo handles the bpf compilation when you run `cargo build`, but it
relies on clang.

> The Packages for Rust crates
> should already pull in zlib-devel etc. (and clang for bindgen) as needed.

My assumption is that it would be better to be explicit about the dependencies
needed and not to rely on transitive deps from the crates. I assumed that it
doesn't hurt. But happy to follow what you think is idea.

> Other than that, the package looks good to me!

Thanks! I will wait to hear back and adjust accordingly.

> 
> PS: The spec file you added here:
> https://github.com/Netflix/bpftop/commit/a737971 is only compatible with
> recent versions of Fedora and RHEL 9 + EPEL, but will not work for building
> a package on any other RPM-based linux distribution. So I'm not sure how
> much benefit there is in keeping it in the upstream github repo.

I can remove it. I wanted to put it there while I iterated on the spec.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2281565

Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202281565%23c11

-- 
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux