diff --git a/0001-Fix-compile-with-GCC-13.patch b/0001-Fix-compile-with-GCC-13.patch new file mode 100644 index 0000000..09d7330 --- /dev/null +++ b/0001-Fix-compile-with-GCC-13.patch @@ -0,0 +1,59 @@ +From c8926fa6c163e3e42cef2f0bfba7cbaa3f504a42 Mon Sep 17 00:00:00 2001 +From: Yaakov Selkowitz +Date: Mon, 23 Jan 2023 20:42:47 -0500 +Subject: [PATCH] Fix compile with GCC 13 + +Signed-off-by: Yaakov Selkowitz +--- + src/ast/int_parser.h | 1 + + src/pcap_writer.h | 1 + + src/usdt.h | 1 + + src/utils.h | 1 + + 4 files changed, 4 insertions(+) + +diff --git a/src/ast/int_parser.h b/src/ast/int_parser.h +index 3dc2f7c2..d12481f9 100644 +--- a/src/ast/int_parser.h ++++ b/src/ast/int_parser.h +@@ -1,3 +1,4 @@ ++#include + #include + + namespace bpftrace { +diff --git a/src/pcap_writer.h b/src/pcap_writer.h +index 870a6617..5f01c666 100644 +--- a/src/pcap_writer.h ++++ b/src/pcap_writer.h +@@ -1,5 +1,6 @@ + #pragma once + ++#include + #include + + struct pcap; +diff --git a/src/usdt.h b/src/usdt.h +index c30fef2d..9e2d7bc4 100644 +--- a/src/usdt.h ++++ b/src/usdt.h +@@ -1,5 +1,6 @@ + #pragma once + ++#include + #include + #include + #include +diff --git a/src/utils.h b/src/utils.h +index 8cc0bfd4..7c10ebdd 100644 +--- a/src/utils.h ++++ b/src/utils.h +@@ -1,6 +1,7 @@ + #pragma once + + #include ++#include + #include + #include + #include +-- +2.39.1 + diff --git a/bpftrace.spec b/bpftrace.spec index 0cd90be..78b6132 100644 --- a/bpftrace.spec +++ b/bpftrace.spec @@ -7,6 +7,8 @@ License: ASL 2.0 URL: https://github.com/iovisor/bpftrace Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Patch1: 0001-Workaround-OpaquePointers-for-LLVM-15.patch +# https://github.com/iovisor/bpftrace/pull/2484 +Patch2: 0001-Fix-compile-with-GCC-13.patch # Arches will be included as upstream support is added and dependencies are # satisfied in the respective arches