From nobody Fri Feb 18 19:12:59 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8980119C1A0C; Fri, 18 Feb 2022 19:13:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K0hDC708cz4gyR; Fri, 18 Feb 2022 19:12:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645211580; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5cuDL77WvZdDhxSsNRJj3llOAssy23PguzbU89gljkg=; b=w5vW4Fs+rGiY5mEPd5uATX88txnuOkmRN4QYM0s5QKAQwYU3ceoiVqFX0+xY23KWIMub3C MxomG61islXOmDpw1y7T8CqVZ72ZBGWVLDiJ139rE7qfHGKB8+E9odh65apshFROQdUaV2 eTkjfxH4W0EGgugbOh4MVPorimeqZZ6PdUDNm8MZ8zZCnosdIwvoSU+Ev8CAjBZ0lUu7kY I4Mky9jjc/Uyr8sHaFjaa+gRut8ObaUAes6J+xisXiCiOo6+lT51ZBmVrE98Tm/vz9x62o jv88TwLwWFBvizVSC3CTg1gP1+9RugvSIvyYKAkklTYkPew3X5SU+WZ00lo5ww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AB4AA2296B; Fri, 18 Feb 2022 19:12:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21IJCxfQ028491; Fri, 18 Feb 2022 19:12:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21IJCxbf028490; Fri, 18 Feb 2022 19:12:59 GMT (envelope-from git) Date: Fri, 18 Feb 2022 19:12:59 GMT Message-Id: <202202181912.21IJCxbf028490@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: a15b4f2f0a9f - main - devel/radare2: add support for powerpc, powerpc64, powerpc64le and riscv64 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a15b4f2f0a9f305fcf83690a2a3c9ed649c245a6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645211580; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5cuDL77WvZdDhxSsNRJj3llOAssy23PguzbU89gljkg=; b=PpWF5z0slWD0hY/Pa5Zi6mgWXb0I+D1cAzP3cr6VRmhL3wv+Ms/ufoq6YaOaxzllWbX8sk qP/wzEVbWDqLjgkFR5p4CHuXUKS//fC8CPaRPdjLFxCFOu/YMhYZk7PTHUlcU5HO2Z1NKE jZM1+U1bF3xFX8uDsNYNTBNNpLc6TblymJ+MuAOFMW/EeBS0Gj865Y2fDSq7E9zU+ciB1H pzHTCcqaSV5VGOtgRCt9ag7eaBA0s9yktUUGsYdCkymEdP+wC4KQrkzqKdzK+MyyVHU2gt yu4+yuSWmusy8xX8GjcijRAQvgr/JOtmiJf47AAAMWm2e/WrNn+TNOPXFfCP/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645211580; a=rsa-sha256; cv=none; b=l3SpkicHXYg3t8R3AFH6Sa4DK6oPY+tHv/fACJY3lfCXFv8BJw0f0tCQTHUEToyKjTYLjb FGqWH3tLQuTkK+CCemaXTWUXg0UKmlKh8YbqKaFdmE8BM5PK/BbvwmMIypnei0Sbdxagbf mv9AUZLwIPnCWeH5SrK0DxhUKMU23H8pcPm99Gwrhx18s69/P4JCSVHmCofBLXJoIjXOGY F9YjaSnk/jx59RuOiI0+YU1YF/4Nsky5fY9jsFWpiQ/8dU17nUZ6LS/EH29H23YSHkOLPr 90PXc3ALZtikcuEwjEE8xQh0QewmwssnD3g8E5Ekfhrwq1Dm41EvrEF9w9I3xA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=a15b4f2f0a9f305fcf83690a2a3c9ed649c245a6 commit a15b4f2f0a9f305fcf83690a2a3c9ed649c245a6 Author: Piotr Kubaj AuthorDate: 2022-02-18 19:10:19 +0000 Commit: Piotr Kubaj CommitDate: 2022-02-18 19:10:19 +0000 devel/radare2: add support for powerpc, powerpc64, powerpc64le and riscv64 --- devel/radare2/Makefile | 9 +++++++-- devel/radare2/files/patch-libr_core_vmenus.c | 11 +++++++++++ devel/radare2/files/patch-libr_debug_p_native_reg.c | 15 +++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/devel/radare2/Makefile b/devel/radare2/Makefile index 601b75bd8999..5fd961588dfe 100644 --- a/devel/radare2/Makefile +++ b/devel/radare2/Makefile @@ -11,8 +11,7 @@ COMMENT= Tools to disasm, debug, analyze, and manipulate binary files LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpc powerpc64 powerpc64le \ - powerpcspe riscv64 sparc64 +NOT_FOR_ARCHS= armv6 armv7 mips mips64 powerpcspe sparc64 NOT_FOR_ARCHS_REASON= does not build: Unsupported BSD architecture LIB_DEPENDS= libcapstone.so:devel/capstone4 @@ -39,6 +38,12 @@ DOCS_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile # current directory, including .bak file left by ${REINPLACE_CMD} # called by pathfix. post-patch: + ${CP} ${WRKSRC}/libr/debug/p/native/linux/reg/linux-ppc.h \ + ${WRKSRC}/libr/debug/p/native/reg/kfbsd-ppc.h + ${CP} ${WRKSRC}/libr/debug/p/native/linux/reg/linux-ppc64.h \ + ${WRKSRC}/libr/debug/p/native/reg/kfbsd-ppc64.h + ${CP} ${WRKSRC}/libr/debug/p/native/linux/reg/linux-riscv64.h \ + ${WRKSRC}/libr/debug/p/native/reg/kfbsd-riscv64.h ${RM} ${WRKSRC}/libr/flag/d/Makefile.bak .include diff --git a/devel/radare2/files/patch-libr_core_vmenus.c b/devel/radare2/files/patch-libr_core_vmenus.c new file mode 100644 index 000000000000..d05bf781a17a --- /dev/null +++ b/devel/radare2/files/patch-libr_core_vmenus.c @@ -0,0 +1,11 @@ +--- libr/core/vmenus.c.orig 2022-02-18 17:27:13 UTC ++++ libr/core/vmenus.c +@@ -3235,7 +3235,7 @@ R_API void r_core_visual_debugtraces(RCore *core, cons + //int rows = r_cons_get_size (NULL); + r_core_cmdf (core, "dtd %d", delta); + r_cons_visual_flush (); +- char ch ; ++ signed char ch ; + if (input && *input) { + ch = *input; + input++; diff --git a/devel/radare2/files/patch-libr_debug_p_native_reg.c b/devel/radare2/files/patch-libr_debug_p_native_reg.c new file mode 100644 index 000000000000..5f601f299c63 --- /dev/null +++ b/devel/radare2/files/patch-libr_debug_p_native_reg.c @@ -0,0 +1,15 @@ +--- libr/debug/p/native/reg.c.orig 2022-02-18 15:57:33 UTC ++++ libr/debug/p/native/reg.c +@@ -49,6 +49,12 @@ static char *r_debug_native_reg_profile(RDebug *dbg) { + #include "reg/kfbsd-x64.h" + #elif __aarch64__ + #include "reg/kfbsd-arm64.h" ++#elif __powerpc64__ ++#include "reg/kfbsd-ppc64.h" ++#elif __powerpc__ ++#include "reg/kfbsd-ppc.h" ++#elif __riscv ++#include "reg/kfbsd-riscv64.h" + #else + #error "Unsupported BSD architecture" + #endif