From patchwork Sun Aug 18 02:22:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 67086 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 AB50F27BBEA; Sun, 18 Aug 2024 03:27:49 +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=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 EA4AE27BBE2 for ; Sun, 18 Aug 2024 03:27:48 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfVde-0000VT-JQ; Sat, 17 Aug 2024 22:27:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfVdc-0000Un-Mh for guix-patches@gnu.org; Sat, 17 Aug 2024 22:27:25 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sfVdc-0002jW-Db for guix-patches@gnu.org; Sat, 17 Aug 2024 22:27:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=yd095WpcTcwKiOmHIPMK/lwIln2X75oaRuNyc63L03c=; b=JeeknhfPMUXON3ToTJxFrjdHn1hzd4nZLwh9eqJ8/wl7ZfZeE/u01S3ebXhSzr1uJPn+EVN9RSI4siPrEq7ZfGNd3dVjmpvCRX6Urv5KtyQVZrJHx8w6oALM2m1k5HblHgj/HR+FORha+eFUL4EsdC2Hwyh1uPGQbqTkF3KauNFykNDHVjMvo4uVwPBOZAize64st0axuH/5Lnpv5QhoSt+VatBI4lb3HmRUJx+/XNPnn2c7AtBo302apepr+zlJOzaRjVpUtDmIPpsy6SPj+/vJ5eDGNNbQ5dnWRUeihuIIFoFMtpohmWQT/RGMFVBusUePp5tfR/aCvRJ9rneIJQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfVeF-0004oO-1I for guix-patches@gnu.org; Sat, 17 Aug 2024 22:28:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72396] [PATCH v2 1/2] gnu: Add zycore. References: In-Reply-To: Resent-From: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Aug 2024 02:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72396@debbugs.gnu.org Cc: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong Received: via spool by 72396-submit@debbugs.gnu.org id=B72396.172394804118316 (code B ref 72396); Sun, 18 Aug 2024 02:28:02 +0000 Received: (at 72396) by debbugs.gnu.org; 18 Aug 2024 02:27:21 +0000 Received: from localhost ([127.0.0.1]:55153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfVdZ-0004lE-Eg for submit@debbugs.gnu.org; Sat, 17 Aug 2024 22:27:21 -0400 Received: from layka.disroot.org ([178.21.23.139]:56192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfVdT-0004kX-G3 for 72396@debbugs.gnu.org; Sat, 17 Aug 2024 22:27:20 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 39BE541AB2; Sun, 18 Aug 2024 04:26:34 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dVDOQpO5yrTN; Sun, 18 Aug 2024 04:26:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1723947993; bh=rPtDK+vhVOdwQefdBBOkcLw9M/ymT5oS2F4NNdp5zI4=; h=From:To:Cc:Subject:Date; b=mcWH9yY+YuVrGE2XmEkyHsXxjAI+75ZWdIgCv5qnvj5WES++fldXtkHaWOiIRh9ee yTJY51BKJckMpfsOCY2sKce5cjlvrBpyUj3KGmpRv/9tTZLj8gNyv7dEKY2RMHLBuZ wGv5OA0PtG1h+OTeCRWswLXNeEU30fWS41D8GWf41jakokDcqQVFcF/b8i2jmLlfzh n+4bDnSNGDEsIPtMMW/JqV14ZMoLelGjxa9VS3W2ZcFptC7obnpR5WVQTmFGXIfzr5 l5yEcJZYu/D38KgSajjHpTMpes1vbHFZDhMN8aU43ZaJuogja1IneJ/zKbdPNCmYZY 1y7W8GmTWJWNA== Date: Sun, 18 Aug 2024 11:22:59 +0900 Message-ID: <64a3c8b8813df7ab161a485080cd04c75ce70022.1723947780.git.mcsinyx@disroot.org> MIME-Version: 1.0 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: , Reply-to: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= X-Patchwork-Original-From: guix-patches--- via From: "ashish.is--- via Guix-patches\" via" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/engineering.scm (zycore): New variable. Change-Id: Ia38413f43bc667a9a12916d3f0e786e06f6d358f --- On 2024-08-15 at 16:19+02:00, Nicolas Graves wrote: > On 2024-07-31 19:14, Nguyễn Gia Phong via wrote: > > > * gnu/packages/engineering.scm (zycore): New variable. > > > > + (synopsis "Internal library for Zydis.") > A minor nitpick: > zycore@1.5.0: no period allowed at the end of the synopsis > > Checking `guix lint` would have told you ;) > > Otherwise LGTM, built and rebuilt deterministically. Thanks, this revision fixes that. I cannot get guix lint to tell that to me however (I ran `./pre-inst-env guix lint zycore`). gnu/packages/engineering.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) base-commit: 41c44ffd5659d13f5c1edb78d92ad27275ead78a diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 7a9c0bc436f7..24dc4f0197c7 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -40,6 +40,7 @@ ;;; Copyright © 2023 Sharlatan Hellseher ;;; Copyright © 2023 pinoaffe ;;; Copyright © 2024 Juliana Sims +;;; Copyright © 2024 Nguyễn Gia Phong ;;; ;;; This file is part of GNU Guix. ;;; @@ -1927,6 +1928,29 @@ (define-public radare2 it suitable for security research and analysis.") (license license:lgpl3))) +(define-public zycore + (package + (name "zycore") + (version "1.5.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zyantific/zycore-c") + (commit (string-append "v" version)))) + (sha256 + (base32 "0s962pkqybh1xbs75y4jb4bqc9qnq0sviqd570mirqdhhq87agib")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (native-inputs (list googletest)) + (arguments `(#:configure-flags '("-DZYCORE_BUILD_SHARED_LIBS=ON" + "-DZYCORE_BUILD_TESTS=ON"))) + (home-page "https://github.com/zyantific/zycore-c") + (synopsis "Internal library for Zydis") + (description + "This package provides platfrom-independent types, macros +and a fallback for environments without libc for Zydis.") + (license license:expat))) + (define-public asco (package (name "asco") From patchwork Sun Aug 18 02:23:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 67085 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 E9CC427BBEA; Sun, 18 Aug 2024 03:27:43 +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=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 77A7727BBE9 for ; Sun, 18 Aug 2024 03:27:42 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfVdd-0000Uw-Kb; Sat, 17 Aug 2024 22:27:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfVdc-0000UZ-7Y for guix-patches@gnu.org; Sat, 17 Aug 2024 22:27:24 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sfVdb-0002jT-UZ for guix-patches@gnu.org; Sat, 17 Aug 2024 22:27:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=uloBg8k3B37YoE72ijiVeyVyqdHZ83BbKZDNqyyQASQ=; b=G/fDooBqgDknIChFFeJVNWKsf/7cLN+kBO0WtW9PWN1vBTZZcyWdqi9omO39VRCSs0VdpK7O1KwA/h9YEWfSeDVvATlc4QojlUkk1lZT/1tXoWKc4vPOc7BM1YhyF2cFNBt0Of4YLc1lKmJ57CNOoNuOOCdzWSwiZY0lk04ZAWjT05ANeCCYrFX0994gP379UL6e7DfUjp3BLPjaqSWEOmMaq1ya8t37S9rMAjqczbl57XcApi64+iS4QQ3iCt/ZFikCY0B9IbHqj2frP2ZG8D5CxvnGi4p6eCHehL7Ao6dhdjNQTuyew88nfG/8zig+AXVnQ5B+FsN0kw9QlaMZVg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfVeE-0004oG-IE for guix-patches@gnu.org; Sat, 17 Aug 2024 22:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72396] [PATCH v2 2/2] gnu: Add zydis. Resent-From: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Aug 2024 02:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72396@debbugs.gnu.org Cc: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong Received: via spool by 72396-submit@debbugs.gnu.org id=B72396.172394804118307 (code B ref 72396); Sun, 18 Aug 2024 02:28:02 +0000 Received: (at 72396) by debbugs.gnu.org; 18 Aug 2024 02:27:21 +0000 Received: from localhost ([127.0.0.1]:55151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfVdZ-0004lA-16 for submit@debbugs.gnu.org; Sat, 17 Aug 2024 22:27:21 -0400 Received: from layka.disroot.org ([178.21.23.139]:39482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfVdX-0004kr-8R for 72396@debbugs.gnu.org; Sat, 17 Aug 2024 22:27:19 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 012AD41AB8; Sun, 18 Aug 2024 04:26:39 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6eLYcpiEYPAU; Sun, 18 Aug 2024 04:26:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1723947997; bh=a2qP1rX4/1KRm6ZW/Axgx9NUKHA6/7G2wnSfGh5qbS0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=kKIzQUl5k5cXnVVuW+O3sXTAffQNAdOUNrkg25xdzYiUZk4jihm+jIEE+uWmWB2jh hfZun03//2PA/79GpB+p7cKAvYqktIVcMDDyom8g9R6n9ciE0grLZ48GS692nhezio GPLXhLtra9sjzhQo9Omno+Gc/P0JyP4VHY4uO9pVXfjLUOW/LdQH6scARE/GEunH+E 2GrFtyhVh2lq1YehHz+oKHwvqjFwC/JDps8uGVBBhaa/rCaUSy03geNaHrrtFWOa8i KVprNKPXFBoXvS4ltNm4clJHC6k4FzKeb3E0w+2jPpjpshQzNRUbiVket0SA2nAhOU +rcTDqZG4H+cA== Date: Sun, 18 Aug 2024 11:23:00 +0900 Message-ID: <6c2035f759a89750900eafc23f7ab943649d8e28.1723947780.git.mcsinyx@disroot.org> In-Reply-To: <64a3c8b8813df7ab161a485080cd04c75ce70022.1723947780.git.mcsinyx@disroot.org> References: <64a3c8b8813df7ab161a485080cd04c75ce70022.1723947780.git.mcsinyx@disroot.org> MIME-Version: 1.0 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: , Reply-to: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= X-Patchwork-Original-From: guix-patches--- via From: "ashish.is--- via Guix-patches\" via" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/engineering.scm (zydis): New variable. Change-Id: I6e0b04e1d957f8c172e81177f6669415beeaf20a --- This patch is identical to the one in v1. gnu/packages/engineering.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 24dc4f0197c7..fba30809e18b 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -1951,6 +1951,37 @@ (define-public zycore and a fallback for environments without libc for Zydis.") (license license:expat))) +(define-public zydis + (package + (name "zydis") + (version "4.1.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zyantific/zydis") + (commit (string-append "v" version)))) + (sha256 + (base32 "15iw6wcg2van8pw54xs15zk5cniqm8d8vbd1w1br9azv8jxsqjva")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments `(#:configure-flags '("-DZYAN_SYSTEM_ZYCORE=ON" + "-DZYDIS_BUILD_SHARED_LIB=ON" + "-DZYDIS_BUILD_MAN=ON"))) + (native-inputs (list python ronn-ng)) + (inputs (list zycore)) + (home-page "https://zydis.re") + (synopsis "Disassembler and code generation library for x86 and AMD64") + (description + "Zydis is a decoder and disassembler library with the following features: +@itemize +@item Support for all x86 and AMD64 instructions and extensions +@item Optimization for high performance +@item No dynamic memory allocation +@item Thread-safe by design +@item Smaller file-size overhead compared to other common disassembler libraries +@end itemize") + (license license:expat))) + (define-public asco (package (name "asco")