diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-28 03:11:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-28 03:11:19 +0100 |
commit | 1bc9c3b9d5a8c51b67f6ea2f57bdd76ff5073097 (patch) | |
tree | 8ff3b237086572800bda4afb971fc61617aa941e /dev-util/bpftrace/files | |
parent | 3ca7a521e79841f7247feb67780a70722c997d55 (diff) |
gentoo auto-resync : 28:09:2022 - 03:11:19
Diffstat (limited to 'dev-util/bpftrace/files')
-rw-r--r-- | dev-util/bpftrace/files/bpftrace-0.15.0-llvm-15-pointers.patch | 30 | ||||
-rw-r--r-- | dev-util/bpftrace/files/bpftrace-0.16.0-link.patch | 0 |
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-util/bpftrace/files/bpftrace-0.15.0-llvm-15-pointers.patch b/dev-util/bpftrace/files/bpftrace-0.15.0-llvm-15-pointers.patch new file mode 100644 index 000000000000..51ea034b9a88 --- /dev/null +++ b/dev-util/bpftrace/files/bpftrace-0.15.0-llvm-15-pointers.patch @@ -0,0 +1,30 @@ + +From: https://github.com/iovisor/bpftrace/pull/2367 +Bug: https://bugs.gentoo.org/872842 + +From 07fa48a94ef6d6bb1f335de345de18fe9776ca57 Mon Sep 17 00:00:00 2001 +From: kenneth topp <toppk@bllue.org> +Date: Mon, 26 Sep 2022 00:33:29 -0400 +Subject: [PATCH] Workaround OpaquePointers for LLVM 15 + +This workaround allows bpftrace to be compiled against +LLVM-15. This will have to be address properly before LLVM-16 +More details from LLVM here: https://llvm.org/docs/OpaquePointers.html +--- + src/ast/irbuilderbpf.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/ast/irbuilderbpf.cpp b/src/ast/irbuilderbpf.cpp +index d49883f786..00f0f172ff 100644 +--- a/src/ast/irbuilderbpf.cpp ++++ b/src/ast/irbuilderbpf.cpp +@@ -123,6 +123,9 @@ IRBuilderBPF::IRBuilderBPF(LLVMContext &context, + module_(module), + bpftrace_(bpftrace) + { ++#if LLVM_VERSION_MAJOR == 15 ++ context.setOpaquePointers(false); ++#endif + // Declare external LLVM function + FunctionType *pseudo_func_type = FunctionType::get( + getInt64Ty(), diff --git a/dev-util/bpftrace/files/bpftrace-0.16.0-link.patch b/dev-util/bpftrace/files/bpftrace-0.16.0-link.patch deleted file mode 100644 index e69de29bb2d1..000000000000 --- a/dev-util/bpftrace/files/bpftrace-0.16.0-link.patch +++ /dev/null |