1 |
commit: 59d23246a7a88801ea4af77787697b452b8da23f |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Oct 29 09:19:21 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 29 17:40:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59d23246 |
7 |
|
8 |
dev-util/bcc: remove unused patch |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/13483 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
13 |
|
14 |
dev-util/bcc/files/bcc-0.10.0-system-libbpf.patch | 182 ---------------------- |
15 |
1 file changed, 182 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/bcc/files/bcc-0.10.0-system-libbpf.patch b/dev-util/bcc/files/bcc-0.10.0-system-libbpf.patch |
18 |
deleted file mode 100644 |
19 |
index fabb3f3f2e6..00000000000 |
20 |
--- a/dev-util/bcc/files/bcc-0.10.0-system-libbpf.patch |
21 |
+++ /dev/null |
22 |
@@ -1,182 +0,0 @@ |
23 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
24 |
-index 94aac856..bd454226 100644 |
25 |
---- a/CMakeLists.txt |
26 |
-+++ b/CMakeLists.txt |
27 |
-@@ -9,12 +9,6 @@ endif() |
28 |
- |
29 |
- enable_testing() |
30 |
- |
31 |
--# populate submodules (libbpf) |
32 |
--if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/cc/libbpf/src) |
33 |
-- execute_process(COMMAND git submodule update --init --recursive |
34 |
-- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |
35 |
--endif() |
36 |
-- |
37 |
- include(cmake/GetGitRevisionDescription.cmake) |
38 |
- include(cmake/version.cmake) |
39 |
- include(CMakeDependentOption) |
40 |
-@@ -61,6 +55,9 @@ FOREACH(DIR ${LLVM_INCLUDE_DIRS}) |
41 |
- include_directories("${DIR}/../tools/clang/include") |
42 |
- ENDFOREACH() |
43 |
- |
44 |
-+find_package(PkgConfig) |
45 |
-+pkg_check_modules(LIBBPF REQUIRED libbpf) |
46 |
-+ |
47 |
- # Set to a string path if system places kernel lib directory in |
48 |
- # non-default location. |
49 |
- if(NOT DEFINED BCC_KERNEL_MODULES_DIR) |
50 |
-diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt |
51 |
-index 906c9aaf..210f0f75 100644 |
52 |
---- a/examples/cpp/CMakeLists.txt |
53 |
-+++ b/examples/cpp/CMakeLists.txt |
54 |
-@@ -3,7 +3,7 @@ |
55 |
- |
56 |
- include_directories(${CMAKE_SOURCE_DIR}/src/cc) |
57 |
- include_directories(${CMAKE_SOURCE_DIR}/src/cc/api) |
58 |
--include_directories(${CMAKE_SOURCE_DIR}/src/cc/libbpf/include/uapi) |
59 |
-+include_directories(${LIBBPF_INCLUDE_DIRS}) |
60 |
- |
61 |
- option(INSTALL_CPP_EXAMPLES "Install C++ examples. Those binaries are statically linked and can take plenty of disk space" OFF) |
62 |
- |
63 |
-diff --git a/examples/cpp/pyperf/CMakeLists.txt b/examples/cpp/pyperf/CMakeLists.txt |
64 |
-index 6f963c66..e8dd66f6 100644 |
65 |
---- a/examples/cpp/pyperf/CMakeLists.txt |
66 |
-+++ b/examples/cpp/pyperf/CMakeLists.txt |
67 |
-@@ -3,7 +3,7 @@ |
68 |
- |
69 |
- include_directories(${CMAKE_SOURCE_DIR}/src/cc) |
70 |
- include_directories(${CMAKE_SOURCE_DIR}/src/cc/api) |
71 |
--include_directories(${CMAKE_SOURCE_DIR}/src/cc/libbpf/include/uapi) |
72 |
-+include_directories(${LIBBPF_INCLUDE_DIRS}) |
73 |
- |
74 |
- add_executable(PyPerf PyPerf.cc PyPerfUtil.cc PyPerfBPFProgram.cc PyPerfLoggingHelper.cc PyPerfDefaultPrinter.cc Py36Offsets.cc) |
75 |
- target_link_libraries(PyPerf bcc-static) |
76 |
-diff --git a/introspection/CMakeLists.txt b/introspection/CMakeLists.txt |
77 |
-index 88df6e84..de8a6464 100644 |
78 |
---- a/introspection/CMakeLists.txt |
79 |
-+++ b/introspection/CMakeLists.txt |
80 |
-@@ -3,11 +3,11 @@ |
81 |
- |
82 |
- include_directories(${CMAKE_SOURCE_DIR}/src/cc) |
83 |
- include_directories(${CMAKE_SOURCE_DIR}/src/cc/api) |
84 |
--include_directories(${CMAKE_SOURCE_DIR}/src/cc/libbpf/include/uapi) |
85 |
-+include_directories(${LIBBPF_INCLUDE_DIRS}) |
86 |
- |
87 |
- option(INSTALL_INTROSPECTION "Install BPF introspection tools" ON) |
88 |
- |
89 |
- add_executable(bps bps.c) |
90 |
--target_link_libraries(bps bpf-static) |
91 |
-+target_link_libraries(bps ${LIBBPF_LIBRARIES}) |
92 |
- |
93 |
- install (TARGETS bps DESTINATION share/bcc/introspection) |
94 |
-diff --git a/src/cc/CMakeLists.txt b/src/cc/CMakeLists.txt |
95 |
-index bd34fd48..dfbeb596 100644 |
96 |
---- a/src/cc/CMakeLists.txt |
97 |
-+++ b/src/cc/CMakeLists.txt |
98 |
-@@ -10,8 +10,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/frontends/clang) |
99 |
- include_directories(${LLVM_INCLUDE_DIRS}) |
100 |
- include_directories(${LIBELF_INCLUDE_DIRS}) |
101 |
- # todo: if check for kernel version |
102 |
--include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libbpf/include) |
103 |
--include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libbpf/include/uapi) |
104 |
-+include_directories(${LIBBPF_INCLUDE_DIRS}) |
105 |
- add_definitions(${LLVM_DEFINITIONS}) |
106 |
- configure_file(libbcc.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libbcc.pc @ONLY) |
107 |
- |
108 |
-@@ -28,13 +27,6 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLLVM_MAJOR_VERSION=${CMAKE_MATCH_1}") |
109 |
- |
110 |
- include(static_libstdc++) |
111 |
- |
112 |
--file(GLOB libbpf_sources "libbpf/src/*.c") |
113 |
--add_library(bpf-static STATIC libbpf.c perf_reader.c ${libbpf_sources}) |
114 |
--set_target_properties(bpf-static PROPERTIES OUTPUT_NAME bcc_bpf) |
115 |
--add_library(bpf-shared SHARED libbpf.c perf_reader.c ${libbpf_sources}) |
116 |
--set_target_properties(bpf-shared PROPERTIES VERSION ${REVISION_LAST} SOVERSION 0) |
117 |
--set_target_properties(bpf-shared PROPERTIES OUTPUT_NAME bcc_bpf) |
118 |
-- |
119 |
- set(bcc_common_sources bcc_common.cc bpf_module.cc bcc_btf.cc exported_files.cc) |
120 |
- if (${LLVM_PACKAGE_VERSION} VERSION_EQUAL 6 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 6) |
121 |
- set(bcc_common_sources ${bcc_common_sources} bcc_debug.cc) |
122 |
-@@ -79,12 +71,12 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${llvm_lib_exclude_f |
123 |
- |
124 |
- # bcc_common_libs_for_a for archive libraries |
125 |
- # bcc_common_libs_for_s for shared libraries |
126 |
--set(bcc_common_libs_for_a b_frontend clang_frontend bpf-static |
127 |
-+set(bcc_common_libs_for_a b_frontend clang_frontend |
128 |
- -Wl,--whole-archive ${clang_libs} ${llvm_libs} -Wl,--no-whole-archive |
129 |
-- ${LIBELF_LIBRARIES}) |
130 |
-+ ${LIBELF_LIBRARIES} ${LIBBPF_LIBRARIES}) |
131 |
- set(bcc_common_libs_for_s ${bcc_common_libs_for_a}) |
132 |
--set(bcc_common_libs_for_lua b_frontend clang_frontend bpf-static |
133 |
-- ${clang_libs} ${llvm_libs} ${LIBELF_LIBRARIES}) |
134 |
-+set(bcc_common_libs_for_lua b_frontend clang_frontend |
135 |
-+ ${clang_libs} ${llvm_libs} ${LIBELF_LIBRARIES} ${LIBBPF_LIBRARIES}) |
136 |
- |
137 |
- if(ENABLE_CPP_API) |
138 |
- add_subdirectory(api) |
139 |
-@@ -111,8 +103,7 @@ set(bcc-lua-static ${bcc-lua-static} ${bcc_common_libs_for_lua}) |
140 |
- install(TARGETS bcc-shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
141 |
- install(FILES ${bcc_table_headers} DESTINATION include/bcc) |
142 |
- install(FILES ${bcc_api_headers} DESTINATION include/bcc) |
143 |
--install(DIRECTORY libbpf/include/uapi/linux/ DESTINATION include/bcc/compat/linux FILES_MATCHING PATTERN "*.h") |
144 |
-+#install(DIRECTORY libbpf/include/uapi/linux/ DESTINATION include/bcc/compat/linux FILES_MATCHING PATTERN "*.h") |
145 |
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libbcc.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) |
146 |
- endif(ENABLE_CLANG_JIT) |
147 |
- install(FILES ${bcc_common_headers} DESTINATION include/bcc) |
148 |
--install(TARGETS bpf-shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
149 |
-diff --git a/src/cc/bcc_btf.cc b/src/cc/bcc_btf.cc |
150 |
-index 12816757..29e4c707 100644 |
151 |
---- a/src/cc/bcc_btf.cc |
152 |
-+++ b/src/cc/bcc_btf.cc |
153 |
-@@ -19,8 +19,8 @@ |
154 |
- #include <string.h> |
155 |
- #include "linux/btf.h" |
156 |
- #include "libbpf.h" |
157 |
--#include "libbpf/src/libbpf.h" |
158 |
--#include "libbpf/src/btf.h" |
159 |
-+#include <bpf/libbpf.h> |
160 |
-+#include <bpf/btf.h> |
161 |
- #include <vector> |
162 |
- |
163 |
- #define BCC_MAX_ERRNO 4095 |
164 |
-diff --git a/src/cc/bpf_module.cc b/src/cc/bpf_module.cc |
165 |
-index 836c458f..eb03ce59 100644 |
166 |
---- a/src/cc/bpf_module.cc |
167 |
-+++ b/src/cc/bpf_module.cc |
168 |
-@@ -43,7 +43,7 @@ |
169 |
- #include "exported_files.h" |
170 |
- #include "libbpf.h" |
171 |
- #include "bcc_btf.h" |
172 |
--#include "libbpf/src/bpf.h" |
173 |
-+#include <bpf/bpf.h> |
174 |
- |
175 |
- namespace ebpf { |
176 |
- |
177 |
-diff --git a/src/cc/libbpf.c b/src/cc/libbpf.c |
178 |
-index 63f4894e..83147dbe 100644 |
179 |
---- a/src/cc/libbpf.c |
180 |
-+++ b/src/cc/libbpf.c |
181 |
-@@ -52,8 +52,8 @@ |
182 |
- // TODO: Remove this when CentOS 6 support is not needed anymore |
183 |
- #include "setns.h" |
184 |
- |
185 |
--#include "libbpf/src/bpf.h" |
186 |
--#include "libbpf/src/libbpf.h" |
187 |
-+#include <bpf/bpf.h> |
188 |
-+#include <bpf/libbpf.h> |
189 |
- |
190 |
- // TODO: remove these defines when linux-libc-dev exports them properly |
191 |
- |
192 |
-diff --git a/tests/cc/CMakeLists.txt b/tests/cc/CMakeLists.txt |
193 |
-index a47abe14..ae710eb4 100644 |
194 |
---- a/tests/cc/CMakeLists.txt |
195 |
-+++ b/tests/cc/CMakeLists.txt |
196 |
-@@ -3,7 +3,7 @@ |
197 |
- |
198 |
- include_directories(${CMAKE_SOURCE_DIR}/src/cc) |
199 |
- include_directories(${CMAKE_SOURCE_DIR}/src/cc/api) |
200 |
--include_directories(${CMAKE_SOURCE_DIR}/src/cc/libbpf/include/uapi) |
201 |
-+include_directories(${LIBBPF_INCLUDE_DIRS}) |
202 |
- |
203 |
- add_executable(test_static test_static.c) |
204 |
- target_link_libraries(test_static bcc-static) |