From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eMEmE0j79ma2EgEAe85BDQ:P1 (envelope-from ) for ; Fri, 27 Sep 2024 18:36:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eMEmE0j79ma2EgEAe85BDQ (envelope-from ) for ; Fri, 27 Sep 2024 20:36:56 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=C8KCWLKu; dkim=fail ("headers rsa verify failed") header.d=soeren-tempel.net header.s=opensmtpd header.b=hadur40o; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=soeren-tempel.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727462216; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OT5Vamxp/DJyhmQ33XMD4bqub5CZ6hE61qZE7FSOJVY=; b=AEhl49bn9cUYRoz1vW3qpHT1j6cx+UKvrCjM5lwVFBHfeL+Erk9JB7joz+ePOYNTDOKvxy Vyjje/2ovr3Zh4cAoj3o4J2Ls31WI6fjfeqg3ix2m/fqmnrHLqAR7mP8yG07cZ1pn7dHEI Ux+fjOm2MoFcOBbaBiyhCPvdQAVg++406AZn+d9A/oGgweob+b40Uw6sLT2z5RvOkoEJLK YRlQZYZZ0A459tdsP2jo3wrHSFg6YBx192DD+6+xMveWSboav8Xzm0pJ+HTSk07cB+W9Rf /huSmo4lHYkBEkXMvlom1wN3ZcTRoitwBrtnzmxljnJd0mOZ8P0zo4B8g7BXjg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727462216; a=rsa-sha256; cv=none; b=o8ZFuvw62AJt7j29tdoSwncygP14WOLU+zfe2RhGkhqc8wG+G90yyUfBqm97fhJ/jx+W04 8gXmVJN7xpdYWBveAwuQVxhz1UgBAQGDjRpKTmG5a1znYna9/Wuns1YsQm2JTTG9BJ0fc4 Mgf8B7GBW4nfKQt6NZrV9Cx99+mScWUU26rIzvRyepOHbPkpYQuA98n0J1e3nJyMoIbkR+ j4a1mM2X3/MzZfu19J8vNzZZCM/7annM8tnz1wO5xV2kqC5bQFaGGtDt2b4lbNvcjJoKnq +ET6nEnDxVfcOw+8vJ3vStyDbFczD1Kqgn8VNSyQBBdJxGSONJRYsJGJQ8yPxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=C8KCWLKu; dkim=fail ("headers rsa verify failed") header.d=soeren-tempel.net header.s=opensmtpd header.b=hadur40o; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=soeren-tempel.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6FED588C68 for ; Fri, 27 Sep 2024 20:36:55 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suFpe-0005EM-Qw; Fri, 27 Sep 2024 14:36:47 -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 1suFpY-0004nq-6B for guix-patches@gnu.org; Fri, 27 Sep 2024 14:36:40 -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 1suFpX-0001th-KR; Fri, 27 Sep 2024 14:36:39 -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=OT5Vamxp/DJyhmQ33XMD4bqub5CZ6hE61qZE7FSOJVY=; b=C8KCWLKugNPLr4SctP1+qCrR4/7ALgg9qbq3lhneVJRdzfftyTWr7rUqfoX6rnUpp6BL93eCvvVSIqjGwq7wfTuhGlWvdAr+EweWwMIIwhL2hZaBfEyboqGJg+zF+BTJR5n+ahThLoiPqVCDBleUxpbQSQ9Pstnr5DIlUWA2iO/3nUNA8B2oxQRTOUcmMaIV/uPo+fXvkVMysVlOUOsNkTka1231qWiSinMNGDyWv9mkNm0WMBMvrqad8F+vUt+gokQGB7Z7vWdUnJjmv+U6sXqLCxzH6ZsvDosx6f4Jg5K7KHF2ydUvfUIkHi5OyWDTo9A50z99Eky2dVnlf1N3Dw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1suFpy-0007bB-0N; Fri, 27 Sep 2024 14:37:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72393] [PATCH v2 10/10] gnu: python-angr: Update to 9.2.112. 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: Fri, 27 Sep 2024 18:37:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72393 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72393@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 72393-submit@debbugs.gnu.org id=B72393.172746217429009 (code B ref 72393); Fri, 27 Sep 2024 18:37:05 +0000 Received: (at 72393) by debbugs.gnu.org; 27 Sep 2024 18:36:14 +0000 Received: from localhost ([127.0.0.1]:47157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suFp6-0007Xf-PM for submit@debbugs.gnu.org; Fri, 27 Sep 2024 14:36:14 -0400 Received: from magnesium.8pit.net ([45.76.88.171]:19108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suFp2-0007W9-G2; Fri, 27 Sep 2024 14:36:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=opensmtpd; bh=OT5Vamxp /DJyhmQ33XMD4bqub5CZ6hE61qZE7FSOJVY=; h=references:in-reply-to:date: subject:cc:to:from; d=soeren-tempel.net; b=hadur40o9QHX86tAfJHjzI1ZMFP zpq8qQ6d3xfeoEsXxQLqu1XjKR0zpGdFQ5GYzBTbh9QPSVF0kRSCSXP3mR1UsZZ9u7D3qW 9zkxlODKaejOcX/mB5PrBrM7yWyHnxS9I3VQ6uw3teLot6daZ2xritI2z/Im1CdkMDpOM+ Aczo= Received: from localhost (dyn.ipv6.net-htp.de [2a02:560:4d5a:5700:f45d:5adb:48d9:9418]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id 66dde5f4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:YES); Fri, 27 Sep 2024 20:35:32 +0200 (CEST) From: soeren@soeren-tempel.net Date: Fri, 27 Sep 2024 20:35:03 +0200 Message-ID: X-Mailer: git-send-email 2.46.1 In-Reply-To: <0dd3ef50a19a67c58a12f06a0b99356b87a31fe8.1727462103.git.soeren@soeren-tempel.net> References: <0dd3ef50a19a67c58a12f06a0b99356b87a31fe8.1727462103.git.soeren@soeren-tempel.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 6FED588C68 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -4.57 X-Migadu-Spam-Score: -4.57 X-TUID: 3g9keIuyF98+ From: Sören Tempel * gnu/packages/python-xyz.scm (python-angr): Update to 9.2.112. [propagated-inputs]: Remove python-progressbar2; add python-pyformlang, add python-rich, add python-unique-log-filter. * gnu/packages/patches/python-angr-addition-type-error.patch: Remove patch (merged upstream and included in new release). * gnu/packages/patches/python-angr-check-exec-deps.patch: Rebase for new release. --- gnu/local.mk | 1 - .../python-angr-addition-type-error.patch | 18 ---- .../patches/python-angr-check-exec-deps.patch | 83 +++++++++---------- gnu/packages/python-xyz.scm | 28 +++++-- 4 files changed, 58 insertions(+), 72 deletions(-) delete mode 100644 gnu/packages/patches/python-angr-addition-type-error.patch diff --git a/gnu/local.mk b/gnu/local.mk index 669a65dfd6..adbea45636 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2004,7 +2004,6 @@ dist_patch_DATA = \ %D%/packages/patches/python-3-search-paths.patch \ %D%/packages/patches/python-3-fix-tests.patch \ %D%/packages/patches/python-3-hurd-configure.patch \ - %D%/packages/patches/python-angr-addition-type-error.patch \ %D%/packages/patches/python-angr-check-exec-deps.patch \ %D%/packages/patches/python-3-reproducible-build.patch \ %D%/packages/patches/python-aionotify-0.2.0-py3.8.patch \ diff --git a/gnu/packages/patches/python-angr-addition-type-error.patch b/gnu/packages/patches/python-angr-addition-type-error.patch deleted file mode 100644 index 7301d8b505..0000000000 --- a/gnu/packages/patches/python-angr-addition-type-error.patch +++ /dev/null @@ -1,18 +0,0 @@ -This fixes failures of the test_ln_gcc_O2 and other related tests -in the angr test suite. The patch has been proposed upstream. - -Taken form: https://github.com/angr/angr/pull/4443 - -diff --git a/angr/analyses/reassembler.py b/angr/analyses/reassembler.py -index 7a2399a60..b09b3a8cb 100644 ---- a/angr/analyses/reassembler.py -+++ b/angr/analyses/reassembler.py -@@ -730,7 +730,7 @@ class Instruction: - elif operand.type == capstone.CS_OP_MEM: - operand_offsets.append(capstone_instr.disp_offset) - else: -- operand_offsets.append(None) -+ operand_offsets.append(0) - - if self.addr is not None: - self._initialize(capstone_instr.operands, operand_offsets) diff --git a/gnu/packages/patches/python-angr-check-exec-deps.patch b/gnu/packages/patches/python-angr-check-exec-deps.patch index 438f8ef183..6001d9c924 100644 --- a/gnu/packages/patches/python-angr-check-exec-deps.patch +++ b/gnu/packages/patches/python-angr-check-exec-deps.patch @@ -8,11 +8,11 @@ For Guix, this files as the glibc shared objects cannot be found. Additionally, we don't really want to execute pre-compiled binaries on Guix, hence we disable those tests. -diff --git a/tests/test_ctype_locale.py b/tests/test_ctype_locale.py -index 08cb89836..2b9233558 100644 ---- a/tests/test_ctype_locale.py -+++ b/tests/test_ctype_locale.py -@@ -14,7 +14,7 @@ test_location = os.path.dirname(os.path.abspath(__file__)) +diff --git a/tests/procedures/glibc/test_ctype_locale.py b/tests/procedures/glibc/test_ctype_locale.py +index ac3e1ee16..1fb0fd095 100755 +--- a/tests/procedures/glibc/test_ctype_locale.py ++++ b/tests/procedures/glibc/test_ctype_locale.py +@@ -15,7 +15,7 @@ test_location = os.path.join(bin_location, "tests") class TestCtypeLocale(unittest.TestCase): @@ -21,7 +21,7 @@ index 08cb89836..2b9233558 100644 def test_ctype_b_loc(self): """ test_ctype_locale.test_ctype_b_loc -@@ -60,7 +60,7 @@ class TestCtypeLocale(unittest.TestCase): +@@ -61,7 +61,7 @@ class TestCtypeLocale(unittest.TestCase): output = subprocess.check_output(bin_path, shell=True) assert result == output @@ -30,7 +30,7 @@ index 08cb89836..2b9233558 100644 def test_ctype_tolower_loc(self): """ test_ctype_locale.test_ctype_tolower_loc -@@ -109,7 +109,7 @@ class TestCtypeLocale(unittest.TestCase): +@@ -110,7 +110,7 @@ class TestCtypeLocale(unittest.TestCase): output = subprocess.check_output(bin_path, shell=True) assert result == output @@ -39,50 +39,24 @@ index 08cb89836..2b9233558 100644 def test_ctype_toupper_loc(self): """ test_ctype_locale.test_ctype_toupper_loc -diff --git a/tests/test_signed_div.py b/tests/test_signed_div.py -index 59cb9b8d1..994ed9c65 100644 ---- a/tests/test_signed_div.py -+++ b/tests/test_signed_div.py -@@ -1,6 +1,7 @@ - import angr - import subprocess - import sys -+import pytest - - import logging - -@@ -13,7 +14,7 @@ import os - test_location = os.path.dirname(os.path.realpath(__file__)) - - --@skipUnless(sys.platform.startswith("linux"), "linux only") -+@pytest.mark.skip(reason="test executes pre-compiled binaries") - def test_signed_div(): - test_bin = os.path.join(test_location, "..", "..", "binaries", "tests", "x86_64", "test_signed_div") - b = angr.Project(test_bin, auto_load_libs=False) -diff --git a/tests/test_sscanf.py b/tests/test_sscanf.py -index 29d2c8403..ea799b310 100644 ---- a/tests/test_sscanf.py -+++ b/tests/test_sscanf.py -@@ -1,3 +1,4 @@ -+import pytest - import angr - import subprocess - import sys -@@ -14,7 +15,7 @@ test_location = os.path.dirname(os.path.realpath(__file__)) +diff --git a/tests/procedures/libc/test_sscanf.py b/tests/procedures/libc/test_sscanf.py +index 7c2da6f5e..e20952f54 100755 +--- a/tests/procedures/libc/test_sscanf.py ++++ b/tests/procedures/libc/test_sscanf.py +@@ -14,7 +14,7 @@ test_location = os.path.join(bin_location, "tests") class TestSscanf(unittest.TestCase): - @unittest.skipUnless(sys.platform.startswith("linux"), "linux only") + @unittest.skip("test executes pre-compiled binaries") def test_sscanf(self): - test_bin = os.path.join(test_location, "..", "..", "binaries", "tests", "x86_64", "sscanf_test") + test_bin = os.path.join(test_location, "x86_64", "sscanf_test") b = angr.Project(test_bin, auto_load_libs=False) -diff --git a/tests/test_strtol.py b/tests/test_strtol.py -index 6c29cab22..f36181407 100644 ---- a/tests/test_strtol.py -+++ b/tests/test_strtol.py -@@ -11,7 +11,7 @@ class TestStrtol(unittest.TestCase): +diff --git a/tests/procedures/libc/test_strtol.py b/tests/procedures/libc/test_strtol.py +index 4d7982b86..8818ced3b 100755 +--- a/tests/procedures/libc/test_strtol.py ++++ b/tests/procedures/libc/test_strtol.py +@@ -15,7 +15,7 @@ class TestStrtol(unittest.TestCase): # pylint: disable=no-self-use @slow_test @@ -91,3 +65,24 @@ index 6c29cab22..f36181407 100644 def test_strtol(self, threads=None): test_bin = os.path.join(bin_location, "tests", "x86_64", "strtol_test") # disabling auto_load_libs increases the execution time of the test case. +diff --git a/tests/sim/exec_insn/test_signed_div.py b/tests/sim/exec_insn/test_signed_div.py +index 46581020f..d5acc5370 100755 +--- a/tests/sim/exec_insn/test_signed_div.py ++++ b/tests/sim/exec_insn/test_signed_div.py +@@ -2,6 +2,7 @@ + # pylint: disable=missing-class-docstring,no-self-use,line-too-long + __package__ = __package__ or "tests.sim.exec_insn" # pylint:disable=redefined-builtin + ++import pytest + import os + import subprocess + import sys +@@ -16,7 +17,7 @@ test_location = os.path.join(bin_location, "tests") + + + class TestSignedDiv(TestCase): +- @skipUnless(sys.platform.startswith("linux"), "linux only") ++ @pytest.mark.skip(reason="test executes pre-compiled binaries") + def test_signed_div(self): + test_bin = os.path.join(test_location, "x86_64", "test_signed_div") + b = angr.Project(test_bin, auto_load_libs=False) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f56d23f93e..45dce3082d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -34417,19 +34417,18 @@ (define-public python-itanium-demangler (define-public python-angr (package (name "python-angr") - (version "9.2.46") + (version "9.2.112") (source (origin ;; Fetching from Git as pypi release doesn't include all test files. (method git-fetch) - (patches (search-patches "python-angr-addition-type-error.patch" - "python-angr-check-exec-deps.patch")) + (patches (search-patches "python-angr-check-exec-deps.patch")) (uri (git-reference (url "https://github.com/angr/angr") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "18y9wyf7va7gvp9zd6lhw82j9a2x2ajsvbawh96xnxzml0jwlwjm")))) + (base32 "1179926xbfh2930laz33p90vj532jk7g2qylzzpw1185yhlf9cis")))) (build-system pyproject-build-system) (arguments (list @@ -34437,9 +34436,18 @@ (define-public python-angr (add-after 'unpack 'patch-tests (lambda* (#:key inputs #:allow-other-keys) (let ((coreutils (assoc-ref inputs "coreutils"))) - (substitute* "tests/test_vault.py" - (("/bin/false") - (which "false"))) + ;; The constraint exists because of a capstone bug for which + ;; we backport a patch, hence we can relax the constraint. + ;; + ;; See https://github.com/angr/angr/issues/4656 + (substitute* "setup.cfg" + (("capstone==5.0.0.post1") + "capstone")) + ;; Relax constraint on python-rich, the constraint is too strict, + ;; angr work well with our packaged version of python-rich. + (substitute* "setup.cfg" + (("rich>=13.1.0") + "rich")) (substitute* "tests/common.py" (("\\[\"cc\"\\]") "[\"gcc\"]"))))) @@ -34478,11 +34486,13 @@ (define-public python-angr python-itanium-demangler python-pycparser python-pyvex - python-progressbar2 + python-pyformlang + python-rich python-rpyc python-sortedcontainers python-sqlalchemy python-sympy + python-unique-log-filter unicorn)) (native-inputs `(("python-pytest" ,python-pytest) ("python-pytest-xdist" ,python-pytest-xdist) @@ -34500,7 +34510,7 @@ (define-public python-angr version)))) (file-name (git-file-name "angr-binaries" version)) (sha256 (base32 - "1f286b2239zavxzwg1184hj1zs380cr9qr549mvy3vywvm8bsmgr")))))) + "0bxzf6alkczv9r0151ksvcwyksnw8077acz1wd8drbxw0zl0qnmr")))))) (home-page "https://github.com/angr/angr") (synopsis "Multi-architecture binary analysis toolkit") (description