From patchwork Thu Aug 11 06:37:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "vasilii.smirnov--- via Guix-patches\" via" X-Patchwork-Id: 41548 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E3DE327BBEA; Thu, 11 Aug 2022 07:39:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5004327BBE9 for ; Thu, 11 Aug 2022 07:39:40 +0100 (BST) Received: from localhost ([::1]:60156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oM1r1-0007nz-Cm for patchwork@mira.cbaines.net; Thu, 11 Aug 2022 02:39:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM1qR-0007mE-Gq for guix-patches@gnu.org; Thu, 11 Aug 2022 02:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oM1qQ-0001al-Oq for guix-patches@gnu.org; Thu, 11 Aug 2022 02:39:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oM1qQ-0005MV-K7 for guix-patches@gnu.org; Thu, 11 Aug 2022 02:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57133] [PATCH] gnu: Add rizin. Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Aug 2022 06:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57133 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57133@debbugs.gnu.org Cc: =?utf-8?b?5a6L5paH5q2m?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166019989920557 (code B ref -1); Thu, 11 Aug 2022 06:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Aug 2022 06:38:19 +0000 Received: from localhost ([127.0.0.1]:51252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM1pi-0005LU-Jk for submit@debbugs.gnu.org; Thu, 11 Aug 2022 02:38:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:47430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM1pf-0005LK-BO for submit@debbugs.gnu.org; Thu, 11 Aug 2022 02:38:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM1pf-0007k7-3q for guix-patches@gnu.org; Thu, 11 Aug 2022 02:38:15 -0400 Received: from envs.net ([89.163.145.170]:33416 helo=mail.envs.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM1pb-0001XJ-P0 for guix-patches@gnu.org; Thu, 11 Aug 2022 02:38:14 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id ADA7338A0DEC; Thu, 11 Aug 2022 06:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1660199881; bh=0Zo53yvhNDNs3mx2RxaXbakJRSdgioAdo/4yg5jcfGY=; h=From:To:Cc:Subject:Date:From; b=XTBPdCZuSGWJsjVf6w9+/EYx/cJIge8d+fIY8NnCcMinofL7LIkrWdXX4/uBamXFq qyhDE1iGiwgZxW22dUGwqL2FMRIzfQOD+emahmm/Vz000h7GH/I6yNxvJSIsMUnia6 Xb7bxs1gTJCpKSPM81CNGn5iXhMPGuI/EoZwsEc6lDHoX0dMYzSTMM98qWGK/7Pcuc peK1y4XfRriJwJu3x0IGyUd410QbjYztbWsjYfFR0RNerWg4AcYpLcY0rsODSUohfi WsjcHZxrBJVzNaLDRS6yn4Y1xWOQaW6n5ZvZxXJfwfm1mb5QPF9/rorriQ7acrsWum gCd7aFj1dOAMbjd3WF5kgLMTEJfh0/H8kFZ5jYeU0gYnHNYvJTcEbjqvbr3y+/O2Ri Ju+9ht7G+RnY4Qr9Z9D40B0SHJdsBpZLWiCdQNKCWTgNkLLhBgLwOjs3tjJM6ClGEp HO40xtzgfYRkxHOa7/8PBKFbM09V4KxGrvRB6PSbsZWv/EXaQsL4YFC1hzxQoNc5j+ PgPS6b0cEWgb+/Tx7wArpNx8M71PoiR99rNcm0qwQvaQlf5meezWJSkCtOQUw9+zX+ eEJWNi+IZXTNWq72P680rxb0z0q+Emf37idxM9cAEo/V2pGbwyoNYAT8Nb/nmzAWta HbVLLDazBH6c06edSwnWsX1o= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id x3ScebQ8A4Ba; Thu, 11 Aug 2022 06:37:58 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: iyzsong@envs.net) by mail.envs.net (Postfix) with ESMTPSA; Thu, 11 Aug 2022 06:37:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 66e33e84; Thu, 11 Aug 2022 06:37:50 +0000 (UTC) Date: Thu, 11 Aug 2022 14:37:49 +0800 Message-Id: <20220811063749.8293-1-iyzsong@envs.net> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Received-SPF: pass client-ip=89.163.145.170; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: iyzsong@envs.net X-ACL-Warn: , iyzsong--- via Guix-patches X-Patchwork-Original-From: iyzsong--- via Guix-patches via From: "vasilii.smirnov--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches From: 宋文武 * gnu/packages/engineering.scm (rizin): New variable. --- gnu/packages/engineering.scm | 68 ++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index ed87cd8d6a..7752e92f09 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -67,6 +67,7 @@ (define-module (gnu packages engineering) #:use-module (guix build-system cmake) #:use-module (guix build-system emacs) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module (guix build-system qt) #:use-module (gnu packages) @@ -88,6 +89,7 @@ (define-module (gnu packages engineering) #:use-module (gnu packages digest) #:use-module (gnu packages docbook) #:use-module (gnu packages documentation) + #:use-module (gnu packages file) #:use-module (gnu packages flex) #:use-module (gnu packages fontutils) #:use-module (gnu packages fpga) @@ -142,6 +144,7 @@ (define-module (gnu packages engineering) #:use-module (gnu packages tbb) #:use-module (gnu packages tcl) #:use-module (gnu packages texinfo) + #:use-module (gnu packages text-editors) #:use-module (gnu packages tls) #:use-module (gnu packages tex) #:use-module (gnu packages version-control) @@ -3757,3 +3760,68 @@ (define-public candle @item Visualizing G-code files. @end itemize") (license license:gpl3+)))) + +(define-public rizin + (package + (name "rizin") + (version "0.4.0") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/rizinorg/rizin/releases/download/v" + version "/rizin-src-v" version ".tar.xz")) + (sha256 + (base32 + "0nkb6v9lks25w5sv5s6p2ghgqnnnsf39md8nlx1cy4z89xlaisq9")))) + (build-system meson-build-system) + (arguments + (list + #:configure-flags + #~(list "-Dpackager=guix" + (string-append "-Dpackager_version=" #$version) + "-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" + "-Duse_sys_libuv=enabled" + "-Duse_gpl=true") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'prepare-testbins + (lambda _ + (copy-recursively + #$(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rizinorg/rizin-testbins") + (commit "7d0c31ac7711de9c4d37f5047200dc5a407ff713"))) + (sha256 + (base32 + "00cmc7pws9m4hcm0bpdjm6n4agl5mqgczc4ccswfhywyzzvr7sqh"))) + "test/bins"))) + (add-before 'configure 'skip-failing-tests + (lambda _ + ;; Skip 2 failing tests, reported upstream: + ;; . + (substitute* "test/integration/meson.build" + (("'analysis_global_var'") "#") + (("'sign_integration'") "#"))))))) + (native-inputs (list pkg-config)) + (inputs + (list capstone file libuv libzip lz4 openssl tree-sitter xxhash zlib)) + (home-page "https://rizin.re") + (synopsis "Disasm, debug, analyze and manipulate binary files") + (description + "Rizin is a reverse engineering framework and a set of small command-line +utilities, providing a complete binary analysis experience with features like +disassembler, hexadecimal editor, emulation, binary inspection, debugger, and +more.") + ;; Most files are under LGPL-3.0-only, other are under: Apache-2.0, + ;; BSD-2-Clause, BSD-3-Clause, CC0-1.0, CC-BY-SA-4.0, GPL-1.0-or-later, + ;; GPL-2.0-only, GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.0-or-later, + ;; LGPL-2.1-only, LGPL-2.1-or-later, LGPL-3.0-only, MIT, NCSA. + (license license:gpl3+)))