From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
James Clark <james.clark@linaro.org>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Clark Williams <williams@redhat.com>,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@kernel.org>
Subject: [PATCHES v1 0/7] perf build: Add target to install devel packages needed to build perf
Date: Sun, 9 Aug 2026 21:51:20 -0300 [thread overview]
Message-ID: <20260810005127.289896-1-acme@kernel.org> (raw)
Hi,
This series adds a 'make -C tools/perf install-build-deps' target that
installs the development packages needed to build perf on Fedora, Ubuntu,
Debian, and RHEL family distributions.
Building perf requires many devel packages (libelf, libdw, libunwind, numactl,
libtraceevent, libbpf, etc.). Today users must iteratively install packages
as each feature check fails. The new target installs the full set in one go.
The first patch adds the framework (make target, distro detection, package
manager drivers). The next four patches add distro-specific package mappings
derived from the headers each feature test requires. The last patch removes
leftover feature test entries for cxx and clang support removed in
56b11a2126bf2f42 ("perf bpf: Remove support for embedding clang for compiling
BPF events (-e foo.c)").
Supported distros (validated in containers, host never modified):
- Fedora 44 (dnf, 29 packages)
- Ubuntu 26.04 (apt, 29 packages)
- Debian 13 (apt, reuses Ubuntu mapping)
- CentOS 10 (dnf, 29 packages)
On all distros, a clean O= build after running the target enabled every
feature the distro provides (excluding deliberately unmapped deprecated
packages). Re-running the target is a no-op.
This series was developed with assistance from Opencode
(deepseek-v4-flash-free and glm-4-7-flash-ollama-local) for code
analysis, patch generation, and commit message composition.
Regards,
- Arnaldo
Arnaldo Carvalho de Melo (7):
tools build: Only probe the compiler at parse time when it is installed
perf build: Add install-build-deps framework to install devel packages
perf build: install-build-deps: add Fedora devel package mapping
perf build: install-build-deps: add Ubuntu devel package mapping
perf build: install-build-deps: add Debian devel package mapping
perf build: Remove leftover feature tests for removed cxx and clang support
perf build: install-build-deps: add RHEL family devel package mapping
tools/build/Makefile.feature | 2 -
tools/build/feature/Makefile | 14 -
tools/perf/Makefile.perf | 21 +-
tools/perf/scripts/install-build-deps.sh | 560 +++++++++++++++++++++++
tools/scripts/Makefile.arch | 2 +-
tools/scripts/Makefile.include | 2 +-
6 files changed, 580 insertions(+), 21 deletions(-)
create mode 100755 tools/perf/scripts/install-build-deps.sh
next reply other threads:[~2026-08-10 0:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 0:51 Arnaldo Carvalho de Melo [this message]
2026-08-10 0:51 ` [PATCH 1/7] tools build: Only probe the compiler at parse time when it is installed Arnaldo Carvalho de Melo
2026-08-10 0:51 ` [PATCH 2/7] perf build: Add install-build-deps framework to install devel packages Arnaldo Carvalho de Melo
2026-08-10 0:51 ` [PATCH 3/7] perf build: install-build-deps: add Fedora devel package mapping Arnaldo Carvalho de Melo
2026-08-10 0:51 ` [PATCH 4/7] perf build: install-build-deps: add Ubuntu " Arnaldo Carvalho de Melo
2026-08-10 0:51 ` [PATCH 5/7] perf build: install-build-deps: add Debian " Arnaldo Carvalho de Melo
2026-08-10 0:51 ` [PATCH 6/7] perf build: Remove leftover feature tests for removed cxx and clang support Arnaldo Carvalho de Melo
2026-08-10 6:03 ` Ian Rogers
2026-08-10 0:51 ` [PATCH 7/7] perf build: install-build-deps: add RHEL family devel package mapping Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260810005127.289896-1-acme@kernel.org \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@kernel.org \
--cc=tglx@linutronix.de \
--cc=williams@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox