From 1b013d9d13c304bf66a4a6c16d272d25bc480b83 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Feb 2023 02:26:51 +0000 Subject: gentoo auto-resync : 22:02:2023 - 02:26:50 --- dev-util/Manifest.gz | Bin 68415 -> 68410 bytes dev-util/intel-graphics-compiler/Manifest | 3 + ...graphics-compiler-1.0.13230.7-spirv-tools.patch | 26 ++++++ .../intel-graphics-compiler-1.0.13230.7.ebuild | 88 +++++++++++++++++++ dev-util/rizin/Manifest | 5 +- .../files/rizin-0.5.0-capstone-include-path.patch | 52 ------------ dev-util/rizin/rizin-0.5.0-r1.ebuild | 93 --------------------- dev-util/rizin/rizin-0.5.1.ebuild | 92 ++++++++++++++++++++ 8 files changed, 211 insertions(+), 148 deletions(-) create mode 100644 dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.13230.7-spirv-tools.patch create mode 100644 dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.13230.7.ebuild delete mode 100644 dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch delete mode 100644 dev-util/rizin/rizin-0.5.0-r1.ebuild create mode 100644 dev-util/rizin/rizin-0.5.1.ebuild (limited to 'dev-util') diff --git a/dev-util/Manifest.gz b/dev-util/Manifest.gz index caae377323d7..9d96dfc140cf 100644 Binary files a/dev-util/Manifest.gz and b/dev-util/Manifest.gz differ diff --git a/dev-util/intel-graphics-compiler/Manifest b/dev-util/intel-graphics-compiler/Manifest index 0d41459849cf..8c470524c8f9 100644 --- a/dev-util/intel-graphics-compiler/Manifest +++ b/dev-util/intel-graphics-compiler/Manifest @@ -1,12 +1,15 @@ AUX intel-graphics-compiler-1.0.11485-include-opencl-c.patch 507 BLAKE2B 1a777971e4db95a7ac719944f8533d7cb045e2092c452af35c2d5fd7e696ec848ed4777e9653f77627e4ca0fe36f4beffc9a39e3c7a13bda7973af6722238857 SHA512 8aaef1aaf0a6cedcd66e55ee8df0d89d40f3827b28243cc434dbbcadb568d8c1317a0968b57ad0b2a88de4479023a00b1b3b9a65fd34105cebe56fdeb3c30f1b AUX intel-graphics-compiler-1.0.12504.5-vectorcompiler.patch 6543 BLAKE2B a3d0daac6434c5b96e57496a8c94973d416f9c8e9a917316adb6245cf016a393c8cef36d324fac3be2fc4e29622270a717f3a2d013965e45142053a46b667404 SHA512 d9e853c60905a5903004538ab22edc8b7275d00313ef5bf6f2975b82da19987c7e739d030bb3203e10bef82f1169723dd4e2d8e09d2034eede95d8affee2b900 +AUX intel-graphics-compiler-1.0.13230.7-spirv-tools.patch 1124 BLAKE2B 41dde36f81227f4d8306ad069492969350de001af6aef17002accbd41a1d7da4a976ee9edff74162b1daeeb5b4a55567ebc32d2de24d7430261512dfd3c99449 SHA512 84db5643791883dca792e6df77d42670055364c571531041f2d3224d4f957aa51215735cc6b996a5ac4d684864ca59c54e65039026eec3d3e06f668f2f1def7c AUX intel-graphics-compiler-1.0.8173-opencl-clang_version.patch 1807 BLAKE2B ec6aac8c78d7584e043a258585cbae6218fd8aa167d853e1eea96313298df7347ab7652ec2bf83199129e07e534d52fcd200858036e3d0af2c4f79ff249104f2 SHA512 1a0db341aab280aa205965dfc82d17b29f681bde76932f8291243afad985523f601c7279b1fb772ebc4d9197e5016941a1ad07cea2b6d7199710a7ee22fd81dc AUX intel-graphics-compiler-1.0.8365-disable-git.patch 1140 BLAKE2B f870def1128c30c3e50a71e9eac39eccbcc9bc798be574324016c6c31ed3a3f82e1499f1aada5a2c475bd6b6c467b1b236635fdd6b5145904bc63dc53f8d75e5 SHA512 d1d53a6f4a47031ec4cdcf3f57c059536ccf571a72929da3d9070487686f91f4202d20c4d626da616250f66b31815b61fafa82b903b1f5157a226ee748097bda AUX intel-graphics-compiler-1.0.9-no_Werror.patch 272 BLAKE2B 079fe334413dfddb7681940f2a8920a365e8e72526cfc09ea1c7d218e8b19468f80ea9a215be125b441ee5238d7856b8dec02ebfc4bfd76b1850aa9917da35ef SHA512 d3d27943e84e228b480172b4fe91ba9aed8bb1c98700eb8c8beebafb7f1cc6265279031f56181e67eff74f55e1bbc8ee24bdc4d14fc1200c5aff670ef019410d DIST intel-graphics-compiler-1.0.12260.1.tar.gz 8887984 BLAKE2B 626b5f2bd189ba9b2933b9d65227ca1552484f73f7398b2a763744d21a4ea189987e4eb08e9e7f09898fb49568b59a2c45298363495c1759fec9927a95cf4478 SHA512 4223e9c8213c7e6cf3539d955394a0a4a39cb8d2114ce18ccaeeb0b36a91ca6fc6a314fa9d9db24929fa7cd6b86ff8b82f369f35dd80e5df49b23ac9cd3a519b DIST intel-graphics-compiler-1.0.12504.5.tar.gz 8941924 BLAKE2B 6441cc50c2449524c800c73736f8963bc0011c6b87eefa03575cf09d00a8e812c9961bd50fb9801b77452da2d993e76196beb0a2093a249a87d7182e1c1e8707 SHA512 32a94b213a591f9ceb8ca08674c9fb8994b50818c51a6bfd412c4cd30bb9433b938eb7b49ba0afac9f2900a3dcbc7dd79e3e66fb444c7fd5723b6b50c5d1ab89 DIST intel-graphics-compiler-1.0.12812.26.tar.gz 8796229 BLAKE2B 8880f0efa47ea90de403c32a9a66fe0f2d1cd6b71b2c57ea38d01f2836892dc36e4e859b19def015f22eb0415be2ff8999a49256830059499b0ae654482cd21f SHA512 13a9f57cf744c38145e2b3d45099a6d54b6d792780dc3a2ab352484975c899f1a5c4f6072c96e786ce3bdf4690bdcf04cecebcf56f9bef4409e3cc3f27ec8458 +DIST intel-graphics-compiler-1.0.13230.7.tar.gz 8813719 BLAKE2B 5cc6ef816b030d786dfcf6296b39f6c2bfcc9db4c4a12db84456a508bd7d8998d4dfc9e6993e05167a3f797287176dda31e5fd43bbc3284fa26d4c8ca89f6164 SHA512 774f62ff8f5b7bd95fd766c88bc62ff66498c23d020dbfdfd18734e532e7d701652325cb7aca00f7ab3cfdd051d37e56939d7978db127e9044cd5b6c077979ac EBUILD intel-graphics-compiler-1.0.12260.1-r1.ebuild 2502 BLAKE2B d71fff183834eb157c9f655858f8694cc8dab919330c973cd2e680e62b7a4e12f9d7034df5f4f49c24db751e74dca31abb39e1b3b9cb058d665889cf4a372ca0 SHA512 3b7a2e670fbd325c28be1f201b6b04289d53ccd9d7f430e32726909e0c2b32f6a6ed39cf7498fe5c7130930ea90f43f7003d341f1fc376818ffc74fd55073ec9 EBUILD intel-graphics-compiler-1.0.12504.5-r2.ebuild 2545 BLAKE2B 10cf449debd7a1971ac8dfe583110dca2116e2b499033e086a9ebc70c0f31145f9311db289b6a1d361b1c78b28d52b9c4e9e2a6380ea22698c38a4c6987c7ccd SHA512 46b3fdd179183635c0d51435c87bc97f3962e6a92346dc465e413598fca52322693e8aad32d066f01651dc61b82aa0169bf87d16c094504604c22ce1e6f692c5 EBUILD intel-graphics-compiler-1.0.12812.26-r1.ebuild 2546 BLAKE2B 11eceb3f39ff375f6f5e8d52efe3cb7bb5b058800b64e0839f3df4bb6361d9aa5163beaf828fe1deb166ffe0d948ac72b1766bf502f119f009a4df85619370fa SHA512 a0bfb1a06f71e53b57f4ecf8dc65a8530ffa80a2cc57e1922f078e3d5028be763478080cd8a073541eae4d3415dd9f3482de116bb9d56a717386b43aab305730 +EBUILD intel-graphics-compiler-1.0.13230.7.ebuild 2543 BLAKE2B 97ab198c044ba103224f22d579fe2f937723aa929b0ca87d58f78c73e3df536e1f9184153d3fc1deca42130c798ae0039e5657ec7d8cdd7e17e788da06bfe8c4 SHA512 6088e6c373738ce726590c2f6b508139484b7be3e0eb891f6229f07754c7f3b070f25390f5fbca6fba732a956b51ff874a5e6177e1712dfaffb2a2c537dddb25 MISC metadata.xml 682 BLAKE2B c5e74bbb1a5aca5eed7cb75a19820dc9d78d7ef7a15687924d16863a82a535403ca67103ac458d4b86f380244e726a3bd20fb496f8048f999abdf89950a7092c SHA512 d5a35d2104e9aa5caaf903a9f61ca8a8c4f8b5bff3e993c9964dd63196e64b88e3e7bde2e0cff9dcee9c66bdda0cabb43c5ac8c121796626bb0e7f4013929fb3 diff --git a/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.13230.7-spirv-tools.patch b/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.13230.7-spirv-tools.patch new file mode 100644 index 000000000000..d33f9eb2021f --- /dev/null +++ b/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-1.0.13230.7-spirv-tools.patch @@ -0,0 +1,26 @@ +From 8068732355d18464a9fcb6846c225929349b450c Mon Sep 17 00:00:00 2001 +From: Jakub Czarnecki +Date: Thu, 26 Jan 2023 11:35:03 +0000 +Subject: [PATCH] Preinstalled SPIRV-Tools CMakeFile - target fix + +Added checking if SPIRV-Tools isn't already set as target before adding +it as a custom target to avoid errors. +--- + external/SPIRV-Tools/CMakeLists.txt | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/external/SPIRV-Tools/CMakeLists.txt b/external/SPIRV-Tools/CMakeLists.txt +index 9afa5746c4d..3b768c1b772 100644 +--- a/external/SPIRV-Tools/CMakeLists.txt ++++ b/external/SPIRV-Tools/CMakeLists.txt +@@ -33,7 +33,9 @@ if(IGC_OPTION__SPIRV_TOOLS_MODE STREQUAL PREBUILDS_MODE_NAME) + set(IGC_BUILD__SPIRV-Tools_DIR "${SPIRV-Tools_ROOT_DIR}") + + set(INCLUDE_DIRS_LIST "${SPIRV-Tools_ROOT_DIR}/include" "${SPIRV-Headers_INCLUDE_DIR}") +- add_custom_target(SPIRV-Tools) ++ if(NOT TARGET SPIRV-Tools) ++ add_custom_target(SPIRV-Tools) ++ endif() + set_target_properties(SPIRV-Tools PROPERTIES INCLUDE_DIRECTORIES "${INCLUDE_DIRS_LIST}") + set(IGC_BUILD__PROJ__SPIRV-Tools SPIRV-Tools) + diff --git a/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.13230.7.ebuild b/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.13230.7.ebuild new file mode 100644 index 000000000000..4a48c5cff382 --- /dev/null +++ b/dev-util/intel-graphics-compiler/intel-graphics-compiler-1.0.13230.7.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_BUILD_TYPE="Release" +LLVM_MAX_SLOT="14" +MY_PN="igc" +MY_P="${MY_PN}-${PV}" +PYTHON_COMPAT=( python3_{9..11} ) + +inherit cmake flag-o-matic llvm python-any-r1 + +DESCRIPTION="LLVM-based OpenCL compiler for OpenCL targetting Intel Gen graphics hardware" +HOMEPAGE="https://github.com/intel/intel-graphics-compiler" +SRC_URI="https://github.com/intel/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug vc" + +DEPEND=" + dev-libs/opencl-clang:${LLVM_MAX_SLOT}= + dev-util/spirv-tools + sys-devel/lld:${LLVM_MAX_SLOT}= + sys-devel/llvm:${LLVM_MAX_SLOT}= + vc? ( + >=dev-libs/intel-vc-intrinsics-0.11.0 + dev-util/spirv-llvm-translator:${LLVM_MAX_SLOT}= + ) +" + +RDEPEND="${DEPEND}" + +BDEPEND=" + =sys-devel/lld-${LLVM_MAX_SLOT}* + ${PYTHON_DEPS} +" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.9-no_Werror.patch" + "${FILESDIR}/${PN}-1.0.8173-opencl-clang_version.patch" + "${FILESDIR}/${PN}-1.0.8365-disable-git.patch" + "${FILESDIR}/${PN}-1.0.11485-include-opencl-c.patch" + "${FILESDIR}/${PN}-1.0.13230.7-spirv-tools.patch" +) + +pkg_setup() { + llvm_pkg_setup + python-any-r1_pkg_setup +} + +src_configure() { + # Get LLVM version + local llvm_version="$(best_version -d sys-devel/llvm:${LLVM_MAX_SLOT})" + local llvm_version="${llvm_version%%-r*}" + + # See https://github.com/intel/intel-graphics-compiler/issues/212 + append-ldflags -Wl,-z,undefs + + # See https://bugs.gentoo.org/718824 + ! use debug && append-cppflags -DNDEBUG + + local mycmakeargs=( + -DCCLANG_INCLUDE_PREBUILDS_DIR="/usr/lib/clang/${llvm_version##*-}/include" + -DCCLANG_SONAME_VERSION="${LLVM_MAX_SLOT}" + -DCMAKE_LIBRARY_PATH="$(get_llvm_prefix ${LLVM_MAX_SLOT})/$(get_libdir)" + -DIGC_BUILD__VC_ENABLED="$(usex vc)" + -DIGC_OPTION__ARCHITECTURE_TARGET="Linux64" + -DIGC_OPTION__CLANG_MODE="Prebuilds" + -DIGC_OPTION__LINK_KHRONOS_SPIRV_TRANSLATOR="ON" + -DIGC_OPTION__LLD_MODE="Prebuilds" + -DIGC_OPTION__LLDELF_H_DIR="${EPREFIX}/usr/include/lld/Common" + -DIGC_OPTION__LLVM_MODE="Prebuilds" + -DIGC_OPTION__LLVM_PREFERRED_VERSION="${llvm_version##*-}" + -DIGC_OPTION__SPIRV_TOOLS_MODE="Prebuilds" + -DIGC_OPTION__SPIRV_TRANSLATOR_MODE="Prebuilds" + -DIGC_OPTION__USE_PREINSTALLED_SPRIV_HEADERS="ON" + $(usex vc '-DIGC_OPTION__VC_INTRINSICS_MODE=Prebuilds' '') + -DINSTALL_GENX_IR="ON" + -DSPIRVLLVMTranslator_INCLUDE_DIR="${EPREFIX}/usr/lib/llvm/${LLVM_MAX_SLOT}/include/LLVMSPIRVLib" + -Wno-dev + ) + + cmake_src_configure +} diff --git a/dev-util/rizin/Manifest b/dev-util/rizin/Manifest index ada25b44a688..4bb4cdf66847 100644 --- a/dev-util/rizin/Manifest +++ b/dev-util/rizin/Manifest @@ -1,9 +1,8 @@ AUX rizin-0.4.0-never-rebuild-parser.patch 1568 BLAKE2B c77276adb8349188ebc937d84b011650b978ba5bed6c0596258963d395014c5e0733e44930b4c2db6dd88941d99b2aa37acf461d035fc31dcd321571ef0d6392 SHA512 a46311772dc42b90b8e3e49ddb66f6d64873773e254ac943934de0129d5f4a77ccb759d20b519b58418d45c076f136d582f2e70056693c75b2f6aae19eb07551 -AUX rizin-0.5.0-capstone-include-path.patch 1783 BLAKE2B 32d172b6dae3e4c7c740c2a5e3aaa9aa8a97d6ca9b3b96f21501cb1e3bd2381951733ccb08291944ecb37b19b14e9b54233bcf4b338e1e811117ff95fb897281 SHA512 9a1b7847ea0ef04318a8ae6568b9a4fb7d5ce9a28649dcbdb1e1bcb1f612e31b5e484738b77a2790a7f3b77a0b2ed965b0d58a65673cccf012d3d03e4f5958af DIST rizin-src-v0.4.1.tar.xz 11453808 BLAKE2B dcae21320e2533904d9a337d4fb9cc9a450439753106dc5c341e3ca7c788f0a44034340eb0dfe3fad4f1d8a7ebe873720d42d70ce343e8c7b953d4d148a38da2 SHA512 565358e11fd4db44ec7f8c25313a1cfc726c38a17afcb699c3fc2af520242fb343ea4a267f0a8e35bdc08e9a765a6a17ec7b8eaba9f9ad9ef5a7dcfe01c7354c -DIST rizin-src-v0.5.0.tar.xz 11774892 BLAKE2B ae64f2b14829eaedeff2e4ef9986778e311edddff7aac7b9a05a84d09015e13e67725e170d79f1f6bc85933726631ad76df2986e5c8fa64f3387418099296c2f SHA512 690a3220b808d41bcf56752556233d0d0b68b458c767441ce74f35358b2b4fa5e46a483a220d635e53bd287a0e10d16e5c141ba5cb916b984683f42eef10fcff +DIST rizin-src-v0.5.1.tar.xz 11770688 BLAKE2B 31369497d5aa425aa6030ce404baa5d4a10ef2453a93f9b2c9f7d47135b5ffbc61618ef7e743acef3939bca2838a94637b7a1794ff44998608aee3f988301483 SHA512 c856112651bec91bb6e9f5580f60e3168f02a9f194bf567186a66398c162f59953ca8c3bf43441315356ca6ef077b7c56e4150e2dd8a79d4d08c5f789c549596 DIST rizin-testbins-0264ae4ee5bd606ec6c6a539255eeb57ce2c82c2.tar.gz 179281553 BLAKE2B b86278589da2f8e5859b0f4b16e2667a6e7477c9a889158da5a2c1a1b6e29af4798d56a22dd4c3e23aec1908e7b444ca999502e73f8d8ccf4e0bf2a969380564 SHA512 ae11b6da5cb995f8f1cc996a7b772234b3e7e7c2b0695d0b223657ba839c82dbbcb390600aeb0d16c7c61a5037ba9d0739df79efd730c1b96392cfc1e6f6613d DIST rizin-testbins-aef7f7b714a696f382f55b8cbbf94c5b69518de3.tar.gz 178497762 BLAKE2B 8c82a537a58e65d35bd8b309311c4377b5996ff4b650fc6cff4cf347e04fbe4b2ec0e88f03ff43572c8e99675186b05b393b7da070a60ab107c3cca829d2544b SHA512 2745b58646963c28a45b46e8e709845c355863e61cf796aeb3d2e617f1bf2f9916a4b106cd08f48b1ef6e36f7f38624b5977dcd62c921124b0a1122b7220baa8 EBUILD rizin-0.4.1.ebuild 2441 BLAKE2B 6b93beab0b3f394b243039551c66a27cf498a7943cab90063d12d31e2349d478cbce12795ed724fd51393c1ce4e944f550e73279a52bcba7a3528370371b9d20 SHA512 ead851e780e6d3c0ce5e8c16789e182b62dab1631fabcebd96f17b0e0c449ae48b5c3caac1c0d1bfb7e7d2dadcaf0a6b16757b26991fe5f7647d7dd349bcb85b -EBUILD rizin-0.5.0-r1.ebuild 2312 BLAKE2B db3d8a1070f9582988397c46a1cad1cf48db3a839695e5e5f2cb582782532c1ebe55f14d1238ca9d7139f37c1097169db24b926c1605c1f7b71d32cf2ac37c37 SHA512 ede920acd54d86b1cd8e8e48b526646b5d7ac4950f08f7c1618a26d95ff66f470f1a66ddfbd18a060bea58c2f919634ce781cfc768ac9d8a3ae8b9be0e2b343d +EBUILD rizin-0.5.1.ebuild 2257 BLAKE2B 89f5228616e446b6bc3025df6fefec518418eae68364b9194f4b9132048f185505ee7ea378d0e120544fd07506a017eb73f028331780bd2d0742a9f9340edd77 SHA512 a47a95b794adb555ab901b044ea78f2b27819a4b8618b457d26f6017435caaad3b68b6b5f621b770e9ed7a9d02307d7d0ae969663c7215949d310d16cb778250 MISC metadata.xml 427 BLAKE2B 2937970e78526f69e371b4451a3406b1fdc35a01707d366e8b54e23f9d13e8a713254902825ae111817ee00ea3aaf3bc968db8b6d944b15f869e2b89ba8e16b8 SHA512 65cc9c4cd5f2f64cd02e89b0f7f4972fefec51cb175650625da263b729022587c9487e9ab9faed8517200ed622a8ca5ec35b2b6f4c67966d78344c043197c981 diff --git a/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch b/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch deleted file mode 100644 index 485a131cf483..000000000000 --- a/dev-util/rizin/files/rizin-0.5.0-capstone-include-path.patch +++ /dev/null @@ -1,52 +0,0 @@ -Upstreamed at: https://github.com/rizinorg/rizin/pull/3380 - -commit e1a65044139443c43a14c8304d095d9d6cddae56 -Author: John Helmert III -Date: Sat Feb 18 18:22:42 2023 -0600 - - fix capstone include paths - - capstone include paths were adjusted in - 2b8104bc5e763ed841d6dbffacbeaf02e86b8421, and this wasn't picked up in - the "PPC uplifting" commit, leading to a build failure with system - capstone. - - Also fix the path of the ppc.h include, which seems to mistakenly use - capstone's ppc.h when building with bundled capstone. - - Fixes: b46e7bd4f2 ("PPC uplifting to RzIL (#2823)") - Signed-off-by: John Helmert III - -diff --git a/librz/analysis/arch/ppc/ppc_il.h b/librz/analysis/arch/ppc/ppc_il.h -index ee91eb050b..7871414cef 100644 ---- a/librz/analysis/arch/ppc/ppc_il.h -+++ b/librz/analysis/arch/ppc/ppc_il.h -@@ -9,7 +9,7 @@ - #include - #include - #include --#include -+#include - - #define PPC_BYTE 8 - #define PPC_HWORD 16 -diff --git a/librz/analysis/arch/ppc/ppc_il_ops.c b/librz/analysis/arch/ppc/ppc_il_ops.c -index f7a2261093..31a730c009 100644 ---- a/librz/analysis/arch/ppc/ppc_il_ops.c -+++ b/librz/analysis/arch/ppc/ppc_il_ops.c -@@ -1,13 +1,13 @@ - // SPDX-FileCopyrightText: 2022 Rot127 - // SPDX-License-Identifier: LGPL-3.0-only - --#include "ppc.h" -+#include "opcode/ppc.h" - #include "ppc_il.h" - #include "ppc_analysis.h" - #include "rz_types_base.h" - #include - #include --#include -+#include - #include - - static RzILOpEffect *load_op(RZ_BORROW csh handle, RZ_BORROW cs_insn *insn, const cs_mode mode) { diff --git a/dev-util/rizin/rizin-0.5.0-r1.ebuild b/dev-util/rizin/rizin-0.5.0-r1.ebuild deleted file mode 100644 index 7144a4dcffb4..000000000000 --- a/dev-util/rizin/rizin-0.5.0-r1.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..11} ) - -# This is the commit that the CI for the release commit used -BINS_COMMIT="0264ae4ee5bd606ec6c6a539255eeb57ce2c82c2" - -inherit meson python-any-r1 - -DESCRIPTION="reverse engineering framework for binary analysis" -HOMEPAGE="https://rizin.re/" - -SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz - test? ( https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> rizin-testbins-${BINS_COMMIT}.tar.gz )" -KEYWORDS="~amd64 ~arm64 ~x86" - -LICENSE="Apache-2.0 BSD LGPL-3 MIT" -SLOT="0/${PV}" -IUSE="test" - -# Need to audit licenses of the binaries used for testing -RESTRICT="test? ( fetch ) !test? ( test )" - -RDEPEND=" - app-arch/lz4:0= - app-arch/xz-utils - dev-libs/capstone:0= - dev-libs/libmspack - dev-libs/libzip:0= - dev-libs/openssl:0= - >=dev-libs/tree-sitter-0.19.0 - dev-libs/xxhash - sys-apps/file - sys-libs/zlib:0= -" -DEPEND="${RDEPEND}" -BDEPEND="${PYTHON_DEPS}" - -PATCHES=( - "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch" - "${FILESDIR}/${PN}-0.5.0-capstone-include-path.patch" -) - -S="${WORKDIR}/${PN}-v${PV}" - -src_prepare() { - default - - local py_to_mangle=( - librz/core/cmd_descs/cmd_descs_generate.py - sys/clang-format.py - test/fuzz/scripts/fuzz_rz_asm.py - test/scripts/gdbserver.py - ) - - python_fix_shebang "${py_to_mangle[@]}" - - if use test; then - cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die - cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die - fi -} - -src_configure() { - local emesonargs=( - -Dcli=enabled - -Duse_sys_capstone=enabled - -Duse_sys_libmspack=enabled - -Duse_sys_libzip=enabled - -Duse_sys_lz4=enabled - -Duse_sys_lzma=enabled - -Duse_sys_magic=enabled - -Duse_sys_openssl=enabled - -Duse_sys_tree_sitter=enabled - -Duse_sys_xxhash=enabled - -Duse_sys_zlib=enabled - - $(meson_use test enable_tests) - $(meson_use test enable_rz_test) - ) - meson_src_configure -} - -src_test() { - # We can select running either unit or integration tests, or all of - # them by not passing --suite. According to upstream, integration - # tests are more fragile and unit tests are sufficient for testing - # packaging, so only run those. - meson_src_test --suite unit -} diff --git a/dev-util/rizin/rizin-0.5.1.ebuild b/dev-util/rizin/rizin-0.5.1.ebuild new file mode 100644 index 000000000000..122296d19b05 --- /dev/null +++ b/dev-util/rizin/rizin-0.5.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +# This is the commit that the CI for the release commit used +BINS_COMMIT="0264ae4ee5bd606ec6c6a539255eeb57ce2c82c2" + +inherit meson python-any-r1 + +DESCRIPTION="reverse engineering framework for binary analysis" +HOMEPAGE="https://rizin.re/" + +SRC_URI="mirror+https://github.com/rizinorg/rizin/releases/download/v${PV}/rizin-src-v${PV}.tar.xz + test? ( https://github.com/rizinorg/rizin-testbins/archive/${BINS_COMMIT}.tar.gz -> rizin-testbins-${BINS_COMMIT}.tar.gz )" +KEYWORDS="~amd64 ~arm64 ~x86" + +LICENSE="Apache-2.0 BSD LGPL-3 MIT" +SLOT="0/${PV}" +IUSE="test" + +# Need to audit licenses of the binaries used for testing +RESTRICT="test? ( fetch ) !test? ( test )" + +RDEPEND=" + app-arch/lz4:0= + app-arch/xz-utils + dev-libs/capstone:0= + dev-libs/libmspack + dev-libs/libzip:0= + dev-libs/openssl:0= + >=dev-libs/tree-sitter-0.19.0 + dev-libs/xxhash + sys-apps/file + sys-libs/zlib:0= +" +DEPEND="${RDEPEND}" +BDEPEND="${PYTHON_DEPS}" + +PATCHES=( + "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch" +) + +S="${WORKDIR}/${PN}-v${PV}" + +src_prepare() { + default + + local py_to_mangle=( + librz/core/cmd_descs/cmd_descs_generate.py + sys/clang-format.py + test/fuzz/scripts/fuzz_rz_asm.py + test/scripts/gdbserver.py + ) + + python_fix_shebang "${py_to_mangle[@]}" + + if use test; then + cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}/test/bins" || die + cp -r "${WORKDIR}/rizin-testbins-${BINS_COMMIT}" "${S}" || die + fi +} + +src_configure() { + local emesonargs=( + -Dcli=enabled + -Duse_sys_capstone=enabled + -Duse_sys_libmspack=enabled + -Duse_sys_libzip=enabled + -Duse_sys_lz4=enabled + -Duse_sys_lzma=enabled + -Duse_sys_magic=enabled + -Duse_sys_openssl=enabled + -Duse_sys_tree_sitter=enabled + -Duse_sys_xxhash=enabled + -Duse_sys_zlib=enabled + + $(meson_use test enable_tests) + $(meson_use test enable_rz_test) + ) + meson_src_configure +} + +src_test() { + # We can select running either unit or integration tests, or all of + # them by not passing --suite. According to upstream, integration + # tests are more fragile and unit tests are sufficient for testing + # packaging, so only run those. + meson_src_test --suite unit +} -- cgit v1.2.3