From patchwork Mon May 29 20:38:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vicvbcun X-Patchwork-Id: 50449 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 927E127BBEA; Mon, 29 May 2023 21:40:28 +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 9533327BBE2 for ; Mon, 29 May 2023 21:40:27 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3jf3-000513-UR; Mon, 29 May 2023 16:40:15 -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 1q3jev-0004yl-Bj for guix-patches@gnu.org; Mon, 29 May 2023 16:40:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3jev-0001aY-2B for guix-patches@gnu.org; Mon, 29 May 2023 16:40:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3jet-0007oU-T8 for guix-patches@gnu.org; Mon, 29 May 2023 16:40:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56729] [RFC PATCH v3 01/32] gnu: python-cysignals: Update to 1.11.2. Resent-From: vicvbcun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 May 2023 20:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56729 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56729@debbugs.gnu.org Cc: Andreas Enge Received: via spool by 56729-submit@debbugs.gnu.org id=B56729.168539278529862 (code B ref 56729); Mon, 29 May 2023 20:40:03 +0000 Received: (at 56729) by debbugs.gnu.org; 29 May 2023 20:39:45 +0000 Received: from localhost ([127.0.0.1]:59254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3jeb-0007lK-4q for submit@debbugs.gnu.org; Mon, 29 May 2023 16:39:45 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([85.215.255.131]:42907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3jeU-0007jM-Ux for 56729@debbugs.gnu.org; Mon, 29 May 2023 16:39:40 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1685392777; cv=none; d=strato.com; s=strato-dkim-0002; b=NtvpggkVL8S/gXE6nh8Zx1jKA/25UX6K6TCP3TDjIdiiEXZrSL7dLrEfCalXh+xi6G BqkjEy9RreEOtrv7BzqWK8wVL236yPXdxvMPbCPFSLepAbAX1HJrdjUlEz7zQoI+pV+t T0aIfT+FRom9oTL4ch9hbmMRkNvC2QvMIWw8QmMuzxNIIBf0HDD+JSQ04JgUGpZjijEM bzDpqIfiviMZk5WqObShvYvx7G3uNEQ/bjGiUH2edMX9lAIDCNutRXiz+uQ2CRMmiBzn 1E9UCkszD/tv40s5sc88nUtJDpFpnxGVwlJkS6CA3nc+Xh423PP9sVmqC2WGUCYhYEZq sIdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1685392777; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=z/GPt4HqiT8d/ZDkBO5gmOnZGcFfQtAgV9cWxcpr0aY=; b=ZsnREHiWF3sJLF7ypn23ZyeWjtZ5TIrn9W9qX69ZxW7bgPW0g1p8i0B3l3tVA+JXaC LHtQrxwHt9Q6xzSulSQIMpWlCY/QdT7seO1xpz5DkO5/3Cazc0bph/V7AIGtgdqM1soG EQ+tLgjKz+gs4AcsxVsr0P5xswFsLJyOiohoWqLYy2zfdWDzWKzPzHeiqNumslJ4tVbN 2YtEjlEf6ZzTDObETQw1x8dpeMha4PjWgfbwxEHuP7umEJRSiv5OAzWQC6XRoIgc0BaZ GkA7qSGbTSsyGybFhVpV94DJqHsYrK4xqWYApxbmvRpuK8iuh/IsT/vrZXwX3Mom5iMc QSAw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1685392777; s=strato-dkim-0002; d=ikherbers.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=z/GPt4HqiT8d/ZDkBO5gmOnZGcFfQtAgV9cWxcpr0aY=; b=sJVcuo5ECdzjT1OGr1y8jsnKS620FkQna4t9Iio7nPsAWzMAbRgiKnozYtcjB2eWYi IWA7zoYgG1EEaxKfof3ZN3LSFbL+ogrgT9SFJKKV/ALb03EevfG8uiHPC6cGoXCnS39n +U7wPM+/cTyzS6zlh2PFJTBwMDBBJSykzlHfy4l40TtzPvTQ1+NMYTLeTUIi1BfL0q+r PKSRn14gsC5n8K4jciIMXlvciPshFMQtgjACFzIbE/9cdA/sqv54Kyy26AexFA6K7Khe OzN6s40R5HScSJIH8w8s/hL0azysqTyHN8VkytXi9BIlECRDpkkJtQ7gx99ybi5OguDJ o3Ew== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1685392777; s=strato-dkim-0003; d=ikherbers.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=z/GPt4HqiT8d/ZDkBO5gmOnZGcFfQtAgV9cWxcpr0aY=; b=ChfqNrhsOki8sb+44YYI9B9de49OVfz7acKZI3GlsiL3zoBadK0L9kLfGLo7qRs4h+ xjEXcpMHQcRgo4EYpICw== X-RZG-AUTH: ":IUwNfkitaf3qOWm2b/jA5tveVwUUcwH3PkiYp6DPxTDDEo4xO9elHkvI0r6JTEEwPZQIGpITRHJw3QBV19xfC5caujhgQnTJiaYr" X-RZG-CLASS-ID: mo05 Received: from lambda.localdomain by smtp.strato.de (RZmta 49.4.0 AUTH) with ESMTPSA id z055e6z4TKdbn7E (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 29 May 2023 22:39:37 +0200 (CEST) From: vicvbcun Date: Mon, 29 May 2023 22:38:10 +0200 Message-Id: <86ba5974544d96d9f8371447609ecfd19a92b2de.1685391447.git.guix@ikherbers.com> X-Mailer: git-send-email 2.40.1 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 * gnu/packages/python-xyz.scm (python-cysignals): Update to 1.11.2. [native-inputs]: Add autoconf and gdb. [arguments]<#:tests?>: Run tests. [arguments]<#:phases>: Remove phase 'configure, add phase 'set-shell-for-configure-script, add phase 'fix-testgdb.py. --- gnu/packages/python-xyz.scm | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f7e3f6f538..d07561b185 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -160,6 +160,7 @@ (define-module (gnu packages python-xyz) #:use-module (gnu packages adns) #:use-module (gnu packages aidc) #:use-module (gnu packages attr) + #:use-module (gnu packages autotools) #:use-module (gnu packages backup) #:use-module (gnu packages bash) #:use-module (gnu packages check) @@ -17712,32 +17713,35 @@ (define-public python-future (define-public python-cysignals (package (name "python-cysignals") - (version "1.9.0") + (version "1.11.2") (source (origin (method url-fetch) (uri (pypi-uri "cysignals" version)) (sha256 (base32 - "15ix8crpad26cfl1skyg7qajqqfdrm8q5ahhmlfmqi1aw0jqj2g2")))) + "19kgba662s3s942k3mzkr92mmb37793b49mq460q88dy1xvb2n2q")))) (build-system python-build-system) (native-inputs - (list python-cython python-sphinx)) + (list autoconf gdb python-cython python-sphinx)) (inputs (list pari-gp)) (arguments - `(#:modules ((guix build python-build-system) - ((guix build gnu-build-system) #:prefix gnu:) - (guix build utils)) - ;; FIXME: Tests are executed after installation and currently fail - ;; when not installing into standard locations; the author is working - ;; on a fix. - #:tests? #f - #:phases - (modify-phases %standard-phases - (add-before - 'build 'configure - (assoc-ref gnu:%standard-phases 'configure))))) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-shell-for-configure-script + (lambda _ + (setenv "CONFIG_SHELL" (which "sh")))) + (add-after 'unpack 'fix-testgdb.py + (lambda _ + (substitute* "testgdb.py" + (("assertIn\\(b") + "assertIn(") + (("__pyx_pf_9cysignals_5tests_46unguarded_dereference_null_pointer\\(\\)") + "unguarded_dereference_null_pointer") + (("cdef void dereference_null_pointer\\(\\) nogil:") + "dereference_null_pointer"))))))) (home-page "https://github.com/sagemath/cysignals") (synopsis