From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F060D158094 for ; Fri, 8 Jul 2022 19:03:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90BC2E0DE2; Fri, 8 Jul 2022 19:03:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6F19DE0DE2 for ; Fri, 8 Jul 2022 19:03:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CAB07340E3C for ; Fri, 8 Jul 2022 19:03:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2A91E501 for ; Fri, 8 Jul 2022 19:03:27 +0000 (UTC) From: "John Helmert III" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "John Helmert III" Message-ID: <1657306901.fd6ebb9e30ebe13d67386165e6b91ca18b4d6781.ajak@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rizin/, dev-util/rizin/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rizin/files/rizin-0.4.0-capstone.patch dev-util/rizin/rizin-0.4.0-r1.ebuild X-VCS-Directories: dev-util/rizin/files/ dev-util/rizin/ X-VCS-Committer: ajak X-VCS-Committer-Name: John Helmert III X-VCS-Revision: fd6ebb9e30ebe13d67386165e6b91ca18b4d6781 X-VCS-Branch: master Date: Fri, 8 Jul 2022 19:03:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f7b1738e-e9d2-4fc0-9a56-0f908b3cef2c X-Archives-Hash: fdacbe6b321bb9d28ba8de386e9f6984 commit: fd6ebb9e30ebe13d67386165e6b91ca18b4d6781 Author: Mario Haustein hrz tu-chemnitz de> AuthorDate: Thu Jul 7 06:03:17 2022 +0000 Commit: John Helmert III gentoo org> CommitDate: Fri Jul 8 19:01:41 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd6ebb9e dev-util/rizin: remove version constraint for capstone dependency Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Mario Haustein hrz.tu-chemnitz.de> Closes: https://github.com/gentoo/gentoo/pull/26255 Signed-off-by: John Helmert III gentoo.org> dev-util/rizin/files/rizin-0.4.0-capstone.patch | 22 ++++++ dev-util/rizin/rizin-0.4.0-r1.ebuild | 95 +++++++++++++++++++++++++ 2 files changed, 117 insertions(+) diff --git a/dev-util/rizin/files/rizin-0.4.0-capstone.patch b/dev-util/rizin/files/rizin-0.4.0-capstone.patch new file mode 100644 index 000000000000..4132e97095f6 --- /dev/null +++ b/dev-util/rizin/files/rizin-0.4.0-capstone.patch @@ -0,0 +1,22 @@ +From 2b8104bc5e763ed841d6dbffacbeaf02e86b8421 Mon Sep 17 00:00:00 2001 +From: Mario Haustein +Date: Thu, 7 Jul 2022 07:50:10 +0200 +Subject: [PATCH] Fix capstone include directory + +--- + librz/analysis/arch/arm/arm_il64.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/librz/analysis/arch/arm/arm_il64.c b/librz/analysis/arch/arm/arm_il64.c +index 2e9da10aece..6b552596c9e 100644 +--- a/librz/analysis/arch/arm/arm_il64.c ++++ b/librz/analysis/arch/arm/arm_il64.c +@@ -2,7 +2,7 @@ + // SPDX-License-Identifier: LGPL-3.0-only + + #include +-#include ++#include + + #include "arm_cs.h" + diff --git a/dev-util/rizin/rizin-0.4.0-r1.ebuild b/dev-util/rizin/rizin-0.4.0-r1.ebuild new file mode 100644 index 000000000000..b298dce57be7 --- /dev/null +++ b/dev-util/rizin/rizin-0.4.0-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2022 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="64a6f26369bf5893ecc20cb8984a5ad506ef8566" + +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="fetch !test? ( test )" + +RDEPEND=" + sys-apps/file + app-arch/lz4:0= + dev-libs/capstone:0= + dev-libs/libuv:0= + dev-libs/libzip:0= + dev-libs/openssl:0= + >=dev-libs/tree-sitter-0.19.0 + dev-libs/xxhash + sys-libs/zlib:0= +" +DEPEND="${RDEPEND}" +BDEPEND="${PYTHON_DEPS}" + +PATCHES=( + "${FILESDIR}/${PN}-0.4.0-never-rebuild-parser.patch" + "${FILESDIR}/${P}-capstone.patch" +) + +S="${WORKDIR}/${PN}-v${PV}" + +src_prepare() { + default + + local py_to_mangle=( + librz/core/cmd_descs/cmd_descs_generate.py + subprojects/lz4-1.9.3/contrib/meson/meson/GetLz4LibraryVersion.py + subprojects/lz4-1.9.3/contrib/meson/meson/InstallSymlink.py + subprojects/lz4-1.9.3/tests/test-lz4-list.py + subprojects/lz4-1.9.3/tests/test-lz4-speed.py + subprojects/lz4-1.9.3/tests/test-lz4-versions.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_magic=enabled + -Duse_sys_libzip=enabled + -Duse_sys_zlib=enabled + -Duse_sys_lz4=enabled + -Duse_sys_xxhash=enabled + -Duse_sys_openssl=enabled + -Duse_sys_tree_sitter=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 +}