Skip to content

Don't install bpftrace by default #7631

Description

@vashirov

Issue Description
I noticed that now 389-ds-base nightly build from main pulls in additional packages that are not required for runtime:

[fedora@fedora ~]$ sudo dnf update 389-ds-base
Updating and loading repositories:
 Copr repo for 389ds-389-ds-base-main owned by packit                                                  100% |   9.7 KiB/s |  51.9 KiB |  00m05s
Repositories loaded.
Package                                   Arch   Version                                    Repository                                     Size
Upgrading:
 389-ds-base                              x86_64 0:3.3.0.202607062106git5609f0ef9-main.fc44 copr:copr.fedorainfracloud.org:packit:389  11.8 MiB
   replacing 389-ds-base                  x86_64 0:3.2.2-2.fc44                             updates                                    11.9 MiB
 389-ds-base-libs                         x86_64 0:3.3.0.202607062106git5609f0ef9-main.fc44 copr:copr.fedorainfracloud.org:packit:389   4.5 MiB
   replacing 389-ds-base-libs             x86_64 0:3.2.2-2.fc44                             updates                                     4.5 MiB
 389-ds-base-robdb-libs                   x86_64 0:3.3.0.202607062106git5609f0ef9-main.fc44 copr:copr.fedorainfracloud.org:packit:389  64.3 KiB
   replacing 389-ds-base-robdb-libs       x86_64 0:3.2.2-2.fc44                             updates                                    60.2 KiB
 python3-lib389                           noarch 0:3.3.0.202607062106git5609f0ef9-main.fc44 copr:copr.fedorainfracloud.org:packit:389   6.5 MiB
   replacing python3-lib389               noarch 0:3.2.2-2.fc44                             updates                                     6.5 MiB
Installing dependencies:
 bcc                                      x86_64 0:0.35.0-5.fc44                            fedora                                      2.6 MiB
 binutils                                 x86_64 0:2.46-3.fc44                              updates                                    27.2 MiB
 bison                                    x86_64 0:3.8.2-15.fc44                            fedora                                      3.5 MiB
 clang21-libs                             x86_64 0:21.1.8-5.fc44                            updates                                   114.8 MiB
 clang21-resource-filesystem              x86_64 0:21.1.8-5.fc44                            updates                                    14.8 KiB
 cpp                                      x86_64 0:16.0.1-0.10.fc44                         fedora                                     42.1 MiB
 elfutils-libelf-devel                    x86_64 0:0.194-5.fc44                             fedora                                     74.7 KiB
 flex                                     x86_64 0:2.6.4-24.fc44                            fedora                                    805.1 KiB
 gcc                                      x86_64 0:16.0.1-0.10.fc44                         fedora                                    120.6 MiB
 glibc-devel                              x86_64 0:2.43-2.fc44                              fedora                                      2.3 MiB
 kernel-headers                           x86_64 0:7.1.3-200.fc44                           updates                                     6.9 MiB
 libatomic                                x86_64 0:16.0.1-0.10.fc44                         fedora                                     45.5 KiB
 libibverbs                               x86_64 0:61.0-2.fc44                              fedora                                      1.3 MiB
 libmpc                                   x86_64 0:1.4.1-1.fc44                             updates                                   168.7 KiB
 libpcap                                  x86_64 14:1.10.6-2.fc44                           fedora                                    432.9 KiB
 libxcrypt-devel                          x86_64 0:4.5.2-3.fc44                             fedora                                     31.0 KiB
 libzstd-devel                            x86_64 0:1.5.7-5.fc44                             fedora                                    217.6 KiB
 llvm21-filesystem                        x86_64 0:21.1.8-5.fc44                            updates                                     0.0   B
 llvm21-libs                              x86_64 0:21.1.8-5.fc44                            updates                                   138.6 MiB
 m4                                       x86_64 0:1.4.21-1.fc44                            fedora                                    881.1 KiB
 make                                     x86_64 1:4.4.1-12.fc44                            fedora                                      1.8 MiB
 openssl-devel                            x86_64 1:3.5.7-1.fc44                             updates                                     4.5 MiB
 python3-bcc                              noarch 0:0.35.0-5.fc44                            fedora                                    535.5 KiB
 python3-netaddr                          noarch 0:1.3.0-11.fc44                            fedora                                     11.6 MiB
 rdma-core-common                         noarch 0:61.0-2.fc44                              fedora                                     21.9 KiB
Installing weak dependencies:
 bcc-tools                                x86_64 0:0.35.0-5.fc44                            fedora                                      2.0 MiB
 bpftrace                                 x86_64 0:0.24.2-3.fc44                            fedora                                     12.8 MiB
 compiler-rt21                            x86_64 0:21.1.8-5.fc44                            updates                                    38.4 MiB
 kernel-devel                             x86_64 0:7.1.3-200.fc44                           updates                                    87.9 MiB
 libomp21                                 x86_64 0:21.1.8-5.fc44                            updates                                     2.8 MiB
 libomp21-devel                           x86_64 0:21.1.8-5.fc44                            updates                                     1.5 MiB

Transaction Summary:
 Installing:        31 packages
 Upgrading:          4 packages
 Replacing:          4 packages

Total size of inbound packages is 176 MiB. Need to download 176 MiB.
After this operation, 626 MiB extra will be used (install 649 MiB, remove 23 MiB).
Is this ok [y/N]:

bpftrace is needed only for debugging, it doesn't need to be installed on every production system. It also pulls in a compiler which is also prohibited on most production systems.

In the spec file:

%if %{with usdt}
# Optional eBPF tracer for the shipped USDT bpftrace scripts.
Recommends:       bpftrace
%endif

It should be Suggests instead of Recommends, see https://docs.fedoraproject.org/en-US/packaging-guidelines/#_dependency_types
Or can be removed completely, since it doesn't affect the runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThe issue will be triaged during scrum

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions