From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C19D61382C5 for ; Thu, 28 May 2020 20:27:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF1EDE0826; Thu, 28 May 2020 20:27:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BFE43E0826 for ; Thu, 28 May 2020 20:27:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55EE634E7A2 for ; Thu, 28 May 2020 20:26:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E843D230 for ; Thu, 28 May 2020 20:26:56 +0000 (UTC) From: "Patrick McLean" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" Message-ID: <1590697608.0c58230e0fc74178013f49bf1adc9f856e9ea247.chutzpah@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bpftrace/, dev-util/bpftrace/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/bpftrace/bpftrace-0.10.0-r1.ebuild dev-util/bpftrace/bpftrace-0.10.0.ebuild dev-util/bpftrace/files/bpftrace-0.10.0-llvm-multi.patch X-VCS-Directories: dev-util/bpftrace/ dev-util/bpftrace/files/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: 0c58230e0fc74178013f49bf1adc9f856e9ea247 X-VCS-Branch: master Date: Thu, 28 May 2020 20:26:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 981b8fdf-cf54-4542-ac55-910a2e6bee5c X-Archives-Hash: 13e86c8ecef192b1bf9a6ad038efaf9d commit: 0c58230e0fc74178013f49bf1adc9f856e9ea247 Author: Patrick McLean sony com> AuthorDate: Thu May 28 20:26:30 2020 +0000 Commit: Patrick McLean gentoo org> CommitDate: Thu May 28 20:26:48 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c58230e dev-util/bpftrace-0.10.0-r1: Bump, patch llvm-10 segfault (bug #724382) Closes: https://bugs.gentoo.org/724382 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Patrick McLean gentoo.org> ...ace-0.10.0.ebuild => bpftrace-0.10.0-r1.ebuild} | 3 ++ .../files/bpftrace-0.10.0-llvm-multi.patch | 60 ++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/dev-util/bpftrace/bpftrace-0.10.0.ebuild b/dev-util/bpftrace/bpftrace-0.10.0-r1.ebuild similarity index 92% rename from dev-util/bpftrace/bpftrace-0.10.0.ebuild rename to dev-util/bpftrace/bpftrace-0.10.0-r1.ebuild index 3070afa1505..196615ab2a9 100644 --- a/dev-util/bpftrace/bpftrace-0.10.0.ebuild +++ b/dev-util/bpftrace/bpftrace-0.10.0-r1.ebuild @@ -27,6 +27,8 @@ COMMON_DEPEND="dev-util/systemtap sys-devel/clang:= dev-libs/libbpf:= >=sys-devel/llvm-3.7.1:=[llvm_targets_BPF(+)] + =dev-util/bcc-0.12.0:= virtual/libelf" DEPEND="${COMMON_DEPEND} @@ -42,6 +44,7 @@ QA_DT_NEEDED="/usr/lib.*/libbpftraceresources.so" PATCHES=( "${FILESDIR}/bpftrace-0.10.0-install-libs.patch" "${FILESDIR}/bpftrace-0.10.0-dont-compress-man.patch" + "${FILESDIR}/bpftrace-0.10.0-llvm-multi.patch" ) # lots of fixing needed diff --git a/dev-util/bpftrace/files/bpftrace-0.10.0-llvm-multi.patch b/dev-util/bpftrace/files/bpftrace-0.10.0-llvm-multi.patch new file mode 100644 index 00000000000..48eeeb8e200 --- /dev/null +++ b/dev-util/bpftrace/files/bpftrace-0.10.0-llvm-multi.patch @@ -0,0 +1,60 @@ +diff -ru a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2020-05-20 21:00:22.789744736 -0500 ++++ b/CMakeLists.txt 2020-05-20 18:52:38.241091110 -0500 +@@ -30,6 +30,11 @@ + elseif(STATIC_LIBC) + message(WARNING "static libc is known to cause problems, consider STATIC_LIBC=OFF. Proceed at your own risk") #iovisor/bpftrace/issues/266 + endif() ++else() ++ find_package(LLVM 9 REQUIRED CONFIG) ++ ++ message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") ++ message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") + endif() + + if(EMBED_LIBCLANG_ONLY AND NOT EMBED_CLANG) +diff -ru a/src/ast/CMakeLists.txt b/src/ast/CMakeLists.txt +--- a/src/ast/CMakeLists.txt 2020-05-20 21:00:22.777744534 -0500 ++++ b/src/ast/CMakeLists.txt 2020-05-20 20:52:39.657888690 -0500 +@@ -42,26 +41,29 @@ + if(EMBED_LIBCLANG_ONLY) + unlink_transitive_dependency("${CLANG_EXPORTED_TARGETS}" "LLVM") + endif() +- target_link_libraries(bpftraceast ${CLANG_EMBEDDED_CMAKE_TARGETS}) ++ target_link_libraries(bpftraceast ${CLANG_EMBEDDED_CMAKE_TARGETS}) + else() + list(INSERT clang_libs 0 libclang.a) + endif() + + if(EMBED_LLVM) +- target_link_libraries(bpftraceast ${LLVM_EMBEDDED_CMAKE_TARGETS}) ++ target_link_libraries(bpftraceast ${LLVM_EMBEDDED_CMAKE_TARGETS}) + else() + llvm_map_components_to_libnames(llvm_libs bpfcodegen ipo irreader mcjit orcjit ${LLVM_TARGETS_TO_BUILD}) +- target_link_libraries(bpftraceast ${clang_libs}) +- target_link_libraries(bpftraceast ${llvm_libs}) ++ target_link_libraries(bpftraceast ${clang_libs}) ++ target_link_libraries(bpftraceast ${llvm_libs}) + endif() + else() +- find_library(found_LLVM LLVM HINTS ${LLVM_LIBRARY_DIRS}) +- if(found_LLVM) +- target_link_libraries(bpftraceast LLVM) +- else() +- llvm_map_components_to_libnames(_llvm_libs bpfcodegen ipo irreader mcjit orcjit ${LLVM_TARGETS_TO_BUILD}) +- llvm_expand_dependencies(llvm_libs ${_llvm_libs}) +- target_link_libraries(bpftraceast ${llvm_libs}) ++ find_package(LLVM 9 REQUIRED CONFIG) ++ ++ include_directories(${LLVM_INCLUDE_DIRS}) ++ add_definitions(${LLVM_DEFINITIONS}) ++ ++ find_library(found_clang clang HINTS ${LLVM_LIBRARY_DIRS}) ++ if(found_clang) ++ target_link_libraries(bpftraceast ${found_clang}) + endif() +- target_link_libraries(bpftraceast libclang) ++ llvm_map_components_to_libnames(_llvm_libs bpfcodegen ipo irreader mcjit orcjit ${LLVM_TARGETS_TO_BUILD}) ++ llvm_expand_dependencies(llvm_libs ${_llvm_libs}) ++ target_link_libraries(bpftraceast ${llvm_libs}) + endif()