commit:     b09a22354f2e86e5e2605292b9b6d555699f33f7
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Wed Oct 27 01:18:33 2021 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Wed Oct 27 16:54:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b09a2235

dev-util/bpftrace: Fix patch to make sure libaot is installed

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 ...trace-0.14.0-r1.ebuild => bpftrace-0.14.0-r2.ebuild} |  0
 .../bpftrace/files/bpftrace-0.14.0-install-libs.patch   | 17 ++++++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/dev-util/bpftrace/bpftrace-0.14.0-r1.ebuild 
b/dev-util/bpftrace/bpftrace-0.14.0-r2.ebuild
similarity index 100%
rename from dev-util/bpftrace/bpftrace-0.14.0-r1.ebuild
rename to dev-util/bpftrace/bpftrace-0.14.0-r2.ebuild

diff --git a/dev-util/bpftrace/files/bpftrace-0.14.0-install-libs.patch 
b/dev-util/bpftrace/files/bpftrace-0.14.0-install-libs.patch
index dc8e8905260..2e2484a2efe 100644
--- a/dev-util/bpftrace/files/bpftrace-0.14.0-install-libs.patch
+++ b/dev-util/bpftrace/files/bpftrace-0.14.0-install-libs.patch
@@ -70,10 +70,18 @@ index 47a050e2..1bbcf882 100644
  if (LIBBPF_BTF_DUMP_FOUND)
    target_include_directories(runtime PUBLIC ${LIBBPF_INCLUDE_DIRS})
 diff --git a/src/aot/CMakeLists.txt b/src/aot/CMakeLists.txt
-index 291d53f2..308691ee 100644
+index 291d53f2..22944ddc 100644
 --- a/src/aot/CMakeLists.txt
 +++ b/src/aot/CMakeLists.txt
-@@ -10,7 +10,7 @@ if(NOT LIBBCC_BPF_CONTAINS_RUNTIME)
+@@ -2,6 +2,7 @@ add_library(aot aot.cpp)
+ target_include_directories(aot PUBLIC ${CMAKE_SOURCE_DIR}/src)
+ target_include_directories(aot PUBLIC ${CMAKE_BINARY_DIR})
+ target_compile_definitions(aot PRIVATE ${BPFTRACE_FLAGS})
++install(TARGETS aot LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ 
+ # Only build aotrt if supported bcc is used
+ # 
(https://github.com/iovisor/bcc/commit/719191867a25ce07dc96f7faf9b8ccedadc7ec44)
+@@ -10,7 +11,7 @@ if(NOT LIBBCC_BPF_CONTAINS_RUNTIME)
  endif()
  
  add_executable(bpftrace-aotrt aot_main.cpp)
@@ -82,11 +90,6 @@ index 291d53f2..308691ee 100644
  install(TARGETS bpftrace-aotrt DESTINATION ${CMAKE_INSTALL_BINDIR})
  
  # Linking
-@@ -27,3 +27,4 @@ if(BUILD_ASAN)
-   target_compile_options(bpftrace-aotrt PUBLIC "-fsanitize=address")
-   target_link_options(bpftrace-aotrt PUBLIC "-fsanitize=address")
- endif()
-+install(TARGETS aot LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
 diff --git a/src/arch/CMakeLists.txt b/src/arch/CMakeLists.txt
 index 76bb217e..4ad0f626 100644
 --- a/src/arch/CMakeLists.txt

Reply via email to