From patchwork Wed Jul 31 10:14:36 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: 66582 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 C40EF27BBE9; Wed, 31 Jul 2024 11:16:02 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,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 E7AB027BBE2 for ; Wed, 31 Jul 2024 11:16:00 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZ6N3-0000su-8i; Wed, 31 Jul 2024 06:15:49 -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 1sZ6N1-0000sa-Um for guix-patches@gnu.org; Wed, 31 Jul 2024 06:15:47 -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 1sZ6N1-00043z-L9 for guix-patches@gnu.org; Wed, 31 Jul 2024 06:15:47 -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=r390VZi1nUjsoLILQ+mWbAgBK7SH/H/Izd6UU6XnRZc=; b=HFl91bAzSk498sAxJF5106oWwXZMTgYFskeo6BDxvSf7vYr5Tyb+zko/ljt6XtHQMmeb9tOBX9lYwOgpAKtLSVNbN6dc1+/IsZfLFG+NLZ/Tc57Og8pw3MRH3DfQqZSv7dnLK+T43nblamLdl2YweksFrXRGAcKK2+NUen2fJ1QqwjwX5y9VhhASpeAGy96fERPV354WQeZUqC5qAT0F+NbG4hky0kx1vXwTKlJiOwSgho+7EL/Zte/F4zm5IaXL0XrARFblljVVLd8Db0thRCGonr3QfC1M2jQC+KN+a33fNFDYF3dVQynG4XxZSPXhgEdAIw2U5OxunmZHxxMx5A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sZ6NG-0003b4-VE for guix-patches@gnu.org; Wed, 31 Jul 2024 06:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72396] [PATCH 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: Wed, 31 Jul 2024 10:16: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.172242094013789 (code B ref 72396); Wed, 31 Jul 2024 10:16:02 +0000 Received: (at 72396) by debbugs.gnu.org; 31 Jul 2024 10:15:40 +0000 Received: from localhost ([127.0.0.1]:49226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZ6Mt-0003aL-Pc for submit@debbugs.gnu.org; Wed, 31 Jul 2024 06:15:40 -0400 Received: from layka.disroot.org ([178.21.23.139]:36484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZ6Mr-0003aC-8B for 72396@debbugs.gnu.org; Wed, 31 Jul 2024 06:15:37 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3B99841175; Wed, 31 Jul 2024 12:15:20 +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 70lL560DXS4v; Wed, 31 Jul 2024 12:15:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1722420919; bh=7e+r6e21pQHfhu2it0oA+NpgkwneMbc4swQYyktJdgg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=HiCurtmo7saWnWKWdEhwVRY12k8R5o0NoZoe0n3c9pJDiKBBlZJ73diTvp2WO/VQ+ z5HLj422ejgrCnxE74DAU2yRGlakfivEZPWPgFpSb9Bk9uR4dOUUXwMN4+jdixBGSE olFpYnCV1TIHBaXaxUCxzsAQ851/f+nkWao0H6oEufu/MDSFIUQiCuhjICHV/D69VU f5qArp4Svs/D7j+CuEOli9/u+GkarMYO4mu5r8D3DRS7peI4UkES97E/RzaNdIqRGC 3XPEuh9ZVujrDTy863+t7d7A7ZWM56kEZgc3D8Ee5OiMxToeJUh2TdYWnvOd3ZbpS9 kolvwIcpDyHXQ== Date: Wed, 31 Jul 2024 19:14:36 +0900 Message-ID: In-Reply-To: References: 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 --- gnu/packages/engineering.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index b6ae19101b42..4eb0e6cb6b9a 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -1950,6 +1950,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")