diff options
Diffstat (limited to 'dev-util')
17 files changed, 471 insertions, 454 deletions
diff --git a/dev-util/Manifest.gz b/dev-util/Manifest.gz Binary files differindex 2a28450879dd..86da4e614b7a 100644 --- a/dev-util/Manifest.gz +++ b/dev-util/Manifest.gz diff --git a/dev-util/bpftrace/Manifest b/dev-util/bpftrace/Manifest index 96f77dc68b17..b73d09676df2 100644 --- a/dev-util/bpftrace/Manifest +++ b/dev-util/bpftrace/Manifest @@ -1,15 +1,11 @@ AUX bpftrace-0.11.4-old-kernels.patch 563 BLAKE2B 3b2afb997119188e7095b24ec459f4b5ae28626f6905c45f6510f84b7c6f28aa3b5174f1f48a30763990b2a3cc50c6336249fe1dc4cf31656871a8adce43c8d7 SHA512 332e6cc4d1c21e917451c9aa6028b082f53dde8221419ba45ad7ae6321e444b3f67ec8366cbd56638d8f8b68a3be06af892eba765c810744951af1de9b994113 -AUX bpftrace-0.15.0-bcc-025.patch 3192 BLAKE2B a72790e25963342b2eed5c2b9fd41bd22d88b536a064f6e4039bc83242ea4c5a48b27d2d786008df45656234c700ba9fbb738e09ea8e70e75a3f457163c4da90 SHA512 22ef3d05790416b4286ea9931646c3940877da8cf02b9645edbc753a4adb75e90f233b533d0c2c790eb62592c6af6487c02a502ecca8d547ec3d329a2aa71f64 -AUX bpftrace-0.15.0-binutils-2.39.patch 3051 BLAKE2B 689b22485d3cb994db7253581ae0c87ecfbb50133d4481209a5d9bde349456621901a66d52d3633b8e8e00d1900254b2d8e5e69bbb24dc126855ab43f453a681 SHA512 1436d44d6469d590b4b94577151d2272483dbb0c4c5f70d74f0cffa8b84c7c923f9f4ecfd7c245b440228df681c38f7bcb28c78a9220c8a90af68a71dc0c9506 -AUX bpftrace-0.15.0-dont-compress-man.patch 1885 BLAKE2B 89a327cef68fa838d5c04b37e7bf72e6b03b54c244889706ba3c5156e2355d00cf395d14a6e8a7fe622e002acf9bab06dbc1427f6b637f0c59db86af08f05d51 SHA512 b591a73b0bbdd0105e6b87fb264ca4345e200ab58754d09a87dec79e60044eab165f2b34fe5ddc904cd877a460d5f41eef8b4d59eac255ea4f4e0fae37cf3511 -AUX bpftrace-0.15.0-install-libs.patch 8206 BLAKE2B 9d8b193f422b0ee64301b7ea12791afdd5111cde487b904ec35750e6189fdd6faca9af36b8956058c820c2398bcabc7dcee6d26b93c55ff1e591b3259a682a27 SHA512 9721d8f3812855d7a9155d8e5ecac305dedb5c8326ccf8ea679048f920ca58a774576840c1b0bc2864a26c66c89bf0c81ed1a1ab30fb571a6cfaebc5b499c2b7 AUX bpftrace-0.15.0-llvm-15-pointers.patch 1023 BLAKE2B fc66196f11e9384878921309d09e3f205674a88041c93b0b353bf38ff345b4192b83cd1c80a15258b97710624b3341c9ed19b60beff38c163f677d644843ff54 SHA512 8282aa82eb867eed3378adc4ff2b73c6427d4f979cfb5268444bf122126c758229d680985e4ede7e8d011a14d4a122d6742650f57ee0e0759e3b1bfb9ba9458f AUX bpftrace-0.16.0-install-libs.patch 8507 BLAKE2B 84842c5c400e2921d40f32ccd27ec06174c517e35b3a413907231e128d636e7c4711d131682d3fbc75a861bf3cd0cf83de2ca1c4bfbf2606e69d32f898fbd3a4 SHA512 93341eca7566d1328cbd670685859803cc76869be2eb3d52d38e3956f30d28f63d73ba32ae7f111dfd01ccb95899be6e1834fe7e1f1ee3794a0b796b8f52574e AUX bpftrace-0.16.0-opaquepointer.patch 20038 BLAKE2B beeda98ded230a8bb22d2a32dd0e839f138ca9c9fec10402d039f4385016b4330ce94756641e4f24a5a1e294ce08d282cbf4f7e01ef0c817dda21d2324f7cf60 SHA512 4b61fe7d21a42493590e5e6bc7507852d6a1f0d685d78958d6aa2c1602211d99bbccced25a2c118ecdedd802ccfdd009b940ccb81573b28b010a476952bd1da7 -DIST bpftrace-0.14.1-llvm14.patch.gz 7377 BLAKE2B 69b3b74bce74a8d4d8d9cc74de352dc33875ae905d8a88c776bbe80862a4f4ac2d450bcb6190da8be880bcc8fb751e3b8172df5454f31dc4bcd3e41edb02e396 SHA512 3269132981a7d2c0263fe9003bbcd2348e186ca0cdc95ada368331fc6e2495ae126c7bd68676438ccb575aafdafa3d17604a28fdc11d8b629eeaee130c1fd614 -DIST bpftrace-0.15.0.tar.gz 1006735 BLAKE2B 3ef4bb5f13aa6dea5140b5362e6fc3de21baa1192e2218307895bf29ddeba8d69543e32c2b769bf3456076095ba661b66e1625f2696631d22628311d7f6ec1a4 SHA512 916e9afeab301e62472e570ef77a3b9b27b43251880b64f1c5f151583c59a6c61e9ede50f3607044b27c5a6ce1a654f290153bf3f9237ebc0a823b5e6356187a +AUX bpftrace-0.17.0-install-libs.patch 13643 BLAKE2B d5f2f99cb0afaa29bf68315291487cedabcc72aadaa99130e55a7f14646729325db9f8475d785f60683e8a3b2cc5725160a954b6609b82b86b71a4ac6dde9bb9 SHA512 c58dce02750757176d6b5e15fe71ef992e256d420d32dd06059733c8851fe069b6195719804e705d8c245d2811e26eb4140bab5419832083a523074b56cabb5e DIST bpftrace-0.16.0.gh.tar.gz 1023480 BLAKE2B 20fa877adeaada655462004142a80f107f82a3fa73fd7a7675a477d45ecd3a28115af5d612da2b06e2d760cfa3e574583e4cc4d62f4175c49ecc9d9b3fcceb6e SHA512 52ca4fea4e2f8d2cbf0f9f1bc69af0ee3408201f019006dd2e838b9458cfc01761eba3df24c39e05cf93220d85d0cecc69bb44ec72f9f44cec0eb94479bff734 -EBUILD bpftrace-0.15.0-r2.ebuild 2008 BLAKE2B c947ed7d7ffe63e6d8f67b8de5a62ff5053aa3ffeffde602c32aac7dace1916d9ec288c3f1a3077cf6833b8ff32459f6c4e2879bf6f8e392535d3527029a4660 SHA512 f1ca5e2650bb0caa191f65af578fe52126777080ce852cefc21af513ae77103c9ef555902eda60675234e7632651621ff4c8f68fcb4b83491c411834014d9875 +DIST bpftrace-0.17.0.gh.tar.gz 1033934 BLAKE2B 960582096fcf1652a65c4f8e18dcc5e17792c3b5c048dff59465fc1fc43d39e033c06ebc5c9bc88310b429a81fac5a8cfcdc261e7f0dcdcba4823b518f74fa3e SHA512 b1c8fc81b23f38bc45b4e73edd29c4cd0775e703b368612f00902fbda39dc3758038cd7afa351c1711cec467efd2a199a6b8b933b03aebd591d230d533e190d3 EBUILD bpftrace-0.16.0-r1.ebuild 1740 BLAKE2B b798c92e0e80396c069d83b1f9d55d019382a4f3615c4a064d9b0c196c010c4399d488c41ef403702a5e3ccdff14d1cd4466a8b0d6cdb25902b48498197120b7 SHA512 0b252876bcd309520eb3daa4216cf21e1d8b1eb2ea0e33f5abe3b5d48cf32e8c5e5739f46c395f4678c64e39841e87093b829269563eadd51bdb10acf0b51d3c EBUILD bpftrace-0.16.0-r2.ebuild 1791 BLAKE2B bd0db18452f6d36ea37658b477219fc10edb329b17aa0fb6f26bce4578c9ddba88915e0a026fd190fcb5eba8bf005d930d6fcda590da623725a8254e8f224f30 SHA512 569974b254bd1ffc50018bc66edac49bb0f2c07a8990caded28fdf24f5728b16df08cc20157f07e248eb960291ecf9c8f5782bc4e1701ce2e8631f0abcbd8164 +EBUILD bpftrace-0.17.0.ebuild 1839 BLAKE2B 19ab0853ea85c72923fa0e82a30604d8f2ba4b8fff112a3e81d95ffefa490f96b1cce62c4c3dd50909d35b6fe894db275871cf051ff0b222ece0d448bb1ec9ba SHA512 6572d0d3f22bb9b629cca8259a9082835634cb88ccee623df63a072830b3ccb9a75d2e9a5e69aeabd728814f752b3ac4b6bc8e71bc022ff6e282bcdc22de0583 MISC metadata.xml 499 BLAKE2B ce7c46f4c5e49f2f779ff6584053f7fc78dffaeee432ac46a8881b3d49dc569e309af95aaf9d6e77a36ebc87be0cd2f86a5db7b733463e4252d3a242d914f293 SHA512 dfb827afd47feb8204ef40c940ebcc7d1b3217cdf0f24425e4ab32195309d727225e942d777871565e47a2c02244d053f46ed25165e9728c94e0683ff61bf4ce diff --git a/dev-util/bpftrace/bpftrace-0.15.0-r2.ebuild b/dev-util/bpftrace/bpftrace-0.17.0.ebuild index f0998d9f30ca..e2084dacecf4 100644 --- a/dev-util/bpftrace/bpftrace-0.15.0-r2.ebuild +++ b/dev-util/bpftrace/bpftrace-0.17.0.ebuild @@ -1,33 +1,34 @@ # Copyright 2019-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -LLVM_MAX_SLOT=15 +LLVM_MAX_SLOT=16 -inherit llvm linux-info cmake toolchain-funcs +inherit llvm linux-info cmake DESCRIPTION="High-level tracing language for eBPF" HOMEPAGE="https://github.com/iovisor/bpftrace" MY_PV="${PV//_/}" -SRC_URI=" - https://github.com/iovisor/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~chutzpah/dist/bpftrace/bpftrace-0.14.1-llvm14.patch.gz -" +SRC_URI="https://github.com/iovisor/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" LICENSE="Apache-2.0" SLOT="0" + +# remove keywords until build works: +# https://github.com/iovisor/bpftrace/issues/2349 KEYWORDS="~amd64 ~arm64 ~x86" IUSE="fuzzing test" + # lots of fixing needed RESTRICT="test" RDEPEND=" - >=dev-libs/libbpf-0.8:= - <dev-libs/libbpf-1.0:= - >=dev-util/bcc-0.13.0:= - dev-util/systemtap + >=dev-libs/libbpf-1.0:= + >=dev-util/bcc-0.25.0:= + >=sys-devel/llvm-10:=[llvm_targets_BPF(+)] + >=sys-devel/clang-10:= <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):= <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=[llvm_targets_BPF(+)] sys-libs/binutils-libs:= @@ -45,15 +46,15 @@ BDEPEND=" virtual/pkgconfig " -QA_DT_NEEDED="/usr/lib.*/libbpftraceresources.so" +QA_DT_NEEDED=" + /usr/lib.*/libbpftraceresources.so + /usr/lib.*/libcxxdemangler_llvm.so +" PATCHES=( - "${FILESDIR}/bpftrace-0.15.0-install-libs.patch" + "${FILESDIR}/bpftrace-0.17.0-install-libs.patch" "${FILESDIR}/bpftrace-0.15.0-dont-compress-man.patch" "${FILESDIR}/bpftrace-0.11.4-old-kernels.patch" - "${FILESDIR}/bpftrace-0.15.0-bcc-025.patch" - "${FILESDIR}/bpftrace-0.15.0-binutils-2.39.patch" - "${FILESDIR}/bpftrace-0.15.0-llvm-15-pointers.patch" ) pkg_pretend() { @@ -77,11 +78,10 @@ src_configure() { local mycmakeargs=( -DSTATIC_LINKING:BOOL=OFF # bug 809362, 754648 - -DBUILD_SHARED_LIBS:=OFF - -DBUILD_TESTING:BOOL=OFF + -DBUILD_TESTING:BOOL=$(usex test) -DBUILD_FUZZ:BOOL=$(usex fuzzing) -DENABLE_MAN:BOOL=OFF - -DLIBBPF_INCLUDE_DIRS="$($(tc-getPKG_CONFIG) --cflags-only-I libbpf | sed 's:-I::g')" + -DUSE_SYSTEM_BPF_BCC:BOOL=ON ) cmake_src_configure diff --git a/dev-util/bpftrace/files/bpftrace-0.15.0-bcc-025.patch b/dev-util/bpftrace/files/bpftrace-0.15.0-bcc-025.patch deleted file mode 100644 index ef2ca76e1c50..000000000000 --- a/dev-util/bpftrace/files/bpftrace-0.15.0-bcc-025.patch +++ /dev/null @@ -1,88 +0,0 @@ -From f86c3bde84d9e75ec2780a51a1ca7dc20a4740e6 Mon Sep 17 00:00:00 2001 -From: Dominique Martinet <asmadeus@codewreck.org> -Date: Thu, 25 Aug 2022 21:47:30 +0900 -Subject: [PATCH] Fix builds against bcc >= 0.25.0 - -libbpf 1.0.0 removed bpf_load_program_attr in -https://github.com/libbpf/libbpf/commit/9476dce6fe905a6bf1d4c483f7b2b8575c4ffb2d -and bcc 0.25.0 in turn changed bcc_prog_load_xattr to use -bpf_prog_load_opts instead in -https://github.com/iovisor/bcc/commit/185143bdec6134255363446f644acd766ffb3825 - -Add a compile check to use the appropriate version - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index c5c4c39630d2..f23b2ba52740 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -138,7 +138,7 @@ check_symbol_exists(bpf_attach_kfunc "${LIBBCC_INCLUDE_DIRS}/bcc/libbpf.h" HAVE_ - check_symbol_exists(bcc_usdt_addsem_probe "${LIBBCC_INCLUDE_DIRS}/bcc/bcc_usdt.h" HAVE_BCC_USDT_ADDSEM) - check_symbol_exists(bcc_procutils_which_so "${LIBBCC_INCLUDE_DIRS}/bcc/bcc_proc.h" HAVE_BCC_WHICH_SO) - --# bcc_prog_load_xattr needs struct bpf_load_program_attr, -+# bcc_prog_load_xattr needs struct bpf_prog_load_opts or bpf_load_program_attr, - # which is defined in libbpf - if (LIBBPF_FOUND) - check_symbol_exists(bcc_prog_load_xattr "${LIBBCC_INCLUDE_DIRS}/bcc/libbpf.h" HAVE_BCC_PROG_LOAD_XATTR) -@@ -236,6 +236,10 @@ if(LIBBCC_ATTACH_UPROBE_SEVEN_ARGS_SIGNATURE) - set(BPFTRACE_FLAGS "${BPFTRACE_FLAGS}" LIBBCC_ATTACH_UPROBE_SEVEN_ARGS_SIGNATURE) - endif(LIBBCC_ATTACH_UPROBE_SEVEN_ARGS_SIGNATURE) - -+if(LIBBCC_PROG_LOAD_XATTRS_WITH_OPTS) -+ set(BPFTRACE_FLAGS "${BPFTRACE_FLAGS}" LIBBCC_PROG_LOAD_XATTRS_WITH_OPTS) -+endif(LIBBCC_PROG_LOAD_XATTRS_WITH_OPTS) -+ - if (HAVE_BCC_KFUNC) - set(BPFTRACE_FLAGS "${BPFTRACE_FLAGS}" HAVE_BCC_KFUNC) - endif(HAVE_BCC_KFUNC) -diff --git a/cmake/FindLibBcc.cmake b/cmake/FindLibBcc.cmake -index 7b4f12835786..20d2e68cd75f 100644 ---- a/cmake/FindLibBcc.cmake -+++ b/cmake/FindLibBcc.cmake -@@ -85,6 +85,16 @@ int main(void) { - return 0; - } - " LIBBCC_ATTACH_UPROBE_SEVEN_ARGS_SIGNATURE) -+CHECK_CXX_SOURCE_COMPILES(" -+#include <bcc/libbpf.h> -+ -+int main(void) { -+ struct bpf_prog_load_opts *opts = (struct bpf_prog_load_opts*) 1; -+ -+ bcc_prog_load_xattr(BPF_PROG_TYPE_UNSPEC, 0, 0, 0, opts, 0, 0, 0, true); -+ return 0; -+} -+" LIBBCC_PROG_LOAD_XATTRS_WITH_OPTS) - SET(CMAKE_REQUIRED_INCLUDES) - - SET(CMAKE_REQUIRED_LIBRARIES ${LIBBCC_BPF_LIBRARIES}) -diff --git a/src/attached_probe.cpp b/src/attached_probe.cpp -index 60778e53ce44..dd46f15fd8d2 100644 ---- a/src/attached_probe.cpp -+++ b/src/attached_probe.cpp -@@ -731,7 +731,24 @@ void AttachedProbe::load_prog() - continue; - } - --#ifdef HAVE_BCC_PROG_LOAD_XATTR -+#ifdef LIBBCC_PROG_LOAD_XATTRS_WITH_OPTS -+ struct bpf_prog_load_opts opts = { }; -+ -+ opts.sz = sizeof(opts); -+ opts.log_level = log_level; -+ -+ progfd_ = bcc_prog_load_xattr( -+ progtype(probe_.type), -+ name.c_str(), -+ license, -+ reinterpret_cast<struct bpf_insn *>(insns), -+ &opts, -+ prog_len, -+ log_buf.get(), -+ log_buf_size, -+ true); -+ -+#elif HAVE_BCC_PROG_LOAD_XATTR - struct bpf_load_program_attr attr = {}; - - attr.prog_type = progtype(probe_.type); diff --git a/dev-util/bpftrace/files/bpftrace-0.15.0-binutils-2.39.patch b/dev-util/bpftrace/files/bpftrace-0.15.0-binutils-2.39.patch deleted file mode 100644 index cb4b8a9bb2d2..000000000000 --- a/dev-util/bpftrace/files/bpftrace-0.15.0-binutils-2.39.patch +++ /dev/null @@ -1,87 +0,0 @@ - -Patch taken from: https://github.com/iovisor/bpftrace/pull/2328 -Removed hunk #1 (CHANGELOG.md) since it conflicts and is not required. -Bug: https://bugs.gentoo.org/868120 - -From 3be6e708d514d3378a4fe985ab907643ecbc77ee Mon Sep 17 00:00:00 2001 -From: Viktor Malik <viktor.malik@gmail.com> -Date: Mon, 15 Aug 2022 15:13:14 +0200 -Subject: [PATCH] Fix builds against libbfd(binutils) >=2.39 - -Binutils 2.39 changed signature of the init_disassemble_info function by -adding an extra parameter for styled printf function. Let CMake detect -which of the versions is present and call it appropriately. ---- - CHANGELOG.md | 2 ++ - CMakeLists.txt | 3 +++ - cmake/FindLibBfd.cmake | 10 ++++++++++ - src/bfd-disasm.cpp | 14 ++++++++++++++ - 4 files changed, 29 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 8f7995afd2..2e54eb84f8 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -249,6 +249,9 @@ if(HAVE_BFD_DISASM) - if(LIBBFD_DISASM_FOUR_ARGS_SIGNATURE) - set(BPFTRACE_FLAGS "${BPFTRACE_FLAGS}" LIBBFD_DISASM_FOUR_ARGS_SIGNATURE) - endif(LIBBFD_DISASM_FOUR_ARGS_SIGNATURE) -+ if(LIBBFD_INIT_DISASM_INFO_FOUR_ARGS_SIGNATURE) -+ set(BPFTRACE_FLAGS "${BPFTRACE_FLAGS}" LIBBFD_INIT_DISASM_INFO_FOUR_ARGS_SIGNATURE) -+ endif(LIBBFD_INIT_DISASM_INFO_FOUR_ARGS_SIGNATURE) - endif(HAVE_BFD_DISASM) - - if (LIBBPF_BTF_DUMP_FOUND) -diff --git a/cmake/FindLibBfd.cmake b/cmake/FindLibBfd.cmake -index 4f4b8c4e20..5d917b188c 100644 ---- a/cmake/FindLibBfd.cmake -+++ b/cmake/FindLibBfd.cmake -@@ -75,5 +75,15 @@ int main(void) { - abfd); - return 0; - }" LIBBFD_DISASM_FOUR_ARGS_SIGNATURE) -+CHECK_CXX_SOURCE_COMPILES(" -+// See comment in bfd-disasm.cpp for why this needs to exist -+#define PACKAGE \"bpftrace-test\" -+#include <dis-asm.h> -+ -+int main(void) { -+ init_disassemble_info(NULL, NULL, NULL, NULL); -+ return 0; -+} -+" LIBBFD_INIT_DISASM_INFO_FOUR_ARGS_SIGNATURE) - SET(CMAKE_REQUIRED_LIBRARIES) - endif() -diff --git a/src/bfd-disasm.cpp b/src/bfd-disasm.cpp -index f846468cd8..d4165dfac5 100644 ---- a/src/bfd-disasm.cpp -+++ b/src/bfd-disasm.cpp -@@ -38,6 +38,16 @@ static int fprintf_nop(void *out __attribute__((unused)), const char *fmt __attr - return 0; - } - -+#ifdef LIBBFD_INIT_DISASM_INFO_FOUR_ARGS_SIGNATURE -+static int fprintf_styled_nop(void *out __attribute__((unused)), -+ enum disassembler_style s __attribute__((unused)), -+ const char *fmt __attribute__((unused)), -+ ...) -+{ -+ return 0; -+} -+#endif -+ - static AlignState is_aligned_buf(void *buf, uint64_t size, uint64_t offset) - { - disassembler_ftype disassemble; -@@ -55,7 +65,11 @@ static AlignState is_aligned_buf(void *buf, uint64_t size, uint64_t offset) - return AlignState::Fail; - } - -+#ifdef LIBBFD_INIT_DISASM_INFO_FOUR_ARGS_SIGNATURE -+ init_disassemble_info(&info, stdout, fprintf_nop, fprintf_styled_nop); -+#else - init_disassemble_info(&info, stdout, fprintf_nop); -+#endif - - info.arch = bfd_get_arch(bfdf); - info.mach = bfd_get_mach(bfdf); diff --git a/dev-util/bpftrace/files/bpftrace-0.15.0-dont-compress-man.patch b/dev-util/bpftrace/files/bpftrace-0.15.0-dont-compress-man.patch deleted file mode 100644 index 84241e052462..000000000000 --- a/dev-util/bpftrace/files/bpftrace-0.15.0-dont-compress-man.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff --git a/man/adoc/CMakeLists.txt b/man/adoc/CMakeLists.txt -index 1a81dee0..c93ccbd2 100644 ---- a/man/adoc/CMakeLists.txt -+++ b/man/adoc/CMakeLists.txt -@@ -1,7 +1,5 @@ --find_program(GZIP gzip REQUIRED) - find_program(ASCIIDOCTOR asciidoctor) - file(GLOB FILES *.adoc) --set(GZFILES "") - if(NOT "${ASCIIDOCTOR}" STREQUAL "ASCIIDOCTOR-NOTFOUND") - foreach(FIL ${FILES}) - get_filename_component(NAME ${FIL} NAME_WE) -@@ -12,14 +10,9 @@ if(NOT "${ASCIIDOCTOR}" STREQUAL "ASCIIDOCTOR-NOTFOUND") - COMMAND ${ASCIIDOCTOR} ${FIL} -b manpage -o - > ${MANPAGE_FILE} - DEPENDS ${FIL}) - -- add_custom_command(OUTPUT ${GZ_MANPAGE_FILE} -- COMMAND ${GZIP} -c ${MANPAGE_FILE} > ${GZ_MANPAGE_FILE} -- DEPENDS ${MANPAGE_FILE}) -- -- list(APPEND GZFILES ${GZ_MANPAGE_FILE}) - endforeach() -- add_custom_target(adoc_man DEPENDS ${GZFILES}) -- install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) -+ add_custom_target(adoc_man DEPENDS ${FILES}) -+ install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) - else() - message(WARNING "asciidoctor not found, building without bpftrace manpage") - add_custom_target(adoc_man) -diff --git a/man/man8/CMakeLists.txt b/man/man8/CMakeLists.txt -index 2a316cd9..2207cf80 100644 ---- a/man/man8/CMakeLists.txt -+++ b/man/man8/CMakeLists.txt -@@ -1,12 +1,3 @@ --find_program(GZIP gzip REQUIRED) - file(GLOB FILES *.8) --set(GZFILES "") --foreach(FIL ${FILES}) -- get_filename_component(NAME ${FIL} NAME) -- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz -- COMMAND ${GZIP} -c ${FIL} > ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz -- DEPENDS ${FIL}) -- list(APPEND GZFILES "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz") --endforeach() - add_custom_target(man_man DEPENDS ${GZFILES}) --install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) -+install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8) diff --git a/dev-util/bpftrace/files/bpftrace-0.15.0-install-libs.patch b/dev-util/bpftrace/files/bpftrace-0.15.0-install-libs.patch deleted file mode 100644 index b20e39e4d268..000000000000 --- a/dev-util/bpftrace/files/bpftrace-0.15.0-install-libs.patch +++ /dev/null @@ -1,199 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index c5c4c396..4bc3e499 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -103,9 +103,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 66a7fd66..738d9327 100644 ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -41,7 +41,7 @@ add_library(runtime - ${BFD_DISASM_SRC} - ) - # Ensure flex+bison outputs are built first --add_dependencies(runtime parser) -+add_dependencies(runtime bpftraceparser) - - add_library(libbpftrace - build_info.cpp -@@ -58,6 +58,7 @@ add_executable(${BPFTRACE} - ) - - install(TARGETS ${BPFTRACE} DESTINATION ${CMAKE_INSTALL_BINDIR}) -+install(TARGETS libbpftrace LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - target_link_libraries(${BPFTRACE} libbpftrace) - - if (BUILD_FUZZ) -@@ -110,6 +111,7 @@ target_include_directories(runtime PRIVATE ${CMAKE_BINARY_DIR}) - target_include_directories(runtime PRIVATE ${CMAKE_SOURCE_DIR}/src) - target_include_directories(runtime PRIVATE ${CMAKE_SOURCE_DIR}/src/ast) - target_compile_definitions(runtime PRIVATE ${BPFTRACE_FLAGS}) -+install(TARGETS runtime LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - target_compile_definitions(libbpftrace PRIVATE ${BPFTRACE_FLAGS}) - - # Linking -@@ -122,7 +124,8 @@ if(STATIC_LINKING) - endif(STATIC_LINKING) - - --target_link_libraries(libbpftrace parser resources runtime aot ast arch cxxdemangler_llvm) -+target_link_libraries(libbpftrace bpftraceparser bpftraceresources -+ runtime aot bpftraceast bpftracearch cxxdemangler_llvm) - - 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..22944ddc 100644 ---- a/src/aot/CMakeLists.txt -+++ b/src/aot/CMakeLists.txt -@@ -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) --target_link_libraries(bpftrace-aotrt aot runtime arch ast_defs cxxdemangler_stdlib) -+target_link_libraries(bpftrace-aotrt aot runtime bpftracearch ast_defs cxxdemangler_stdlib) - install(TARGETS bpftrace-aotrt DESTINATION ${CMAKE_INSTALL_BINDIR}) - - # Linking -diff --git a/src/arch/CMakeLists.txt b/src/arch/CMakeLists.txt -index 127c3528..4e05d40a 100644 ---- a/src/arch/CMakeLists.txt -+++ b/src/arch/CMakeLists.txt -@@ -1,17 +1,19 @@ - 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) - elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "riscv64") -- add_library(arch riscv64.cpp) -+ add_library(bpftracearch riscv64.cpp) - else() - message(FATAL_ERROR "Unsupported architecture: ${CMAKE_SYSTEM_PROCESSOR}") - endif() -+ -+install(TARGETS bpftracearch LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -diff --git a/src/ast/CMakeLists.txt b/src/ast/CMakeLists.txt -index 014295cd..c35f6ac6 100644 ---- a/src/ast/CMakeLists.txt -+++ b/src/ast/CMakeLists.txt -@@ -1,6 +1,6 @@ - add_library(ast_defs ast.cpp) - --add_library(ast -+add_library(bpftraceast - async_event_types.cpp - attachpoint_parser.cpp - int_parser.cpp -@@ -20,11 +20,13 @@ add_library(ast - target_include_directories(ast_defs PUBLIC ${CMAKE_SOURCE_DIR}/src) - target_include_directories(ast_defs PUBLIC ${CMAKE_SOURCE_DIR}/src/ast) - target_include_directories(ast_defs PUBLIC ${CMAKE_BINARY_DIR}) --target_link_libraries(ast ast_defs arch bpforc parser) -+target_link_libraries(bpftraceast ast_defs bpftracearch bpforc bpftraceparser) -+install(TARGETS ast_defs LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+install(TARGETS bpftraceast LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - --add_dependencies(ast_defs parser) -+add_dependencies(ast_defs bpftraceparser) - --target_compile_definitions(ast PRIVATE ${BPFTRACE_FLAGS}) -+target_compile_definitions(bpftraceast PRIVATE ${BPFTRACE_FLAGS}) - - if (STATIC_LINKING) - set(clang_libs -@@ -55,11 +57,11 @@ if (STATIC_LINKING) - - - if(EMBED_USE_LLVM) -- target_link_libraries(ast "-Wl,--start-group" ${CLANG_EMBEDDED_CMAKE_TARGETS} ${LLVM_EMBEDDED_CMAKE_TARGETS} "-Wl,--end-group") -+ target_link_libraries(bpftraceast "-Wl,--start-group" ${CLANG_EMBEDDED_CMAKE_TARGETS} ${LLVM_EMBEDDED_CMAKE_TARGETS} "-Wl,--end-group") - else() - llvm_map_components_to_libnames(llvm_libs ${llvm_lib_names}) -- 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) -@@ -69,13 +71,13 @@ 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() - - add_subdirectory(bpforc) -diff --git a/src/ast/bpforc/CMakeLists.txt b/src/ast/bpforc/CMakeLists.txt -index 3f6dbefa..8ccfbb2b 100644 ---- a/src/ast/bpforc/CMakeLists.txt -+++ b/src/ast/bpforc/CMakeLists.txt -@@ -1 +1,2 @@ - add_library(bpforc bpforc.cpp) -+install(TARGETS bpforc LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -diff --git a/src/cxxdemangler/CMakeLists.txt b/src/cxxdemangler/CMakeLists.txt -index 04cfcdd9..5677aa4b 100644 ---- a/src/cxxdemangler/CMakeLists.txt -+++ b/src/cxxdemangler/CMakeLists.txt -@@ -1,2 +1,4 @@ - add_library(cxxdemangler_stdlib cxxdemangler_stdlib.cpp) - add_library(cxxdemangler_llvm cxxdemangler_llvm.cpp) -+install(TARGETS cxxdemangler_stdlib LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -+install(TARGETS cxxdemangler_llvm LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) diff --git a/dev-util/bpftrace/files/bpftrace-0.17.0-install-libs.patch b/dev-util/bpftrace/files/bpftrace-0.17.0-install-libs.patch new file mode 100644 index 000000000000..a884acc7ef28 --- /dev/null +++ b/dev-util/bpftrace/files/bpftrace-0.17.0-install-libs.patch @@ -0,0 +1,327 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0a7914f5..b9d8f47f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -125,9 +125,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 ce16469a..98161980 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -13,7 +13,7 @@ else() + endif () + endif() + +-add_library(runtime ++add_library(bpftraceruntime + attached_probe.cpp + bpffeature.cpp + bpftrace.cpp +@@ -43,7 +43,7 @@ add_library(runtime + ${BFD_DISASM_SRC} + ) + # Ensure flex+bison outputs are built first +-add_dependencies(runtime parser) ++add_dependencies(bpftraceruntime bpftraceparser) + + add_library(libbpftrace + build_info.cpp +@@ -60,6 +60,7 @@ add_executable(${BPFTRACE} + ) + + install(TARGETS ${BPFTRACE} DESTINATION ${CMAKE_INSTALL_BINDIR}) ++install(TARGETS libbpftrace LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + target_link_libraries(${BPFTRACE} libbpftrace) + + if (BUILD_FUZZ) +@@ -88,7 +89,7 @@ endif() + set(KERNEL_HEADERS_DIR "" CACHE PATH "Hard-code kernel headers directory") + if (KERNEL_HEADERS_DIR) + MESSAGE(STATUS "Using KERNEL_HEADERS_DIR=${KERNEL_HEADERS_DIR}") +- target_compile_definitions(runtime PUBLIC KERNEL_HEADERS_DIR="${KERNEL_HEADERS_DIR}") ++ target_compile_definitions(bpftraceruntime PUBLIC KERNEL_HEADERS_DIR="${KERNEL_HEADERS_DIR}") + endif() + + execute_process( +@@ -108,10 +109,11 @@ endif() + + add_definitions("-DBPFTRACE_VERSION=\"${BPFTRACE_VERSION}\"") + +-target_include_directories(runtime PRIVATE ${CMAKE_BINARY_DIR}) +-target_include_directories(runtime PRIVATE ${CMAKE_SOURCE_DIR}/src) +-target_include_directories(runtime PRIVATE ${CMAKE_SOURCE_DIR}/src/ast) +-target_compile_definitions(runtime PRIVATE ${BPFTRACE_FLAGS}) ++target_include_directories(bpftraceruntime PRIVATE ${CMAKE_BINARY_DIR}) ++target_include_directories(bpftraceruntime PRIVATE ${CMAKE_SOURCE_DIR}/src) ++target_include_directories(bpftraceruntime PRIVATE ${CMAKE_SOURCE_DIR}/src/ast) ++target_compile_definitions(bpftraceruntime PRIVATE ${BPFTRACE_FLAGS}) ++install(TARGETS bpftraceruntime LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + target_compile_definitions(libbpftrace PRIVATE ${BPFTRACE_FLAGS}) + + # Linking +@@ -124,8 +126,8 @@ if(STATIC_LINKING) + endif(STATIC_LINKING) + + +-target_link_libraries(runtime ${LIBBPF_LIBRARIES}) +-target_link_libraries(libbpftrace parser resources runtime aot ast arch cxxdemangler_llvm) ++target_link_libraries(bpftraceruntime ${LIBBPF_LIBRARIES}) ++target_link_libraries(libbpftrace bpftraceparser bpftraceresources bpftraceruntime aot bpftraceast bpftracearch cxxdemangler_llvm) + + if(LIBPCAP_FOUND) + target_link_libraries(libbpftrace ${LIBPCAP_LIBRARIES}) +@@ -135,37 +137,38 @@ if(HAVE_BFD_DISASM) + if(STATIC_LINKING) + add_library(LIBBFD STATIC IMPORTED) + set_property(TARGET LIBBFD PROPERTY IMPORTED_LOCATION ${LIBBFD_LIBRARIES}) +- target_link_libraries(runtime LIBBFD) ++ target_link_libraries(bpftraceruntime LIBBFD) + add_library(LIBOPCODES STATIC IMPORTED) + set_property(TARGET LIBOPCODES PROPERTY IMPORTED_LOCATION ${LIBOPCODES_LIBRARIES}) +- target_link_libraries(runtime LIBOPCODES) ++ target_link_libraries(bpftraceruntime LIBOPCODES) + add_library(LIBIBERTY STATIC IMPORTED) + set_property(TARGET LIBIBERTY PROPERTY IMPORTED_LOCATION ${LIBIBERTY_LIBRARIES}) +- target_link_libraries(runtime LIBIBERTY) ++ target_link_libraries(bpftraceruntime LIBIBERTY) + else() +- target_link_libraries(runtime ${LIBBFD_LIBRARIES}) +- target_link_libraries(runtime ${LIBOPCODES_LIBRARIES}) ++ target_link_libraries(bpftraceruntime ${LIBBFD_LIBRARIES}) ++ target_link_libraries(bpftraceruntime ${LIBOPCODES_LIBRARIES}) + endif(STATIC_LINKING) + endif(HAVE_BFD_DISASM) + + # Link to bcc libraries (without LLVM) if possible + if(LIBBCC_BPF_CONTAINS_RUNTIME) +- target_link_libraries(runtime ${LIBBCC_BPF_LIBRARIES}) ++ target_link_libraries(bpftraceruntime ${LIBBCC_BPF_LIBRARIES}) + else() +- target_link_libraries(runtime ${LIBBCC_LIBRARIES}) ++ target_link_libraries(bpftraceruntime ${LIBBCC_LIBRARIES}) + endif() + + if(STATIC_BPF_BCC) + # These are not part of the static libbcc so have to be added separate +- target_link_libraries(runtime ${LIBBCC_BPF_LIBRARIES}) +- target_link_libraries(runtime ${LIBBPF_LIBRARIES}) +- target_link_libraries(runtime ${LIBBCC_LOADER_LIBRARY_STATIC}) ++ target_link_libraries(bpftraceruntime ${LIBBCC_BPF_LIBRARIES}) ++ target_link_libraries(bpftraceruntime ${LIBBPF_LIBRARIES}) ++ target_link_libraries(bpftraceruntime ${LIBBCC_LOADER_LIBRARY_STATIC}) + + add_library(LIBELF STATIC IMPORTED) + set_property(TARGET LIBELF PROPERTY IMPORTED_LOCATION ${LIBELF_LIBRARIES}) +- target_link_libraries(runtime LIBELF) ++ set_property(TARGET LIBELF PROPERTY IMPORTED_LOCATION ${LIBBPF_LIBRARIES}) ++ target_link_libraries(bpftraceruntime LIBELF) + else() +- target_link_libraries(runtime ${LIBELF_LIBRARIES}) ++ target_link_libraries(bpftraceruntime ${LIBELF_LIBRARIES}) + endif(STATIC_BPF_BCC) + + if (LIBDW_FOUND) +@@ -182,16 +185,16 @@ if (LIBDW_FOUND) + set_property(TARGET LIBDW PROPERTY IMPORTED_LOCATION ${LIBDW_LIBRARIES}) + target_link_libraries(LIBDW INTERFACE LIBBZ2 LIBELF LIBLZMA) + +- target_link_libraries(runtime LIBDW) ++ target_link_libraries(bpftraceruntime LIBDW) + else() +- target_link_libraries(runtime ${LIBDW_LIBRARIES}) ++ target_link_libraries(bpftraceruntime ${LIBDW_LIBRARIES}) + endif() + endif() + + # Support for std::filesystem + # GCC version <9 and Clang (all versions) require -lstdc++fs + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "9") +- target_link_libraries(runtime "stdc++fs") ++ target_link_libraries(bpftraceruntime "stdc++fs") + target_link_libraries(libbpftrace "stdc++fs") + endif() + +@@ -213,16 +216,16 @@ endif() + if (STATIC_LINKING) + if(ANDROID) + target_link_libraries(libbpftrace "-Wl,-Bdynamic" "-ldl" "-lm" "-lz") +- target_link_libraries(runtime "-Wl,-Bdynamic" "-ldl" "-lm" "-lz") ++ target_link_libraries(bpftraceruntime "-Wl,-Bdynamic" "-ldl" "-lm" "-lz") + else() + target_link_libraries(libbpftrace "-Wl,-Bdynamic" "-lrt" "-lpthread" "-ldl" "-lm") + target_link_libraries(libbpftrace "-Wl,-Bstatic" "-lz") +- target_link_libraries(runtime "-Wl,-Bdynamic" "-lrt" "-lpthread" "-ldl" "-lm") +- target_link_libraries(runtime "-Wl,-Bstatic" "-lz") ++ target_link_libraries(bpftraceruntime "-Wl,-Bdynamic" "-lrt" "-lpthread" "-ldl" "-lm") ++ target_link_libraries(bpftraceruntime "-Wl,-Bstatic" "-lz") + endif() + elseif(STATIC_BPF_BCC) + # partial static build, libbpf needs zlib +- target_link_libraries(runtime "-lz") ++ target_link_libraries(bpftraceruntime "-lz") + endif() + + unset(MAIN_SRC) +diff --git a/src/aot/CMakeLists.txt b/src/aot/CMakeLists.txt +index c776d204..41e84317 100644 +--- a/src/aot/CMakeLists.txt ++++ b/src/aot/CMakeLists.txt +@@ -1,8 +1,9 @@ + add_library(aot aot.cpp) +-add_dependencies(aot parser) ++add_dependencies(aot bpftraceparser) + 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) +@@ -11,7 +12,7 @@ if(NOT LIBBCC_BPF_CONTAINS_RUNTIME) + endif() + + add_executable(bpftrace-aotrt aot_main.cpp) +-target_link_libraries(bpftrace-aotrt aot runtime arch ast_defs cxxdemangler_stdlib) ++target_link_libraries(bpftrace-aotrt aot bpftraceruntime bpftracearch ast_defs cxxdemangler_stdlib) + install(TARGETS bpftrace-aotrt DESTINATION ${CMAKE_INSTALL_BINDIR}) + + if(LIBPCAP_FOUND) +diff --git a/src/arch/CMakeLists.txt b/src/arch/CMakeLists.txt +index d01d1ea3..7d96587f 100644 +--- a/src/arch/CMakeLists.txt ++++ b/src/arch/CMakeLists.txt +@@ -1,21 +1,21 @@ + if(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") +- add_library(arch aarch64.cpp) ++ add_library(bpftracearch aarch64.cpp) + elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7-a") +- add_library(arch arm.cpp) ++ add_library(bpftracearch arm.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) + elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "riscv64") +- add_library(arch riscv64.cpp) ++ add_library(bpftracearch riscv64.cpp) + elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "loongarch64") +- add_library(arch loongarch64.cpp) ++ add_library(bpftracearch loongarch64.cpp) + else() + message(FATAL_ERROR "Unsupported architecture: ${CMAKE_SYSTEM_PROCESSOR}") + endif() +diff --git a/src/ast/CMakeLists.txt b/src/ast/CMakeLists.txt +index c390ea6a..37019bd9 100644 +--- a/src/ast/CMakeLists.txt ++++ b/src/ast/CMakeLists.txt +@@ -1,6 +1,6 @@ + add_library(ast_defs ast.cpp) + +-add_library(ast ++add_library(bpftraceast + async_event_types.cpp + attachpoint_parser.cpp + elf_parser.cpp +@@ -21,11 +21,13 @@ add_library(ast + target_include_directories(ast_defs PUBLIC ${CMAKE_SOURCE_DIR}/src) + target_include_directories(ast_defs PUBLIC ${CMAKE_SOURCE_DIR}/src/ast) + target_include_directories(ast_defs PUBLIC ${CMAKE_BINARY_DIR}) +-target_link_libraries(ast ast_defs arch parser) ++target_link_libraries(bpftraceast ast_defs bpftracearch bpftraceparser) ++install(TARGETS ast_defs LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++install(TARGETS bpftraceast LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + +-add_dependencies(ast_defs parser) ++add_dependencies(ast_defs bpftraceparser) + +-target_compile_definitions(ast PRIVATE ${BPFTRACE_FLAGS}) ++target_compile_definitions(bpftraceast PRIVATE ${BPFTRACE_FLAGS}) + + if (STATIC_LINKING) + set(clang_libs +@@ -58,20 +60,20 @@ if (STATIC_LINKING) + + + if(EMBED_USE_LLVM) +- target_link_libraries(ast "-Wl,--start-group" ${CLANG_EMBEDDED_CMAKE_TARGETS} ${LLVM_EMBEDDED_CMAKE_TARGETS} "-Wl,--end-group") ++ target_link_libraries(bpftraceast "-Wl,--start-group" ${CLANG_EMBEDDED_CMAKE_TARGETS} ${LLVM_EMBEDDED_CMAKE_TARGETS} "-Wl,--end-group") + else() + llvm_map_components_to_libnames(llvm_libs ${llvm_lib_names}) + + if(TARGET libclang_static) +- target_link_libraries(ast libclang_static) ++ target_link_libraries(bpftraceast libclang_static) + else() + # old LLVM versions don't export libclang_static in ClangTargets.cmake; fall back to + # libclang.a in that case +- target_link_libraries(ast libclang.a) ++ target_link_libraries(abpftracest libclang.a) + endif() + +- target_link_libraries(ast ${clang_libs}) +- target_link_libraries(ast ${llvm_libs}) ++ target_link_libraries(abpftracest ${clang_libs}) ++ target_link_libraries(abpftracest ${llvm_libs}) + endif() + + if(STATIC_LIBC) +@@ -81,11 +83,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/src/cxxdemangler/CMakeLists.txt b/src/cxxdemangler/CMakeLists.txt +index 04cfcdd9..5677aa4b 100644 +--- a/src/cxxdemangler/CMakeLists.txt ++++ b/src/cxxdemangler/CMakeLists.txt +@@ -1,2 +1,4 @@ + add_library(cxxdemangler_stdlib cxxdemangler_stdlib.cpp) + add_library(cxxdemangler_llvm cxxdemangler_llvm.cpp) ++install(TARGETS cxxdemangler_stdlib LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++install(TARGETS cxxdemangler_llvm LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) diff --git a/dev-util/diffuse/Manifest b/dev-util/diffuse/Manifest index 0a497c3ff55b..e9e5daba2c10 100644 --- a/dev-util/diffuse/Manifest +++ b/dev-util/diffuse/Manifest @@ -1,3 +1,5 @@ DIST diffuse-0.7.5.tar.gz 509048 BLAKE2B f69d9afea243069bdb9d313059556cc83283cd037e2f32de4b1221a2b53c493cb8a0a9bf8b4fc4d8a50e94fc60fe6043d30e3b5e7b7ceb2cec8529d8e136db0f SHA512 466cdc834e1103ad794979a287838b5005379712ee1d77e400d5fe71dcf5e79097decb39e26b213669077a4a2a525444db99b5587929f01b8b2df9f31ec190fd +DIST diffuse-0.7.7.tar.gz 620577 BLAKE2B 5c6cf09519e177404dd4d0fd8b27d176581ac08fb9d6dac5b4a90b130f7c28fce0f0f3802a99c7b3078e608f967a36851532d43f5e661854755242b5b23a64e8 SHA512 bf9576734ebd696252732b3b0ce6f1f18508a800520388459d9f27482a43251db879c2198c3a279bad9528afc08cf8e7f23a3253b58edad049db9b1c697fd6e0 EBUILD diffuse-0.7.5.ebuild 1460 BLAKE2B 405a3c3da153d8e7686d2230905590b415b31dcbd04b8c70359f2ba0234fd827e7ff417eb8d3ce762b5255c1c12238fcb0d19c061f4ba9b715554ea2b2acc4db SHA512 e867b539c63292e9f5e96225a542bef4d4330c1f71036dde5112857f508844f47f918d768f01526771c25c3cded31c77255f970cb2c2834c3942e9e4f222e3ae +EBUILD diffuse-0.7.7.ebuild 1462 BLAKE2B c5cccff3b16d6aaabcf71cb934fcd5f923c5edf703dc0ea7c94defa6729a47b2a8f504ea935beb554741ee1c0bb48d8ff7109db0faa9a3214e9e79f73fb7d53b SHA512 74f37c0a6541fe6b82eeed738047c0323ca37e19eee800d8bea3bf1e28fa261ed808fbb0b57293109c1a8f9e274b9f0e540e666c37075c91be96918610c043df MISC metadata.xml 324 BLAKE2B f4889c3b688d5c75efaef149b263839d073cc9bb5af34143db1fe800459b42a4a2676e03af21bdff14e75a85e9cf20a8e2e6d9447678c45a849798e35d587811 SHA512 24b6f7a5010dea044356f4fec287c0faeae4d3aa7ed79c3d436c28e12edce917f5c34597d7efab39dd59b907baab8cacfd942e61ccf843248df093092cdacd32 diff --git a/dev-util/diffuse/diffuse-0.7.7.ebuild b/dev-util/diffuse/diffuse-0.7.7.ebuild new file mode 100644 index 000000000000..4b47edc65ee9 --- /dev/null +++ b/dev-util/diffuse/diffuse-0.7.7.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..11} ) +PLOCALES="cs de es fr it ja ko pl pt pt_BR ru sv th zh_CN zh_TW" +inherit meson plocale python-r1 xdg + +DESCRIPTION="A graphical tool to compare and merge text files" +HOMEPAGE="http://diffuse.sourceforge.net/ https://github.com/MightyCreak/diffuse/" +SRC_URI="https://github.com/MightyCreak/diffuse/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_USEDEP},cairo] + ') + x11-libs/gtk+:3[introspection]" +# file collision, bug #279018 +DEPEND="${DEPEND} + !sci-chemistry/tinker" + +src_prepare() { + default + plocale_find_changes po '' '.po' + + rm_locale() { + rm -f po/${1}.po + rm -rf data/usr/share/man/${1} + rm -rf data/usr/share/gnome/help/${PN}/$1 + rm -f data/usr/share/omf/${PN}/${PN}-$1.omf + sed -e "/^${1}/d" -i po/LINGUAS + } + + plocale_for_each_disabled_locale rm_locale +} + +src_install() { + meson_src_install + rm "${D}"/usr/bin/${PN} || die "rm ${PN} failed" + python_foreach_impl python_doscript ../${P}-build/src/${PN}/${PN} + mkdir "${D}"/usr/share/metainfo || die "mkdir metainfo failed" + mv "${D}"/usr/share/appdata/* "${D}"/usr/share/metainfo/ \ + || die "mv appdata -> metainfo failed" + dodoc AUTHORS CHANGELOG.md README.md +} diff --git a/dev-util/geany-plugins/Manifest b/dev-util/geany-plugins/Manifest index a937ad74e539..2b2aa9fb59cb 100644 --- a/dev-util/geany-plugins/Manifest +++ b/dev-util/geany-plugins/Manifest @@ -1,4 +1,4 @@ AUX geany-plugins-1.38-libgit2-1.4.patch 4854 BLAKE2B 5605f5776186adaadbc0f861a1de217587a0cadcbd5f0844a0071246e5622ac830f759de4b1c7a5a3540d809c40822b619d0985561cb0f05c557c6d4d06a4a37 SHA512 9b35a656171a6183bbc8764622903d2e7767fafb548c3f2d3cb4e072a01c0bdbbfbeee20b65d42dc36f30bbfde28c5c2899e14f5ccdde1c8e96c877670889977 DIST geany-plugins-1.38.tar.gz 4783970 BLAKE2B 386a05d7136183799059ef6d73b28a0d67d738939b0dc57649ac68f1049104568fe7c8453ebf2144277f60ee0834564b19bf4e756168864f1551962ba2411c14 SHA512 82d04331e23c5d81765b11e081a960a7a17172184cabe94efd2ddb37ac94668349b036e6083f77c867ac650fa7b251ba3970ae26b562b4568d6e313652763339 -EBUILD geany-plugins-1.38-r4.ebuild 3173 BLAKE2B 750f296457022b3c48d727eb46f77633ecb94d9332dee8d52b6c37083c4db07b526ba4194b88b20d7e8c20c8454f92bb3d1ad8a2abb1bfd85e2304f9fd00da04 SHA512 d7ffc5578ef927219028643220baa674da0f09642769183e1eb8c29a48efa99d5fdade4d763f3602a4c2fb6da8e29d49a820ee1fcbe7bef7c90fdc462d773305 +EBUILD geany-plugins-1.38-r5.ebuild 3175 BLAKE2B fe5ff1db7c4186578dc23a45153df0baa490f6448727ebd11fc841ccdea3009253a698997332633bf739cd7289fa1bef00c190d842b752336a655eab986cb7c5 SHA512 c0e1e867c78d8be62ab26fb9d6287f8d393ce98b01038f7212c8c468e98cb4524b607bf2c386cbc6a285af7d8309362029dcddb61bf88c4d667ef550e46a5abd MISC metadata.xml 1201 BLAKE2B 4ee72164edb11f331607e02bc93f143214ca497d7ef461e6bb621d1dae99d128bc2243ec712707d63a935969bdacc6309ce4edb5d4f30eda08b2827c8674aa79 SHA512 5180861ae35b043f48125ac03dc6f28864f83186c84b6a3b0111da3b264537553ddb296e960dd2bbb8b7626b8bb842e4ff76931837210d39ab885213608ef51a diff --git a/dev-util/geany-plugins/geany-plugins-1.38-r4.ebuild b/dev-util/geany-plugins/geany-plugins-1.38-r5.ebuild index c70586bd1c68..7f84f12c63f3 100644 --- a/dev-util/geany-plugins/geany-plugins-1.38-r4.ebuild +++ b/dev-util/geany-plugins/geany-plugins-1.38-r5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -31,7 +31,7 @@ DEPEND=" gtkspell? ( app-text/gtkspell:3= ) lua? ( ${LUA_DEPS} ) markdown? ( - app-text/discount + app-text/discount:= net-libs/webkit-gtk:4 ) pretty-printer? ( dev-libs/libxml2:2 ) diff --git a/dev-util/maturin/Manifest b/dev-util/maturin/Manifest index 6020d03bebea..cd44b48dfb27 100644 --- a/dev-util/maturin/Manifest +++ b/dev-util/maturin/Manifest @@ -513,6 +513,6 @@ DIST zip-0.6.2.crate 60077 BLAKE2B 3353cb0b8557ad1f16f3a3964a5c6d992bd044eebe385 DIST zip-0.6.3.crate 61785 BLAKE2B aa59cfa836cdac9cda7e5423cf7146a8fa2be74a4a2f7853b9a8e272bffc10cc8d81a2a1bba2466ceaf16995974d7d2699609ecfb0c7ed2861d64261dcbb0db3 SHA512 b19fd29c8a212f61b6c1810dfef7514d3f346c4589a35b18e8113b864d6bb612342c0bcbffb56dc0f36efc29149b8454b6a5a7ef4db5c13614ab761e18d1bd01 DIST zvariant-2.10.0.crate 64374 BLAKE2B 65f5ec09b812217b2d96f57fcaca7fba97545dc715b1395cafe6386553a52e9a72d08c3a599bc08d5f563ea71324f1e7d60db2797c3ad1ad23a9c322a3939346 SHA512 48227afe709c1cc54cb70b4d9ae26e7f836559b4b11a68136d7720d01bacf757c1f5f40cad9de634fa27e196e4942df69c33a7de1334bb23ca995ea34690c5ba DIST zvariant_derive-2.10.0.crate 8746 BLAKE2B 8408e6689f6f849d37d0ade5549dbac25a01a8ef6de5692290f24462e0984128fb5b1d72e87e94e4c422896d68f9acaa382ca6af57f47f470448894a85071b1a SHA512 ba06d0761de8e20839246517d89494e5728fd654cf95eec193a4ca4cdb90090542bbfd7ed0ffbc9fc44edda38c5270139f54e63cb88d09f6c26b39199ea1deec -EBUILD maturin-0.13.7.ebuild 9180 BLAKE2B 2147eee0ca4fba6e4301160e1880c7ad93df76d2c7167c30e8b7b2c32c9a5b55788b461809bc1847603736cc492cfb3b153fd22efaa4ba944631553dc25bd2be SHA512 32e2d5174da81bcda46142d7d4497793098f7fe27d817891f4340b44bff4bddd788d27512e45cffd4a17c47017ab8e6c951cf9b56519e6eb8db0161901f8765b -EBUILD maturin-0.14.10.ebuild 10329 BLAKE2B 392dfe24e1e1fbe753e0a00ea92fc2b0bb08b943694ad8f552700c50aa3c562631c3347dd4006d6ea21cae03edd166ae72d2de1db6fbb4e3f80ff40b03991934 SHA512 724060f434608405388bc7f3ed372d3ccaf5bcecefa1cb02fc75ee34532f7c5ff9c73572ec61fdc97b1ef5689fd53cba6bb4fce2e26c7f4e5400b14a8f9ee9c6 +EBUILD maturin-0.13.7.ebuild 9184 BLAKE2B 7e26cb06aaa27fe269e9d5b49fd39b83ce4926ad6ca8e10be751583281949b5ef5a6fc2c224ecf8544f6b52df181eed5267cf296015228ebd96e8bb80e4c0e9c SHA512 07500f4c3178d5303994d9c5c216fe9f5771e4a47b1cf7dece4ecae5040f6091d8aff51f71cf1af7693fdd8fdcd225701addab6a91e1866c16e4a2860671cab2 +EBUILD maturin-0.14.10.ebuild 10333 BLAKE2B 404f20d72b3221023669595cd13a6b95462aafa6ad635f277091ccbdd5f474d3a9e5063dd901af304ff85047acf88767ea49fb0ef1a9e20601522db3997d8c0c SHA512 b7ad05f7012eca448d72df18b2c63cfb6d2b4a6acb70b84d30afc709177deb9f650f344456c2fd9023aa999259d42bdf81bba5ed43aa8f70cadc1323261aa7c7 MISC metadata.xml 581 BLAKE2B 9fd4c9b9ef68199ef36af2d3799e3c16f819e89a2858bbfefbedb35575f5018c44ccf6b851f1bd367adefec1e8e6dc4a817bd431037b2ee8d1c01e3638d81541 SHA512 93e477343b707475d8b5bd043575a047e7247998e62daaed232216a9a3bfaa9dcae0ac02ec8489e847018495b31f9ef1811d528498e0e129dde99b06712ef7f7 diff --git a/dev-util/maturin/maturin-0.13.7.ebuild b/dev-util/maturin/maturin-0.13.7.ebuild index ceabfdc359e0..e44fc75b695c 100644 --- a/dev-util/maturin/maturin-0.13.7.ebuild +++ b/dev-util/maturin/maturin-0.13.7.ebuild @@ -349,7 +349,7 @@ PYTHON_COMPAT=( pypy3 python3_{9..11} ) inherit cargo distutils-r1 flag-o-matic DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi bindings" -HOMEPAGE="https://maturin.rs/" +HOMEPAGE="https://www.maturin.rs/" SRC_URI=" https://github.com/PyO3/maturin/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz $(cargo_crate_uris) diff --git a/dev-util/maturin/maturin-0.14.10.ebuild b/dev-util/maturin/maturin-0.14.10.ebuild index 202baa9085d4..46f800e8ed26 100644 --- a/dev-util/maturin/maturin-0.14.10.ebuild +++ b/dev-util/maturin/maturin-0.14.10.ebuild @@ -406,7 +406,7 @@ PYTHON_COMPAT=( pypy3 python3_{9..11} ) inherit cargo distutils-r1 flag-o-matic DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi bindings" -HOMEPAGE="https://maturin.rs/" +HOMEPAGE="https://www.maturin.rs/" SRC_URI=" https://github.com/PyO3/maturin/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz $(cargo_crate_uris) diff --git a/dev-util/umockdev/Manifest b/dev-util/umockdev/Manifest index 4d60d71aab81..c650b3d1585a 100644 --- a/dev-util/umockdev/Manifest +++ b/dev-util/umockdev/Manifest @@ -1,4 +1,6 @@ DIST umockdev-0.17.15.tar.xz 491152 BLAKE2B 40334a0279e81e1af3eb01acafd85c638e8a04af20e4c5b6b64229d89ffcfa231d6ef9e760d24e0cb957fe654252d18dca8579490e52a4c05769163f8a33ac96 SHA512 722339ae0726b00a4ee5fa428f063c5b59f0bad14a8fe24d97276a55dc66c569289c62c4ee5ebdb75a62339444a35468c8c1a33759d76fdf022a1eb4905c0465 +DIST umockdev-0.17.16.tar.xz 491208 BLAKE2B d653e489285437e1111d8841b3628dc3734e799274e9d334b9200c425d8654a18050e9bab7e290dc12ab12f286a4f492219423d1905965a870d843a1809e9ceb SHA512 5d4a094481510f4466e49766512d0959a5a9d9f5a9b7cbd7719bc94e95d9800760482bf3ea2ee97d2138c89680adb4116964688ae13a07e3c1f0ba8e94230584 EBUILD umockdev-0.17.15.ebuild 1250 BLAKE2B ac9a1983a0fc852d73c719d8d9cbae01dbe68bd8d3a9eb6f72bb15cfadac0051994cff38ccfeaad328d2f85c52894aa28088844adfd9825bd01190310d42e7cd SHA512 6ea7fe028f9eba90c1662cf9b238e278282e6c7af6140e2b8dd0d4b76e23d6f1162d15296cb6b3070b11ba009fc13101ebaffc4ad5835537ed02ccdb715a978b +EBUILD umockdev-0.17.16.ebuild 1257 BLAKE2B 2aa1075b14e4cedfd467b51ad86bed524eecb4bd5202ff0d8944b0994f755829b555cc5bbc22f6c5448661f0ae6e40700170dd52a7a41a8df26b71bf10e42ac1 SHA512 82f5eebcfc66c0afdf1a6e6a9d623d13435af9a87dc15d40c646bac3cfdea846fe94f89150228a9a481da4aaff419634fe8a53af12b9a0bc3ff281e45000613c EBUILD umockdev-9999.ebuild 1257 BLAKE2B 2aa1075b14e4cedfd467b51ad86bed524eecb4bd5202ff0d8944b0994f755829b555cc5bbc22f6c5448661f0ae6e40700170dd52a7a41a8df26b71bf10e42ac1 SHA512 82f5eebcfc66c0afdf1a6e6a9d623d13435af9a87dc15d40c646bac3cfdea846fe94f89150228a9a481da4aaff419634fe8a53af12b9a0bc3ff281e45000613c MISC metadata.xml 389 BLAKE2B 83313795741d7a5ece22e39de4d8b138c484a7f298f64d7e87bf44a9c04b6733c80f407ca15eb2b4bd71205eaa51b6b814227f4df730ba77e3b54a27735e7484 SHA512 6aff7de0eb974f8ddc4a7190b06b8e3ad406a410f618935cb0b757fa2bc22b6a33ecf33510ae9fc2d4a03f676905faa5561d030fb5e5065f8dc3e7320820cda1 diff --git a/dev-util/umockdev/umockdev-0.17.16.ebuild b/dev-util/umockdev/umockdev-0.17.16.ebuild new file mode 100644 index 000000000000..b562b894a04d --- /dev/null +++ b/dev-util/umockdev/umockdev-0.17.16.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..11} ) + +inherit meson-multilib python-any-r1 vala + +if [[ ${PV} = 9999* ]]; then + EGIT_REPO_URI="https://github.com/martinpitt/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/martinpitt/umockdev/releases/download/${PV}/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +DESCRIPTION="Mock hardware devices for creating unit tests" +HOMEPAGE="https://github.com/martinpitt/umockdev/" + +LICENSE="LGPL-2.1+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + net-libs/libpcap[${MULTILIB_USEDEP}] + virtual/libudev:=[${MULTILIB_USEDEP}] + >=dev-libs/glib-2.32:2[${MULTILIB_USEDEP}] + >=dev-libs/gobject-introspection-1.32:= +" +DEPEND="${RDEPEND} + test? ( + ${PYTHON_DEPS} + dev-libs/libgudev:=[${MULTILIB_USEDEP}] + ) +" +BDEPEND=" + $(vala_depend) + app-arch/xz-utils + virtual/pkgconfig +" + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + default + vala_setup +} + +multilib_src_configure() { + export VALAC="$(type -P valac-$(vala_best_api_version))" + meson_src_configure +} + +multilib_src_test() { + meson_src_test --no-suite fails-valgrind +} |