diff options
Diffstat (limited to 'dev-util/bpftrace')
-rw-r--r-- | dev-util/bpftrace/Manifest | 6 | ||||
-rw-r--r-- | dev-util/bpftrace/bpftrace-0.15.0-r2.ebuild (renamed from dev-util/bpftrace/bpftrace-0.15.0-r1.ebuild) | 1 | ||||
-rw-r--r-- | dev-util/bpftrace/bpftrace-0.16.0.ebuild | 5 | ||||
-rw-r--r-- | dev-util/bpftrace/files/bpftrace-0.15.0-llvm-15-pointers.patch | 30 | ||||
-rw-r--r-- | dev-util/bpftrace/files/bpftrace-0.16.0-link.patch | 0 |
5 files changed, 38 insertions, 4 deletions
diff --git a/dev-util/bpftrace/Manifest b/dev-util/bpftrace/Manifest index 47e0042e1c2a..b964f5a407aa 100644 --- a/dev-util/bpftrace/Manifest +++ b/dev-util/bpftrace/Manifest @@ -3,11 +3,11 @@ AUX bpftrace-0.15.0-bcc-025.patch 3192 BLAKE2B a72790e25963342b2eed5c2b9fd41bd22 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-link.patch 0 BLAKE2B 786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce SHA512 cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e 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 DIST bpftrace-0.16.0.gh.tar.gz 1023480 BLAKE2B 20fa877adeaada655462004142a80f107f82a3fa73fd7a7675a477d45ecd3a28115af5d612da2b06e2d760cfa3e574583e4cc4d62f4175c49ecc9d9b3fcceb6e SHA512 52ca4fea4e2f8d2cbf0f9f1bc69af0ee3408201f019006dd2e838b9458cfc01761eba3df24c39e05cf93220d85d0cecc69bb44ec72f9f44cec0eb94479bff734 -EBUILD bpftrace-0.15.0-r1.ebuild 1971 BLAKE2B 1276fff10465ee92d894df3661284cc9c20e3e5d7c5b09a7a7a81629f90b34daf311f16a9d39130c1006254f1b1e8407cf37ea063c2bd2257335ebd4fafabec2 SHA512 39e5b3bd165e95f6e3d1a8cf24203e3b2df28972b33df5ac4f959b9b6728321025a7d5931116f19b14b3362a7759904b1d849e956c30542c08afc7049ab0471d -EBUILD bpftrace-0.16.0.ebuild 1731 BLAKE2B b37adb74314d675397d223c2d30a0d9f9da661cbc018e698f177fab9c3d6ccf01d0c0fff543bc33f634d977d6d0db21065993efd5606c49305884adccb655ad7 SHA512 60546892703e9cb0730c58705c65c8c3934e4a01932dd8b1a843277c300d99b32ad64698bc31bab297ca873a52fc1b85144a3d68f03adb4dc72ae29178d7443f +EBUILD bpftrace-0.15.0-r2.ebuild 2025 BLAKE2B aeb49affb4e4f45ec1fb29527dc3f1f4a935073c75ff44e1af64729dde1343eb1587836c693a2c54dcf9821e8b61e6ddc2ee3da62f7896dcae666a1620f5a29b SHA512 ddd65b11dbb5c8e5b060b5f06645818501ef8d64c230b6ea4213023570f66cf8fbdd6bf294f63fd7fa2dcff68ec11bd41f42f07088b08ba8e9481c9ed3c84f72 +EBUILD bpftrace-0.16.0.ebuild 1820 BLAKE2B b272c6bc366e46ccbe06980822b04f259016a62ab3c8ccffe9e7a2c854ff9fb86a99d3d16f1af84c4e76c456345fde6af89f48ac23dcc192e7394be12b833e00 SHA512 83b550c3106d75b3106a9b6a740fa56cbcc7d783167d319dfe678553ddf045e495e5a6707b6aefd1bbfb3a1f8ef890a31bcf4102a0bec526f11d9521d8d2ece6 MISC metadata.xml 499 BLAKE2B ce7c46f4c5e49f2f779ff6584053f7fc78dffaeee432ac46a8881b3d49dc569e309af95aaf9d6e77a36ebc87be0cd2f86a5db7b733463e4252d3a242d914f293 SHA512 dfb827afd47feb8204ef40c940ebcc7d1b3217cdf0f24425e4ab32195309d727225e942d777871565e47a2c02244d053f46ed25165e9728c94e0683ff61bf4ce diff --git a/dev-util/bpftrace/bpftrace-0.15.0-r1.ebuild b/dev-util/bpftrace/bpftrace-0.15.0-r2.ebuild index 566a14a29b4a..1095ed8e6fd3 100644 --- a/dev-util/bpftrace/bpftrace-0.15.0-r1.ebuild +++ b/dev-util/bpftrace/bpftrace-0.15.0-r2.ebuild @@ -54,6 +54,7 @@ PATCHES=( "${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() { diff --git a/dev-util/bpftrace/bpftrace-0.16.0.ebuild b/dev-util/bpftrace/bpftrace-0.16.0.ebuild index b6ef7864928b..6f9fca048fd6 100644 --- a/dev-util/bpftrace/bpftrace-0.16.0.ebuild +++ b/dev-util/bpftrace/bpftrace-0.16.0.ebuild @@ -15,7 +15,10 @@ S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" + +# remove keywords until build works: +# https://github.com/iovisor/bpftrace/issues/2349 +#KEYWORDS="~amd64 ~arm64 ~x86" IUSE="fuzzing test" # lots of fixing needed diff --git a/dev-util/bpftrace/files/bpftrace-0.15.0-llvm-15-pointers.patch b/dev-util/bpftrace/files/bpftrace-0.15.0-llvm-15-pointers.patch new file mode 100644 index 000000000000..51ea034b9a88 --- /dev/null +++ b/dev-util/bpftrace/files/bpftrace-0.15.0-llvm-15-pointers.patch @@ -0,0 +1,30 @@ + +From: https://github.com/iovisor/bpftrace/pull/2367 +Bug: https://bugs.gentoo.org/872842 + +From 07fa48a94ef6d6bb1f335de345de18fe9776ca57 Mon Sep 17 00:00:00 2001 +From: kenneth topp <toppk@bllue.org> +Date: Mon, 26 Sep 2022 00:33:29 -0400 +Subject: [PATCH] Workaround OpaquePointers for LLVM 15 + +This workaround allows bpftrace to be compiled against +LLVM-15. This will have to be address properly before LLVM-16 +More details from LLVM here: https://llvm.org/docs/OpaquePointers.html +--- + src/ast/irbuilderbpf.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/ast/irbuilderbpf.cpp b/src/ast/irbuilderbpf.cpp +index d49883f786..00f0f172ff 100644 +--- a/src/ast/irbuilderbpf.cpp ++++ b/src/ast/irbuilderbpf.cpp +@@ -123,6 +123,9 @@ IRBuilderBPF::IRBuilderBPF(LLVMContext &context, + module_(module), + bpftrace_(bpftrace) + { ++#if LLVM_VERSION_MAJOR == 15 ++ context.setOpaquePointers(false); ++#endif + // Declare external LLVM function + FunctionType *pseudo_func_type = FunctionType::get( + getInt64Ty(), diff --git a/dev-util/bpftrace/files/bpftrace-0.16.0-link.patch b/dev-util/bpftrace/files/bpftrace-0.16.0-link.patch deleted file mode 100644 index e69de29bb2d1..000000000000 --- a/dev-util/bpftrace/files/bpftrace-0.16.0-link.patch +++ /dev/null |