bpftrace-0.17.0 already has LLVM_MAX_SLOT=16 but the build itself fails due to a leftover llvm version check fo <=15 and a missing header fix for C++-17. Reproducible: Always Steps to Reproduce: 1. emerge llvm/clang:16 2. build bpftrace 3. cmake error wrt. LLVM version, later buld error wrt. std::Optional
Fixes provided by the PR.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25470c4c3bcdad4ae67fbe3a65b21682fe0fe670 commit 25470c4c3bcdad4ae67fbe3a65b21682fe0fe670 Author: Holger Hoffstätte <holger@applied-asynchrony.com> AuthorDate: 2023-03-19 12:40:51 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2023-03-19 17:34:31 +0000 dev-util/bpftrace: fixes for llvm-16 Closes: https://bugs.gentoo.org/902135 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Closes: https://github.com/gentoo/gentoo/pull/30234 Signed-off-by: Michał Górny <mgorny@gentoo.org> ...-0.17.0-r2.ebuild => bpftrace-0.17.0-r3.ebuild} | 2 + .../bpftrace/files/bpftrace-0.17.0-llvm-16.patch | 26 +++++++++++++ .../files/bpftrace-0.17.0-use-std-optional.patch | 44 ++++++++++++++++++++++ 3 files changed, 72 insertions(+)