From patchwork Wed Feb 21 19:30:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Rimoldi X-Patchwork-Id: 60877 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 0433E27BBE2; Wed, 21 Feb 2024 19:32:18 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, 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 4491427BBE9 for ; Wed, 21 Feb 2024 19:32:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcsJp-0005dR-Ec; Wed, 21 Feb 2024 14:31:49 -0500 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 1rcsJg-0005cf-BJ for guix-patches@gnu.org; Wed, 21 Feb 2024 14:31:40 -0500 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 1rcsJg-0007Ch-2W for guix-patches@gnu.org; Wed, 21 Feb 2024 14:31:40 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcsK2-0003Cj-7d for guix-patches@gnu.org; Wed, 21 Feb 2024 14:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68052] [PATCH v3 2/4] gnu: python-pyportmidi: Update to first working git revision since project restarted development, fixing build. Resent-From: rimarko@libero.it Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Feb 2024 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68052 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: 68052@debbugs.gnu.org Cc: Marco Rimoldi Received: via spool by 68052-submit@debbugs.gnu.org id=B68052.170854389812251 (code B ref 68052); Wed, 21 Feb 2024 19:32:02 +0000 Received: (at 68052) by debbugs.gnu.org; 21 Feb 2024 19:31:38 +0000 Received: from localhost ([127.0.0.1]:35818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcsJe-0003BW-0S for submit@debbugs.gnu.org; Wed, 21 Feb 2024 14:31:38 -0500 Received: from smtp-32.italiaonline.it ([213.209.10.32]:44262 helo=libero.it) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcsJU-0003Ai-H4 for 68052@debbugs.gnu.org; Wed, 21 Feb 2024 14:31:32 -0500 Received: from localhost ([93.38.119.137]) by smtp-32.iol.local with ESMTPA id csIsrmVVeXR0qcsJ2r0fOk; Wed, 21 Feb 2024 20:31:00 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1708543860; bh=YdFKf3//qRoRWNU9QZ2SGDU07lJkroLWv37elEMQdLQ=; h=From; b=vSzTSCzFljrWrtvcCfWpIb7yTG1iHUrLqyOqbCabbeWmNZxSbjtkSZhio6xIOzWN6 Cd9OIi30OplE/lFIsOTVVAzcL98X8NO4xAVPIWNy4hwS1bM8uYZ+FXakxazfHwh/xH /VPiX3O+bgbASsTkwHGfSmTpqSvrCZr9sV3vb+08Pvr8+UkA5IdYBEStD6YYLFBjB2 J/+Gi67d2+qUgy4j0p+ETMjXlWag/NVkEbLRhsGMa8BVLTlZr+yJtZnFp+4D2SdUCS K7rnkMqJmTxjgTi+KhevMPAA52lARLiFA1tm7tV2ScfcvWE/P9HayebU3EKglC+IGz nJWUEwZPZ6rtQ== X-CNFS-Analysis: v=2.4 cv=Rc4zCEtv c=1 sm=1 tr=0 ts=65d64f74 cx=a_exe a=zr5aN+YwjWvrDHBFAPbA8Q==:117 a=zr5aN+YwjWvrDHBFAPbA8Q==:17 a=FP58Ms26AAAA:8 a=NEAV23lmAAAA:8 a=chmFKnp8fg3vtchoswQA:9 Date: Wed, 21 Feb 2024 20:30:33 +0100 Message-ID: <806023818f7d264173f4de6fcee448a9b48572fe.1708543835.git.rimarko@libero.it> X-Mailer: git-send-email 2.41.0 In-Reply-To: <9b3717fdff5c1a5f20ae57b99f365775790b22c9.1708543835.git.rimarko@libero.it> References: <9b3717fdff5c1a5f20ae57b99f365775790b22c9.1708543835.git.rimarko@libero.it> MIME-Version: 1.0 X-CMAE-Envelope: MS4xfN4LleTMXBnpvJV/HczjVY0bFXbaLyyTBMschoj85/RPPUEN5jjzJWKtIa6WiSc1B+SacBsPHXKNF/ke7Lj18dKt+BHz6HDECj6F5384jMIElDUe8KZk svyd0y/NY+GG4RHMpdKKj+k5YObbGClHI8p25BPJZF+WEFuBSjH6rNee8zZSuJNPnOBkus7siA7sjpQ2DIznDHQWkGvXYrbwDa0= 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: rimarko@libero.it X-ACL-Warn: , Marco Rimoldi via Guix-patches X-Patchwork-Original-From: Marco Rimoldi via Guix-patches via From: Marco Rimoldi 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: Marco Rimoldi When the PortMidi project moved to GitHub in 2021, changing version numbering scheme, the Python bindings were moved to a separate repository and marked as needing a new maintainer. The chosen revision, dated June 2023, is the first to allow the package to build successfully in the temporary lack of an official new release. * gnu/packages/music.scm (python-pyportmidi): Source moved, fix build. [version]: Change to new scheme, jumping from 217 to 0.0.7. [source]: Change origin from Sourceforge to GitHub. Change-Id: Ibe02edca39731f3f3c9001818665d2da97df9465 --- gnu/packages/music.scm | 52 ++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 30 deletions(-) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 6b218376b7..8926f93ac8 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -3034,36 +3034,28 @@ (define-public portmidi (license license:expat))) (define-public python-pyportmidi - (package - (name "python-pyportmidi") - (version (package-version portmidi)) - (source (package-source portmidi)) - (build-system python-build-system) - (arguments - `(#:tests? #f ; no tests included - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'enter-dir - (lambda _ (chdir "pm_python") #t)) - (add-after 'enter-dir 'fix-setup.py - (lambda _ - (substitute* "setup.py" - ;; Use Python 3 syntax - (("print (\".*\")" _ text) - (string-append "print(" text ")\n")) - ;; TODO.txt and CHANGES.txt don't exist - (("CHANGES =.*") "CHANGES = \"\"\n") - (("TODO =.*") "TODO = \"\"\n")) - #t))))) - (inputs - (list portmidi alsa-lib)) - (native-inputs - (list python-cython unzip)) - (home-page "https://portmedia.sourceforge.net/portmidi/") - (synopsis "Python bindings to PortMidi") - (description - "This package provides Python bindings to the PortMidi library.") - (license license:expat))) + (let ((commit "d9e5ee00b208b09618fa0d4a5bbce3c9c077b386") + (revision "0")) + (package + (name "python-pyportmidi") + (version (git-version "0.0.7" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/PortMidi/pm_python") + (commit commit))) + (sha256 + (base32 "1jvp9na8d1hw46w9ybhkimbavfb3ysw7hp30cbk6dj40k5y5vgvz")) + (file-name (git-file-name name version)))) + (build-system python-build-system) + (inputs (list portmidi alsa-lib)) + (native-inputs (list python-cython)) + (home-page "https://github.com/PortMidi") + (synopsis "Python bindings to PortMidi") + (description + "This package provides Python bindings to the PortMidi library.") + (license license:expat)))) (define-public frescobaldi (package