From patchwork Mon Oct 23 22:21:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve George X-Patchwork-Id: 55224 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 E2F2727BBE2; Mon, 23 Oct 2023 23:28:21 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS 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 DC37427BBE9 for ; Mon, 23 Oct 2023 23:28:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qv3Nk-0004cz-V9; Mon, 23 Oct 2023 18:26:44 -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 1qv3Ng-0004VE-5Y for guix-patches@gnu.org; Mon, 23 Oct 2023 18:26: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 1qv3Nf-0005OF-T5 for guix-patches@gnu.org; Mon, 23 Oct 2023 18:26:39 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qv3O9-00016A-2V; Mon, 23 Oct 2023 18:27:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66717] [PATCH 64/64] gnu: Add rust-librespot-playback-0.4 Resent-From: Steve George Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Mon, 23 Oct 2023 22:27:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66717 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66717@debbugs.gnu.org Cc: Steve George , efraim@flashner.co.il X-Debbugs-Original-Xcc: efraim@flashner.co.il Received: via spool by 66717-submit@debbugs.gnu.org id=B66717.16981000274183 (code B ref 66717); Mon, 23 Oct 2023 22:27:09 +0000 Received: (at 66717) by debbugs.gnu.org; 23 Oct 2023 22:27:07 +0000 Received: from localhost ([127.0.0.1]:52448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv3O6-00015A-HH for submit@debbugs.gnu.org; Mon, 23 Oct 2023 18:27:07 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]:53912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv3Nm-00012H-Dv for 66717@debbugs.gnu.org; Mon, 23 Oct 2023 18:26:46 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qv3ND-00FH9f-Hj for 66717@debbugs.gnu.org; Tue, 24 Oct 2023 00:26:11 +0200 Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qv3ND-0001F7-7f for 66717@debbugs.gnu.org; Tue, 24 Oct 2023 00:26:11 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1qv3N1-004Oi7-CU; Tue, 24 Oct 2023 00:25:59 +0200 From: Steve George Date: Mon, 23 Oct 2023 23:21:49 +0100 Message-ID: <27c778e6cf403e722a74d0857b5a64d4ea0afe0a.1698099451.git.steve@futurile.net> X-Mailer: git-send-email 2.41.0 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/crates-io.scm (rust-librespot-playback-0.4): New variable. -- >8 -- Q: how do I resolve the conflicting Jack versions? When I try and build from source I get messages that: * cpal v0.13.5 requires jack-0.8 which requires jack-sys-0.2.3 * librespot-playback v0.4.2 requires jack-10 which requires jack-sys-0.4 I can't find a way to adjust the dependencies: * librespot 0.4.2 and 0.4.1 both require jack-0.8 * cpal 0.13.x doesn't have a version that relies on jack-0.8 --- gnu/packages/crates-io.scm | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 19fd141a4f..1e49315cce 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -38202,6 +38202,56 @@ (define-public rust-librespot-metadata-0.4 Spotify. This package contains the metadata logic.") (license license:expat))) +(define-public rust-librespot-playback-0.4 + (package + (name "rust-librespot-playback") + (version "0.4.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "librespot-playback" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1dygnzldvkv1qpagr9nl62hmqh0xfcf4lsva37j0xxy7pjws142i")))) + (build-system cargo-build-system) + (arguments + `(;; conflict in the versions of Jack required by rust-cpal-0.13 and + ;; rust-librespot-playback 0.4 means we have to skip building + #:skip-build? #t + #:cargo-inputs (("rust-byteorder" ,rust-byteorder-1) + ("rust-futures-executor" ,rust-futures-executor-0.3) + ("rust-futures-util" ,rust-futures-util-0.3) + ("rust-lewton" ,rust-lewton-0.10) + ("rust-librespot-audio" ,rust-librespot-audio-0.4) + ("rust-librespot-core" ,rust-librespot-core-0.4) + ("rust-librespot-metadata" ,rust-librespot-metadata-0.4) + ("rust-log" ,rust-log-0.4) + ("rust-ogg" ,rust-ogg-0.8) + ("rust-parking-lot" ,rust-parking-lot-0.12) + ("rust-rand" ,rust-rand-0.8) + ("rust-rand-distr" ,rust-rand-distr-0.4) + ("rust-shell-words" ,rust-shell-words-1) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-tokio" ,rust-tokio-1) + ("rust-zerocopy" ,rust-zerocopy-0.6) + ("rust-alsa" ,rust-alsa-0.6) + ("rust-cpal" ,rust-cpal-0.13) + ("rust-glib" ,rust-glib-0.15) + ("rust-gstreamer" ,rust-gstreamer-0.18) + ("rust-gstreamer-app" ,rust-gstreamer-app-0.18) + ("rust-gstreamer-audio" ,rust-gstreamer-audio-0.18) + ("rust-jack" ,rust-jack-0.10) + ("rust-libpulse-binding" ,rust-libpulse-binding-2) + ("rust-libpulse-simple-binding" ,rust-libpulse-simple-binding-2) + ("rust-portaudio-rs" ,rust-portaudio-rs-0.3) + ("rust-rodio" ,rust-rodio-0.15) + ("rust-sdl2" ,rust-sdl2-0.35)))) + (home-page "https://github.com/librespot-org/librespot") + (synopsis "Audio playback for Librespot") + (description "Audio playback for Librespot, an open source client +library for Spotify.") + (license license:expat))) + (define-public rust-librespot-protocol-0.4 (package (name "rust-librespot-protocol")