From patchwork Thu Jul 11 21:27:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?S=C3=B6ren_Tempel?= X-Patchwork-Id: 29203 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 8A2D427BBEA; Thu, 11 Jul 2024 22:28:39 +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=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 0F46327BBE2 for ; Thu, 11 Jul 2024 22:28:39 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sS1Kv-00078a-6u; Thu, 11 Jul 2024 17:28:21 -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 1sS1Kl-00074q-8Z for guix-patches@gnu.org; Thu, 11 Jul 2024 17:28:11 -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 1sS1Kk-0003az-Pl; Thu, 11 Jul 2024 17:28:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sS1Kf-00040a-36; Thu, 11 Jul 2024 17:28:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69074] [PATCH 09/11] gnu: Add python-cle. Resent-From: soeren@soeren-tempel.net Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Thu, 11 Jul 2024 21:28:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69074 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69074@debbugs.gnu.org Cc: jgart@dismail.de, Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 69074-submit@debbugs.gnu.org id=B69074.172073327715317 (code B ref 69074); Thu, 11 Jul 2024 21:28:05 +0000 Received: (at 69074) by debbugs.gnu.org; 11 Jul 2024 21:27:57 +0000 Received: from localhost ([127.0.0.1]:52717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sS1KW-0003yu-GV for submit@debbugs.gnu.org; Thu, 11 Jul 2024 17:27:56 -0400 Received: from magnesium.8pit.net ([45.76.88.171]:34222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sS1KK-0003xJ-Is; Thu, 11 Jul 2024 17:27:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=opensmtpd; bh=xi94HUHw U9ElrBtgrVqx0icNJt5ROEG62VDi95CV+PA=; h=references:in-reply-to:date: subject:cc:to:from; d=soeren-tempel.net; b=y8setJUKNFPAv2HntUFQZJAc0/L zZbKFhf31Kc0mKvBJvaJqXsYfb75RJLH4K3BrQT6AjIPk64Zu3Q7lhGFiM2XFXBpyrHaAM I0Lj2c6xkXW3WzMDkjXKmjBhS4oNcYl7SdUg4adnJsh91uQ0VpMf/JT9OdBtmeEdb0z+Ai 0+Tk= Received: from localhost (dynamic-2a02-3102-49da-001b-5547-c145-a90a-e426.310.pool.telefonica.de [2a02:3102:49da:1b:5547:c145:a90a:e426]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id a1b692ef (TLSv1.3:TLS_AES_256_GCM_SHA384:256:YES); Thu, 11 Jul 2024 23:27:40 +0200 (CEST) From: soeren@soeren-tempel.net Date: Thu, 11 Jul 2024 23:27:20 +0200 Message-ID: <8377ffdc36c8022548e348815af56ee40558f08d.1720733241.git.soeren@soeren-tempel.net> X-Mailer: git-send-email 2.45.2 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: , 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 From: Sören Tempel * gnu/packages/python-xyz.scm (python-cle): New variable. --- gnu/packages/python-xyz.scm | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6abeac61e6..a5b36fda81 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -33788,6 +33788,32 @@ (define-public python-opcodes and BMI2).") (license license:bsd-2)))) +(define-public python-cle + (package + (name "python-cle") + ;; Must be the same version as python-angr. + (version "9.2.46") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cle" version)) + (sha256 + (base32 "0mswv9gd2p2ws7zfsshqv5ybbj27wkdwakdcknq4vsrx9ry9k4yc")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f)) + (propagated-inputs (list python-pefile python-pyelftools python-pyvex + python-sortedcontainers)) + (native-inputs (list python-cffi)) + (home-page "https://github.com/angr/cle") + (synopsis "Python loader for binaries and their associated libraries") + (description + "CLE loads binaries and their associated libraries, resolves +imports and provides an abstraction of process memory the same way as if +it was loader by the operating system's loader.") + (license license:bsd-2))) + (define-public python-pyvex (package (name "python-pyvex") @@ -33810,7 +33836,7 @@ (define-public python-pyvex (with-directory-excursion "tests" (invoke "python" "-m" "unittest"))))) - (add-before 'build 'set-cc-native + (add-before 'build 'set-cc (lambda _ (setenv "CC" #$(cc-for-target)) (setenv "CC_NATIVE" "gcc"))))))