diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
commit | e9d044d4b9b71200a96adfa280848858c0f468c9 (patch) | |
tree | 1bd8ef816043a8cd340f1d774e79553a1a7d31d8 /dev-util/bpftrace | |
parent | fc2f1018fc323ef2c6572734a9b130427cba76a6 (diff) |
gentoo resync : 13.11.2021
Diffstat (limited to 'dev-util/bpftrace')
-rw-r--r-- | dev-util/bpftrace/Manifest | 11 | ||||
-rw-r--r-- | dev-util/bpftrace/bpftrace-0.13.0-r1.ebuild | 2 | ||||
-rw-r--r-- | dev-util/bpftrace/bpftrace-0.14.0-r2.ebuild | 2 | ||||
-rw-r--r-- | dev-util/bpftrace/bpftrace-0.14.0-r3.ebuild (renamed from dev-util/bpftrace/bpftrace-0.12.1-r1.ebuild) | 64 | ||||
-rw-r--r-- | dev-util/bpftrace/files/bpftrace-0.12.0-install-libs.patch | 161 | ||||
-rw-r--r-- | dev-util/bpftrace/files/bpftrace-0.14.0-fuzzing.patch | 18 | ||||
-rw-r--r-- | dev-util/bpftrace/metadata.xml | 4 |
7 files changed, 61 insertions, 201 deletions
diff --git a/dev-util/bpftrace/Manifest b/dev-util/bpftrace/Manifest index ad64f8750641..e44fb6539631 100644 --- a/dev-util/bpftrace/Manifest +++ b/dev-util/bpftrace/Manifest @@ -1,14 +1,13 @@ AUX bpftrace-0.10.0-dont-compress-man.patch 722 BLAKE2B 583969e9f4457a49f17f33d984ab2585ec2e6f6976846af4d39084ce41bf334892b0971d1a1571e9495d4a05eea680412899d1fb23a8eb25a9b9cab84c3b101b SHA512 1f588dd589933c2fbb0ca79a5782c542cb137e748a442b9904153f76d142ae117755e1c24acfc50947e6040afbad78f31ef0c181082695f63ebb61b3acbe4b6a AUX bpftrace-0.11.4-old-kernels.patch 563 BLAKE2B 3b2afb997119188e7095b24ec459f4b5ae28626f6905c45f6510f84b7c6f28aa3b5174f1f48a30763990b2a3cc50c6336249fe1dc4cf31656871a8adce43c8d7 SHA512 332e6cc4d1c21e917451c9aa6028b082f53dde8221419ba45ad7ae6321e444b3f67ec8366cbd56638d8f8b68a3be06af892eba765c810744951af1de9b994113 AUX bpftrace-0.12.0-fuzzing-build.patch 491 BLAKE2B 6fcc78660f69742247bedded028a4c18f933f32c424bb5d11976ff5ddbe16587948e6c75303e75daad440f2cd578fb1a4c3682ca34657a3d2b83a0f67843f994 SHA512 ab9f0b8115ac17130841e7d9b1ad59e5f2a6836acd48ab1d5c3fec45ce75a7833d033a37cb1ddcdd72cd794c202cdaeb287689f67bbb2a9baccb8628c3ff2a59 -AUX bpftrace-0.12.0-install-libs.patch 6364 BLAKE2B e4b59b882c04f58c711f61653f2cb5f28a99f06891d979372e854bae1f125dba43bb64a65a14bd8e85ac97ae8b3e933ab1cc61a2ff9253113428394fbbebe599 SHA512 d9efc5bc544cb97eda647c84ee917851d3c63ff9648b2d026a8e699d5b0d3755f06983984c793cbf2efe865f15588d7d1e414e7b16026067aa5bc5dafb05c456 AUX bpftrace-0.13.0-install-libs.patch 5716 BLAKE2B a50df0b1aa633aeea97af0c9db22729ef81af11722340bd8f10e3d66082e5ff002f2c73712667ba918cbcc51d194980dbf5ad95381102cecd218afa4a394bf31 SHA512 437af44d5953c1510e56aed3ee39c12ff2e06adb3c4fb16e335c4de1ba8dc2aff1f6fdf92cf2e1873ada4574b460b3d7788e5b52f9422c7bf66dfb92375dc7e0 AUX bpftrace-0.14.0-dont-compress-man.patch 1760 BLAKE2B dc07764635e845729e684b0817ccda599824481b7a60f7b89f8a18081fedf84b003ffb06c0cd8c289d8100c58e9fb7959174a3cbd165f485169ecea38a9f19cb SHA512 386a4d6cd46973db42c43f6790ffda165b8697feb576d14e95631a2f1bb26aca37c67ae0ee6f09be5983aa292653dac496a1f207de5e36dfcf986bb78b614bb1 +AUX bpftrace-0.14.0-fuzzing.patch 499 BLAKE2B 3dfbc2594676c37c239c92c94b475cbfa9b30ff785bba436e0cf5729deac51c7f10826ddb9603f02bd39645af626e0aa2565b46ac79ede40d936203def321391 SHA512 bf2a3569097274a46e5ed9fe8ea014ae3a0c9f42684e56b948cd6ec458e022d98aaecaac7577150e3a78c81583e678fbfa0f798c342e827ea7af9a4c2b128f0f AUX bpftrace-0.14.0-install-libs.patch 8077 BLAKE2B ae165fd4eceae5d159d28b9a0fb29e8c12dd565c127984469ad55675e115f48ae0de471ddb3b88699560472e63f0fd4fef187708d722f5e42e749f0cbe066ae1 SHA512 3664a93d9ab6f824ea2c7689020287a8cc3da45c27a146a3301394e5adbde56a899727d7fd15d912dd7b2ba8e9c84508e4c5b563d551e7315ec05c1f9eddfc7d -DIST bpftrace-0.12.1.tar.gz 938043 BLAKE2B 3599c21d2381265ab5a7a3c0bf142dc7f79acb66fbb4f54b4100d042c21fc3c9e86297522bfe46f82ad5edbc2203314a6b02ff7cc07552c778b0726e681cb993 SHA512 a578499668bd2eb7342689b6c0ef3db6ca263a971d8e6f1b9a68c502c27170d24ede212a0fc2a72263e72aff58924f488a5c80d447397503a08512dc47b63345 DIST bpftrace-0.13.0.tar.gz 952412 BLAKE2B 8e3f6f28b0c652e2257e1a970b80b87ba5ac5e94dc26719bffe16a0bbff48efc2b9ab5bc03e5fe4b764f5c9c3df16039d931f1f13c1f14327880838a373edacc SHA512 16b3f11c365cc7e306045a5cb6bcf6c66b92d746884f6587ce7cc4c76841b284757bff7b38b9838eb3db129e996e4f1b13afec34da57981362dadef8460816d0 DIST bpftrace-0.14.0.tar.gz 991314 BLAKE2B 3222068d7f84c13f736197cef2d188fa31a25db6bd266afe5cbacb1c062155b5ebd5d0310fbad56c15574a795766a33b12624f0252b0bc0677bf05324f414df5 SHA512 78f2d9a4d54c0dda1947b924a828777b402befc3a05031b609da4d256907df1e64f946454a9be7317449f49706f02a881febc4e63d2ef2f4e76924ea19e36ddb -EBUILD bpftrace-0.12.1-r1.ebuild 1717 BLAKE2B b2e89c2456ab0dbdc38ce8fead1297cc4241a1f454fcc8d93fda913468b01f8f398155918089c5b2f7a91b8fde1d06e3c96ca126e4694d433b5624a62655aaef SHA512 9a28f395f250d80c001f34935e75667d39d2a80f07e4c4c37d9acb61707c5856bca560c70e1f5130a0c23aa2242b1ea3a6d2d8cf2f59418271bdccbcc69227ed -EBUILD bpftrace-0.13.0-r1.ebuild 1717 BLAKE2B 983e2a0bab14db717143b9f3a43a0ed1f4424ad98cb77967f16d9dd97b968f4b4e4de98c41e5b9d33bef6f44ad52ce3ad004382471912b624950c871af38a750 SHA512 a2a27e804e0f851324ffcdb430f7278907fdac3056f186eb54ca8a1586991ba9fe52dd0c9b173b6b193ea2f6a2eb383f8af269b586c3b66eeda8a42cb905d5b4 -EBUILD bpftrace-0.14.0-r2.ebuild 1816 BLAKE2B 8799e8f61573d696482d1ea6b4a27a8619bcdc1f61a0e9ceed7c43f91bacc08a5b077f695eedefb58bfc9cbee03a2f1bb4e37c373359361168be8795851b2ffa SHA512 042049b0e214a95bd5479088b8ceba0d13b6330933fd56297c16727813b7917c727083310aeef4c1cf1801628f065a01c3929998ba3d38964dde729f698bebee -MISC metadata.xml 385 BLAKE2B 625639d1899cc754d8622934822d467802c908ec386311103b8683c2bec45f1ac28b42704203ee97caacd08c6a96fcc84edde3dcc7b6f3f10f918cf67a656754 SHA512 7e15d98bff6109e41edd085924d9ac6a8bece5ff534e840576ca8c9d338f80e80a77b0ce7f822a8c10a41cb7d58a02a09ae54917136c450a98338124b7b24f9e +EBUILD bpftrace-0.13.0-r1.ebuild 1701 BLAKE2B 26ac82532abf6d1b194f7770dec7c9b6fa8e137ad1927924e02c84339fe0765b3942c8f8fd28b1564ff44afd26653a8abb10d230d56ed9606648633606791bcb SHA512 b800a79a0aa70c5acb8fd4f9b37cae9d99c82684063ec5544f537c0128cb21f490c062b8ae539f08ed28dcac4db75eac5b8c1b4e5274b7156fbffe182d0f18fc +EBUILD bpftrace-0.14.0-r2.ebuild 1800 BLAKE2B 595833564e6d29016a523502877ab550a65d8749f6afd4a090ee10fb0c06470488c00ea8379b8f84cdce994651e2b323402c7b1663a2113db90b4b1a101c3c5d SHA512 37f6b42c84c82107b51b035d94e7ff704587c6241e05e872ed98cf6ad4a17acab24f66265339dc57e905a82b868acc4182f4a245cecdb52a5871d4db53757574 +EBUILD bpftrace-0.14.0-r3.ebuild 1714 BLAKE2B 920871a51ced4378659f415e3f08ed29a3b2aaee9613977b0efa090d86429c1a464c71fa7a9d5ec73a134f38a9086c9af8519ca88c60c008233796ca3e4af9e6 SHA512 b667cdbb36ffdace520ed8c29c384ea50c71679f1e798f1e5921a59307ef2c3202789bd8fcc988d0c1776ab88feebc869de6d9f60a071721e9a3fc3b56d1dead +MISC metadata.xml 499 BLAKE2B ce7c46f4c5e49f2f779ff6584053f7fc78dffaeee432ac46a8881b3d49dc569e309af95aaf9d6e77a36ebc87be0cd2f86a5db7b733463e4252d3a242d914f293 SHA512 dfb827afd47feb8204ef40c940ebcc7d1b3217cdf0f24425e4ab32195309d727225e942d777871565e47a2c02244d053f46ed25165e9728c94e0683ff61bf4ce diff --git a/dev-util/bpftrace/bpftrace-0.13.0-r1.ebuild b/dev-util/bpftrace/bpftrace-0.13.0-r1.ebuild index 3437f2e80ce1..bf4eda842dfa 100644 --- a/dev-util/bpftrace/bpftrace-0.13.0-r1.ebuild +++ b/dev-util/bpftrace/bpftrace-0.13.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit toolchain-funcs llvm linux-info cmake +inherit llvm linux-info cmake DESCRIPTION="High-level tracing language for eBPF" HOMEPAGE="https://github.com/iovisor/bpftrace" diff --git a/dev-util/bpftrace/bpftrace-0.14.0-r2.ebuild b/dev-util/bpftrace/bpftrace-0.14.0-r2.ebuild index 483f341c4909..bb1d9b9bc095 100644 --- a/dev-util/bpftrace/bpftrace-0.14.0-r2.ebuild +++ b/dev-util/bpftrace/bpftrace-0.14.0-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit toolchain-funcs llvm linux-info cmake +inherit llvm linux-info cmake DESCRIPTION="High-level tracing language for eBPF" HOMEPAGE="https://github.com/iovisor/bpftrace" diff --git a/dev-util/bpftrace/bpftrace-0.12.1-r1.ebuild b/dev-util/bpftrace/bpftrace-0.14.0-r3.ebuild index c36af3ddcf98..fb376800eda5 100644 --- a/dev-util/bpftrace/bpftrace-0.12.1-r1.ebuild +++ b/dev-util/bpftrace/bpftrace-0.14.0-r3.ebuild @@ -3,59 +3,53 @@ EAPI=7 -inherit toolchain-funcs llvm linux-info cmake +LLVM_MAX_SLOT=13 + +inherit llvm linux-info cmake DESCRIPTION="High-level tracing language for eBPF" HOMEPAGE="https://github.com/iovisor/bpftrace" - -if [[ ${PV} =~ 9{4,} ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/iovisor/${PN}" - BDEPEND="" -else - MY_PV="${PV//_/}" - SRC_URI="https://github.com/iovisor/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~x86" - BDEPEND="app-arch/xz-utils " -fi +MY_PV="${PV//_/}" +SRC_URI="https://github.com/iovisor/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" LICENSE="Apache-2.0" SLOT="0" +KEYWORDS="~amd64 ~x86" IUSE="fuzzing test" +# lots of fixing needed +RESTRICT="test" -COMMON_DEPEND=" +RDEPEND=" dev-libs/libbpf:= >=dev-util/bcc-0.13.0:= dev-util/systemtap - >=sys-devel/llvm-6:=[llvm_targets_BPF(+)] - <=sys-devel/llvm-13:=[llvm_targets_BPF(+)] - <=sys-devel/clang-13:= + <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):= + <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=[llvm_targets_BPF(+)] sys-libs/binutils-libs:= - virtual/libelf + virtual/libelf:= " -DEPEND="${COMMON_DEPEND} +DEPEND=" + ${COMMON_DEPEND} + dev-libs/cereal:= test? ( dev-cpp/gtest ) " -RDEPEND="${COMMON_DEPEND}" -BDEPEND+=" - >=dev-util/cmake-3.8 +BDEPEND=" + app-arch/xz-utils sys-devel/flex sys-devel/bison " -S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" QA_DT_NEEDED="/usr/lib.*/libbpftraceresources.so" PATCHES=( - "${FILESDIR}/bpftrace-0.12.0-install-libs.patch" - "${FILESDIR}/bpftrace-0.10.0-dont-compress-man.patch" + "${FILESDIR}/bpftrace-0.14.0-install-libs.patch" + "${FILESDIR}/bpftrace-0.14.0-dont-compress-man.patch" + "${FILESDIR}/bpftrace-0.14.0-fuzzing.patch" "${FILESDIR}/bpftrace-0.11.4-old-kernels.patch" "${FILESDIR}/bpftrace-0.12.0-fuzzing-build.patch" ) -# lots of fixing needed -RESTRICT="test" - pkg_pretend() { local CONFIG_CHECK=" ~BPF @@ -70,19 +64,25 @@ pkg_pretend() { } pkg_setup() { - LLVM_MAX_SLOT=12 llvm_pkg_setup -} - -src_prepare() { - cmake_src_prepare + llvm_pkg_setup } src_configure() { local -a mycmakeargs=( -DSTATIC_LINKING:BOOL=OFF + # bug 809362, 754648 + -DBUILD_SHARED_LIBS:=OFF -DBUILD_TESTING:BOOL=OFF -DBUILD_FUZZ:BOOL=$(usex fuzzing) + -DENABLE_MAN:BOOL=OFF ) cmake_src_configure } + +src_install() { + cmake_src_install + # bug 809362 + dostrip -x /usr/bin/bpftrace + doman man/man8/*.? +} diff --git a/dev-util/bpftrace/files/bpftrace-0.12.0-install-libs.patch b/dev-util/bpftrace/files/bpftrace-0.12.0-install-libs.patch deleted file mode 100644 index 04c08b3efa8b..000000000000 --- a/dev-util/bpftrace/files/bpftrace-0.12.0-install-libs.patch +++ /dev/null @@ -1,161 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index e4544559..272ea18d 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -92,9 +92,10 @@ find_package(FLEX REQUIRED) - bison_target(bison_parser src/parser.yy ${CMAKE_BINARY_DIR}/parser.tab.cc VERBOSE) - flex_target(flex_lexer src/lexer.l ${CMAKE_BINARY_DIR}/lex.yy.cc) - add_flex_bison_dependency(flex_lexer bison_parser) --add_library(parser ${BISON_bison_parser_OUTPUTS} ${FLEX_flex_lexer_OUTPUTS}) --target_compile_options(parser PRIVATE "-w") --target_include_directories(parser PUBLIC src src/ast ${CMAKE_BINARY_DIR}) -+add_library(bpftraceparser ${BISON_bison_parser_OUTPUTS} ${FLEX_flex_lexer_OUTPUTS}) -+target_compile_options(bpftraceparser PRIVATE "-w") -+target_include_directories(bpftraceparser PUBLIC src src/ast ${CMAKE_BINARY_DIR}) -+install(TARGETS bpftraceparser LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - - include(CheckSymbolExists) - set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE) -diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt -index a95c60a1..f5c4d676 100644 ---- a/resources/CMakeLists.txt -+++ b/resources/CMakeLists.txt -@@ -1,6 +1,7 @@ --add_library(resources headers.cpp) -+add_library(bpftraceresources headers.cpp) - --target_include_directories(resources PUBLIC ../src) -+target_include_directories(bpftraceresources PUBLIC ../src) -+install(TARGETS bpftraceresources LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - - function(embed_headers output) - file(WRITE ${output} "#include \"headers.h\"\n\nnamespace bpftrace {\n") -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index 37ee2204..8b2e1909 100644 ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -145,7 +145,8 @@ if (ALLOW_UNSAFE_PROBE) - target_compile_definitions(libbpftrace PRIVATE HAVE_UNSAFE_PROBE) - endif(ALLOW_UNSAFE_PROBE) - --target_link_libraries(libbpftrace arch ast parser resources) -+target_link_libraries(libbpftrace bpftracearch bpftraceast bpftraceparser bpftraceresources) -+install(TARGETS bpftracearch bpftraceast bpftraceparser LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - - target_link_libraries(libbpftrace ${LIBBCC_LIBRARIES}) - if(STATIC_LINKING) -@@ -194,6 +195,7 @@ if (USE_LIBFUZZER) - endif() - - install(TARGETS ${BPFTRACE} DESTINATION ${CMAKE_INSTALL_BINDIR}) -+install(TARGETS libbpftrace LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - - set(KERNEL_HEADERS_DIR "" CACHE PATH "Hard-code kernel headers directory") - if (KERNEL_HEADERS_DIR) -diff --git a/src/arch/CMakeLists.txt b/src/arch/CMakeLists.txt -index 76bb217e..6d243a7e 100644 ---- a/src/arch/CMakeLists.txt -+++ b/src/arch/CMakeLists.txt -@@ -1,15 +1,15 @@ - if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") -- add_library(arch aarch64.cpp) -+ add_library(bpftracearch aarch64.cpp) - elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64" OR - CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le") -- add_library(arch ppc64.cpp) -+ add_library(bpftracearch ppc64.cpp) - elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "s390" OR - CMAKE_SYSTEM_PROCESSOR STREQUAL "s390x") -- add_library(arch s390.cpp) -+ add_library(bpftracearch s390.cpp) - elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") -- add_library(arch x86_64.cpp) -+ add_library(bpftracearch x86_64.cpp) - elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "mips64") -- add_library(arch mips64.cpp) -+ add_library(bpftracearch mips64.cpp) - else() - message(FATAL_ERROR "Unsupported architecture: ${CMAKE_SYSTEM_PROCESSOR}") - endif() -diff --git a/src/ast/CMakeLists.txt b/src/ast/CMakeLists.txt -index 3d444fb4..c2cf84ed 100644 ---- a/src/ast/CMakeLists.txt -+++ b/src/ast/CMakeLists.txt -@@ -1,4 +1,4 @@ --add_library(ast -+add_library(bpftraceast - ast.cpp - attachpoint_parser.cpp - callback_visitor.cpp -@@ -11,17 +11,18 @@ add_library(ast - signal.cpp - visitors.cpp - ) -+install(TARGETS bpftraceast LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - --target_include_directories(ast PUBLIC ${CMAKE_SOURCE_DIR}/src) --target_include_directories(ast PUBLIC ${CMAKE_SOURCE_DIR}/src/ast) --target_include_directories(ast PUBLIC ${CMAKE_BINARY_DIR}) --target_link_libraries(ast arch) -+target_include_directories(bpftraceast PUBLIC ${CMAKE_SOURCE_DIR}/src) -+target_include_directories(bpftraceast PUBLIC ${CMAKE_SOURCE_DIR}/src/ast) -+target_include_directories(bpftraceast PUBLIC ${CMAKE_BINARY_DIR}) -+target_link_libraries(bpftraceast bpftracearch) - - if (HAVE_BCC_KFUNC) -- target_compile_definitions(ast PRIVATE HAVE_BCC_KFUNC) -+ target_compile_definitions(bpftraceast PRIVATE HAVE_BCC_KFUNC) - endif(HAVE_BCC_KFUNC) - --add_dependencies(ast parser) -+add_dependencies(bpftraceast bpftraceparser) - - if (STATIC_LINKING) - set(clang_libs -@@ -45,17 +46,17 @@ if (STATIC_LINKING) - if(EMBED_LIBCLANG_ONLY) - unlink_transitive_dependency("${CLANG_EXPORTED_TARGETS}" "LLVM") - endif() -- target_link_libraries(ast ${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(ast ${LLVM_EMBEDDED_CMAKE_TARGETS}) -+ target_link_libraries(bpftraceast ${LLVM_EMBEDDED_CMAKE_TARGETS}) - else() - llvm_map_components_to_libnames(llvm_libs bpfcodegen ipo irreader mcjit option orcjit ${LLVM_TARGETS_TO_BUILD}) -- target_link_libraries(ast ${clang_libs}) -- target_link_libraries(ast ${llvm_libs}) -+ target_link_libraries(bpftraceast ${clang_libs}) -+ target_link_libraries(bpftraceast ${llvm_libs}) - endif() - - if(STATIC_LIBC) -@@ -64,11 +65,11 @@ if (STATIC_LINKING) - else() - find_library(found_LLVM LLVM HINTS ${LLVM_LIBRARY_DIRS}) - if(found_LLVM) -- target_link_libraries(ast 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(ast ${llvm_libs}) -+ target_link_libraries(bpftraceast ${llvm_libs}) - endif() -- target_link_libraries(ast libclang) -+ target_link_libraries(bpftraceast libclang) - endif() -diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt -index 8d546f9a..105dcd11 100644 ---- a/tests/CMakeLists.txt -+++ b/tests/CMakeLists.txt -@@ -1,4 +1,4 @@ --add_compile_options("-Wno-undef") -+gdd_compile_options("-Wno-undef") - add_compile_options("-Wno-switch-default") - add_compile_options("-Wno-switch-enum") - diff --git a/dev-util/bpftrace/files/bpftrace-0.14.0-fuzzing.patch b/dev-util/bpftrace/files/bpftrace-0.14.0-fuzzing.patch new file mode 100644 index 000000000000..6c759a9e1ca1 --- /dev/null +++ b/dev-util/bpftrace/files/bpftrace-0.14.0-fuzzing.patch @@ -0,0 +1,18 @@ +https://github.com/iovisor/bpftrace/pull/2059 +--- a/src/fuzz_main.cpp ++++ b/src/fuzz_main.cpp +@@ -17,12 +17,12 @@ + #include <unistd.h> + + #include "ast/bpforc/bpforc.h" +-#include "ast/clang_parser.h" ++#include "clang_parser.h" + #include "ast/passes/callback_visitor.h" + #include "ast/passes/field_analyser.h" + #include "ast/passes/semantic_analyser.h" + #include "bpftrace.h" +-#include "codegen_llvm.h" ++#include "ast/passes/codegen_llvm.h" + #include "driver.h" + #include "log.h" + #include "output.h" diff --git a/dev-util/bpftrace/metadata.xml b/dev-util/bpftrace/metadata.xml index 3e240d7784b1..3b275bd1ca56 100644 --- a/dev-util/bpftrace/metadata.xml +++ b/dev-util/bpftrace/metadata.xml @@ -4,6 +4,10 @@ <maintainer type="person"> <email>chutzpah@gentoo.org</email> </maintainer> + <maintainer type="person"> + <email>jsmolic@gentoo.org</email> + <name>Jakov Smolić</name> + </maintainer> <use> <flag name="fuzzing">Build bpftrace for fuzzing</flag> </use> |