From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oON8HRJonWRItAAASxT56A (envelope-from ) for ; Thu, 29 Jun 2023 13:16:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wPx2HBJonWQYYwEAG6o9tA (envelope-from ) for ; Thu, 29 Jun 2023 13:16:34 +0200 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 2987139AFA for ; Thu, 29 Jun 2023 13:16:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEpdI-00046C-2Y; Thu, 29 Jun 2023 07:16:16 -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 1qEpd6-00044A-Sq for guix-patches@gnu.org; Thu, 29 Jun 2023 07:16:07 -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 1qEpd4-000656-Ua for guix-patches@gnu.org; Thu, 29 Jun 2023 07:16:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEpd4-0005Vb-AP for guix-patches@gnu.org; Thu, 29 Jun 2023 07:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63065] [PATCH v3 16/16] gnu: Add yabridgectl. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Jun 2023 11:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63065 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "63065@debbugs.gnu.org" <63065@debbugs.gnu.org> Received: via spool by 63065-submit@debbugs.gnu.org id=B63065.168803731921119 (code B ref 63065); Thu, 29 Jun 2023 11:16:02 +0000 Received: (at 63065) by debbugs.gnu.org; 29 Jun 2023 11:15:19 +0000 Received: from localhost ([127.0.0.1]:52425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEpcM-0005UZ-9P for submit@debbugs.gnu.org; Thu, 29 Jun 2023 07:15:18 -0400 Received: from mail-40132.protonmail.ch ([185.70.40.132]:54373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEpcJ-0005UK-Gi for 63065@debbugs.gnu.org; Thu, 29 Jun 2023 07:15:17 -0400 Date: Thu, 29 Jun 2023 11:15:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1688037308; x=1688296508; bh=0wqluZp6wp1JBfENASynxAtO2svLS0X3b1cBL2mHNXI=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=IybtzmKYa4JUqtdCi2570ZdZtMHLMe4pR64EK8ELdKZB8dbzHt8RaySccPqB1Zi3h UI8rWarUx/oux27MiSiun48JRWV5AP6qDp99tfx987XHaxTY6iLTzprRB690BvTal1 UP/HRimGeDgdbx563iFE1HvxbtAXqMRI2FoYP8weYa0fS+4ZKEdFPiwOML8R9D1BDn IZoL7a7i5/E76c27TGv2S9kP3pxroWSZecFBZksAzM8M9mKDxgfHoT/tdC77DRIvdr 1m5rL42hWp4bilFkyAAU0edWzR/oQTPmnCMdb9pQKW/9k8yuW2HJndG91fJbPM0gZf 0kKsULCFfTY6w== Message-ID: In-Reply-To: References: Feedback-ID: 45211691:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Sughosha X-ACL-Warn: , Sughosha via Guix-patches From: Sughosha via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688037394; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=0wqluZp6wp1JBfENASynxAtO2svLS0X3b1cBL2mHNXI=; b=HZkLYmyFnq3/hmxu2nOCj8SkuHsW06FPAHHTpIwXKDSFNfZuGLAUDUu5enV+/S+xOnx68D GPw5pKXr40FnoJxgxUhAfRMIQKslycLakZuEMlLVLl2BXpnMTCEXVSm2+CnPffagtZpp2I vUameqbP11kYcbIJF5M7JhBXDHkd44jPMml9h3E23clGnnik+TzW2UvqeCMrFoeXWrxk6I 46ehpJk8rUHKpjr7KeD53UVlWiRTfAfriWT+p8TXWkr3gyJbkziAvYDC54B8KBVmAeiozc 3dkDAxMmMGc03D+UN1XDyRkuwZkHbjn9JBuYms3+lZH8UkjpQAZCTAF0IFiH8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=IybtzmKY; dmarc=pass (policy=none) header.from=gnu.org; 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-Seal: i=1; s=key1; d=yhetil.org; t=1688037394; a=rsa-sha256; cv=none; b=mDSfY+BcZgwZWrvneVQbCRGo9nk0miQa5zHSJHmumayiiT/TIrcuR5txhmWbCVBtbfoFbp S1vKxCWQ9QD3JdvX5aFBeyMH+9ruOuNZfXkNMoCHxfZRmI5x9X7N5UT3t1brUS8QnIa0WR 5BL3nKQn584NskSfOQ3qmPX5b6zvUrvkUsux8gFXULtDCS6/ByqfM7DCbg2ItsH2m0WHdg x9WP8HHqniPNJvM2scQnAOSM9Gt/I3bs/12ivROoyd+rFyr89zYWg6X58DAHXrG4e0S9bu 71aIt6kzVNcl9ObbpL5z3tBcEmk/LohyNWD+Jn/R5+svpAp7odLO90QTd+WBPA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.76 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=IybtzmKY; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 2987139AFA X-Spam-Score: -3.76 X-TUID: MI1PSYOKTF5F By mistake I had added "#:use-module (gnu packages rust-apps)" unnecessarily. In this patch it is removed. This patch is the replacement of only the last patch, 16/16, from the v2 series. Sughosha (1): gnu: Add yabridgectl. gnu/local.mk | 1 + gnu/packages/audio.scm | 61 +++++++++++++++++++ ...yabridgectl-5.0.4-use-system-reflink.patch | 23 +++++++ 3 files changed, 85 insertions(+) create mode 100644 gnu/packages/patches/yabridgectl-5.0.4-use-system-refli= nk.patch base-commit: a98126e604b666d08a4c9d838bf9c341acea7f17 prerequisite-patch-id: db0f0d6727c1b66cdd07fb37d982d8f48367cb7a prerequisite-patch-id: 43820360ad84faa7d10d47945d00b038e68524f0 prerequisite-patch-id: 350929f65488a6350bc09a0045e13b0c815eafe5 prerequisite-patch-id: 6e8a93d14aa2798c457057021fc0cb38f58cec7d prerequisite-patch-id: 129bde8eb27d35d83d411cf49c2f04c57748b89f prerequisite-patch-id: b4d8b6b7b91d3ee98d2402e144567c078fc9425e prerequisite-patch-id: be1f9641ea8ec7be12e1e63efcfbb0a9ddf16ce1 prerequisite-patch-id: be8ccdf29fe9659ffe16806ad3c135d6be0f47f3 prerequisite-patch-id: f5ac1f146e42cc0a3be51272a74ad71effc28a82 prerequisite-patch-id: 41ac5a7192eb95f90bb31f69ee1846a18bb908c9 prerequisite-patch-id: 8ed14cb8f75ed3e36fd22aea2b4cf586b864f676 prerequisite-patch-id: e3f51823fdb1fa0838cb40aff2951cf82dac5d4f prerequisite-patch-id: 227157ad1a0787045c09b7f573c27a7647ab14f5 prerequisite-patch-id: 712cbfaa6bfa223781ee37dc7020b3616666aca2 prerequisite-patch-id: 9ed005354b5adf2d595fe66945f15179496d8a25 -- * gnu/packages/audio.scm (yabridgectl): New variable. * gnu/packages/patches/yabridgectl-5.0.4-use-system-reflink.patch: New patch file. * gnu/local.mk: Register it. --- gnu/local.mk | 1 + gnu/packages/audio.scm | 61 +++++++++++++++++++ ...yabridgectl-5.0.4-use-system-reflink.patch | 23 +++++++ 3 files changed, 85 insertions(+) create mode 100644 gnu/packages/patches/yabridgectl-5.0.4-use-system-refli= nk.patch diff --git a/gnu/local.mk b/gnu/local.mk index dbb2143906..29f05ff669 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2099,6 +2099,7 @@ dist_patch_DATA =3D=09=09=09=09=09=09\ %D%/packages/patches/xygrib-fix-finding-data.patch=09=09\ %D%/packages/patches/xygrib-newer-proj.patch=09=09=09\ %D%/packages/patches/yabridge-5.0.4-fix-dependency-search.patch=09\ + %D%/packages/patches/yabridgectl-5.0.4-fix-reflink.patch=09\ %D%/packages/patches/yggdrasil-extra-config.patch=09\ %D%/packages/patches/zig-do-not-link-against-librt.patch=09\ %D%/packages/patches/zig-use-system-paths.patch=09=09\ diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index 02d2a68396..7ab3c5f374 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -74,6 +74,7 @@ (define-module (gnu packages audio) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages crates-io) #:use-module (gnu packages curl) #:use-module (gnu packages dbm) #:use-module (gnu packages documentation) @@ -140,6 +141,7 @@ (define-module (gnu packages audio) #:use-module (gnu packages xiph) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) + #:use-module (guix build-system cargo) #:use-module (guix build-system cmake) #:use-module (guix build-system copy) #:use-module (guix build-system glib-or-gtk) @@ -5968,6 +5970,65 @@ (define-public yabridge quick startup times.") (license license:gpl3+))) =20 +(define-public yabridgectl + (package/inherit yabridge + (name "yabridgectl") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/robbert-vdh/yabridge") + (commit (package-version yabridge)))) + (sha256 + (base32 + "0ayl706nv67jkixbrh9z7225gdwg2s4rzndx77761x33mk6by7a8")) + (patches + (search-patches + "yabridgectl-5.0.4-use-system-reflink.patch")))) + (build-system cargo-build-system) + (arguments + (list #:cargo-inputs + `(("rust-anyhow" ,rust-anyhow-1) + ("rust-clap" ,rust-clap-3) + ("rust-colored" ,rust-colored-2) + ("rust-is-executable" ,rust-is-executable-1) + ("rust-goblin" ,rust-goblin-0.6) + ("rust-libloading" ,rust-libloading-0.7) + ("rust-promptly" ,rust-promptly-0.3) + ("rust-rayon" ,rust-rayon-1) + ("rust-reflink" ,rust-reflink-0.1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-serde-jsonrc" ,rust-serde-jsonrc-0.1) + ("rust-textwrap" ,rust-textwrap-0.11) + ("rust-toml" ,rust-toml-0.5) + ("rust-walkdir" ,rust-walkdir-2) + ("rust-which" ,rust-which-4) + ("rust-xdg" ,rust-xdg-2)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'change-directory + (lambda _ + (chdir "tools/yabridgectl"))) + (add-after 'change-directory 'patch-paths + (lambda _ + (with-directory-excursion "src" + (substitute* '("config.rs" "main.rs") + (("/usr") #$yabridge))))) + (add-after 'install 'wrap-program + (lambda _ + (wrap-program (string-append #$output "/bin/yabridgectl"= ) + `("LD_LIBRARY_PATH" ":" prefix + (,(string-append #$yabridge "/lib") + ,(string-append #$dbus "/lib"))))))))) + (native-inputs '()) + (inputs + (list dbus)) + (propagated-inputs + (list yabridge)) + (synopsis "Utility to set up and update yabridge") + (description + "@command{yabridgectl} is a tool to setup and update @code{yabridge}.= "))) + (define-public ableton-link (package (name "ableton-link") diff --git a/gnu/packages/patches/yabridgectl-5.0.4-use-system-reflink.patc= h b/gnu/packages/patches/yabridgectl-5.0.4-use-system-reflink.patch new file mode 100644 index 0000000000..d863f35c2f --- /dev/null +++ b/gnu/packages/patches/yabridgectl-5.0.4-use-system-reflink.patch @@ -0,0 +1,23 @@ +rust-reflink version 0.1.3 available in Guix is patched with the fix for +the assumption of a 64-bit toolchain. + +--- + tools/yabridgectl/Cargo.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/yabridgectl/Cargo.toml b/tools/yabridgectl/Cargo.toml +index f2ea73fb..09490e43 100644 +--- a/tools/yabridgectl/Cargo.toml ++++ b/tools/yabridgectl/Cargo.toml +@@ -18,7 +18,7 @@ goblin =3D { version =3D "0.6", default_features =3D fal= se, features =3D ["std", "pe32", + libloading =3D "0.7.3" + promptly =3D "0.3.1" + # Version 0.1.3 from crates.io assumes a 64-bit toolchain +-reflink =3D { git =3D "https://github.com/nicokoch/reflink", rev =3D "e8d= 93b465f5d9ad340cd052b64bbc77b8ee107e2" } ++reflink =3D "0.1.3" + rayon =3D "1.5.1" + serde =3D "1.0.133" + serde_derive =3D "1.0.133" +--=20 +2.39.2 + --=20 2.40.1