From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +NsIGXWoR2SgeAEASxT56A (envelope-from ) for ; Tue, 25 Apr 2023 12:16:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aD6+GHWoR2Qt0wAAauVa8A (envelope-from ) for ; Tue, 25 Apr 2023 12:16:21 +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 2D44D425A4 for ; Tue, 25 Apr 2023 12:16:21 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=SaDNwC4j; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682417781; 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=reieBoPVOlCHD7fEs6GHErbVvGgNb0/KiWWtfyhY+28=; b=fyC/yb27Nlw30lE1tTNTl8STLKnINo2x3iZom/1GLoPSnei8BtwNgAgTLtOsrp24UQjIfI MzH2cBBENtN38UD3Zzx3gs5AP4+l6saaCDA6/jW/r4sKYktj1Bx6YiTPtpYka5UUM3MJCi 2DxZFxnd5CiuYgx/SsoYSLhQQ4IDauv3aA68+fjD4GPSEKLGj7L/Kd9yEKlzFAZQaC0snV MHzgKQKZqnPQvGhRN6i1abk8loHVwLPiMywcYsS6PUnsLpNc+ZbqLH5BL8NZY8fPE1lqJq 8p06KOu+EzrVGRD9s6ZQe75s/bYF2DMih5pujoCfcoFxu78VnZJ+Nnu0sCWszA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=proton.me header.s=protonmail header.b=SaDNwC4j; 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=1682417781; a=rsa-sha256; cv=none; b=gvvMg9P3jhP0l/cLHe2aWxoJJcXHK7U9FXkv2aboi9L6AzuULG1WtlFGbVA8V9HEVj+hDd lXFeo7LA9mLdYgjlaLakaMaaPmt6eKYfE/0v2aA2leCxtmquEd1CevqfS4hbbsBImPktdg H2aars1aUXYlCIL1CVykM4rGCZQg9n6/iZCNB1xfk62b045PgiiqUOj/hJ8WEgtN3Q8xc7 RsqRAQ8RVrMXhPrm5eEF3UNr8JWfyc9h/7/CQQr0sVr7DEVneN+nDsb+cVefVJKyJqixb5 bl0Wo9+08pJXoxQYvy9DL+FMNVh0+HJbogduGXFfqew6CB7XjjYAT7Yg+I/lQw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prF9f-0004xV-Bt; Tue, 25 Apr 2023 05:40:11 -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 1prF9X-0004wq-42 for guix-patches@gnu.org; Tue, 25 Apr 2023 05:40:03 -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 1prF9W-0000O2-Oy for guix-patches@gnu.org; Tue, 25 Apr 2023 05:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1prF9W-0006F0-3N for guix-patches@gnu.org; Tue, 25 Apr 2023 05:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63065] [PATCH 18/18] gnu: Add yabridgectl. References: In-Reply-To: Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Apr 2023 09:40: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.168241557823950 (code B ref 63065); Tue, 25 Apr 2023 09:40:02 +0000 Received: (at 63065) by debbugs.gnu.org; 25 Apr 2023 09:39:38 +0000 Received: from localhost ([127.0.0.1]:51403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prF94-0006EA-Ot for submit@debbugs.gnu.org; Tue, 25 Apr 2023 05:39:38 -0400 Received: from mail-40135.protonmail.ch ([185.70.40.135]:12075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prF8z-0006Dt-Bd for 63065@debbugs.gnu.org; Tue, 25 Apr 2023 05:39:33 -0400 Date: Tue, 25 Apr 2023 09:39:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1682415560; x=1682674760; bh=reieBoPVOlCHD7fEs6GHErbVvGgNb0/KiWWtfyhY+28=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=SaDNwC4jt24wuxieAIitjLUD5satuUwPG6GWjXz0k9bN/pAGTOTyAHYRrZRaD5wYw prZ6UqeawF2ijpbJm4BDfLalVdI75V0szI0hOz+Gc66Jg1jLt/8MPGIrunjWNjvRAN +h0+uCCD0qHy0ia9kTMnYyRnZHP5a8gX2vqwhoeOPS4K+MCE5bz826Ztf91HZB2prR LFWm5ycbImmppBW24jQwSTS7+fvBdUBtF7dtB7GQ4W6msrJo62qpg8S6mkvAmgYI3N NRFMMfJSA6Qy7PfWw466vMr96U0fAHlSfSkvhzKbk6eRZeD9ib9vvJPB6whzxLbQPw QDpPq17b4HyIg== Message-ID: 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-Flow: FLOW_IN X-Migadu-Country: UNKNOWN X-Migadu-Spam-Score: -1.05 X-Spam-Score: -1.05 X-Migadu-Queue-Id: 2D44D425A4 X-Migadu-Scanner: in3.migadu.com X-TUID: AqvvUYdTAHDk * gnu/packages/rust-apps.scm (yabridgectl): New variable. * gnu/packages/patches/yabridgectl-5.0.4-fix-reflink.patch: New file. * gnu/local.mk: Register the patch file. --- gnu/local.mk | 1 + gnu/packages/audio.scm | 52 +++++++++++++++++++ .../yabridgectl-5.0.4-fix-reflink.patch | 28 ++++++++++ 3 files changed, 81 insertions(+) create mode 100644 gnu/packages/patches/yabridgectl-5.0.4-fix-reflink.patc= h diff --git a/gnu/local.mk b/gnu/local.mk index 2bafdc7f02..e56c1169d2 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2039,6 +2039,7 @@ dist_patch_DATA =3D=09=09=09=09=09=09\ %D%/packages/patches/xterm-370-explicit-xcursor.patch=09=09\ %D%/packages/patches/xygrib-fix-finding-data.patch=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-use-system-paths.patch =20 diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index 551c9193c6..9a2735085b 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -73,6 +73,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) @@ -137,6 +138,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) @@ -3563,6 +3565,56 @@ (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 + "08p92a2qx5k2531wr38mrksn7g16j0mz611rwla1m0igfc4r75fp")) + (patches + (search-patches "yabridgectl-5.0.4-fix-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 'install 'wrap-program + (lambda _ + (wrap-program (string-append #$output "/bin/yabridgectl"= ) + `("LD_LIBRARY_PATH" ":" prefix + (,(string-append #$output "/lib"))))))))) + (native-inputs '()) + (inputs (list dbus)) + (synopsis "Utility to set up and update yabridge") + (description + "@command{yabridgectl} is a tool to setup and update @code{yabridge}.= "))) + (define-public patchage (package (name "patchage") diff --git a/gnu/packages/patches/yabridgectl-5.0.4-fix-reflink.patch b/gnu= /packages/patches/yabridgectl-5.0.4-fix-reflink.patch new file mode 100644 index 0000000000..26a82b7c95 --- /dev/null +++ b/gnu/packages/patches/yabridgectl-5.0.4-fix-reflink.patch @@ -0,0 +1,28 @@ +Guix does not allow fetching from remote git repository within build phase= . +This patch refers the packaged reflink. + +From 434d15bab0f7df8848be06633e2c0ec1ef91f9f1 Mon Sep 17 00:00:00 2001 +From: Sughosha +Date: Sun, 23 Apr 2023 10:02:26 +0200 +Subject: [PATCH] Fix reflink. + +--- + 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.39.2