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 GMkcB/fcqGQiIQAASxT56A (envelope-from ) for ; Sat, 08 Jul 2023 05:50:15 +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 iMBRBvfcqGRNcQAAG6o9tA (envelope-from ) for ; Sat, 08 Jul 2023 05:50:15 +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 DDB96167C2 for ; Sat, 8 Jul 2023 05:50:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHyxP-0000p7-Li; Fri, 07 Jul 2023 23:50:03 -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 1qHyxO-0000oy-FB for guix-patches@gnu.org; Fri, 07 Jul 2023 23:50:02 -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 1qHyxO-0000HD-44 for guix-patches@gnu.org; Fri, 07 Jul 2023 23:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qHyxN-0000Al-W9 for guix-patches@gnu.org; Fri, 07 Jul 2023 23:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64527] [PATCH 2/2] gnu: bees: Wrap script. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 08 Jul 2023 03:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64527 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64527@debbugs.gnu.org Cc: Hilton Chain Received: via spool by 64527-submit@debbugs.gnu.org id=B64527.1688788196647 (code B ref 64527); Sat, 08 Jul 2023 03:50:01 +0000 Received: (at 64527) by debbugs.gnu.org; 8 Jul 2023 03:49:56 +0000 Received: from localhost ([127.0.0.1]:43992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHyxH-0000AN-ON for submit@debbugs.gnu.org; Fri, 07 Jul 2023 23:49:56 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:39914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHyxE-0000AC-76 for 64527@debbugs.gnu.org; Fri, 07 Jul 2023 23:49:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1688787964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pOVWv6m9Wl3n9d9pMmXWsWxZE01v+rImnujQL10YCEQ=; b=EjpChqAMypUbA4YNYbmhCNOFWimj1uhY6c3m/NRbHizWr4t16cye3pE+7lqpxD6kLNSIDl TgLYaiMKx0/00Qsyn6RE6pJcB8d82D+3VOk28ol9tNjmrSTEsNquic0ABfFNANUihDbzvm BnW7BWs/Y6Giycu7lufxO2B45GYD2Jnke094S8z7myIAYzMIC5wv8kGAPrJJDlrni6AAPb SDLYcjjs2a+BpgU2fAj4a9N9xwClz1elcJtMcDKVqatVW57UZA96AzNZTqGnSWRPBjNdrb StwWtiDA9MdjMm+PION3NO1A7U5PdVovX2HmyDAjnXFHukskIPn7LYXvVT4oQg== Date: Sat, 8 Jul 2023 11:49:55 +0800 Message-Id: In-Reply-To: <45766016e071762b6cffcac63cd43006baeeb7ad.1688787928.git.hako@ultrarare.space> References: <45766016e071762b6cffcac63cd43006baeeb7ad.1688787928.git.hako@ultrarare.space> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: -- 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: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain 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-Seal: i=1; s=key1; d=yhetil.org; t=1688788214; a=rsa-sha256; cv=none; b=GvVErdg2oAQM8uMsdn5UTtUP2pJIB1ARQQmChdrWL2n162gpVwvw74bz6ViggZ0jTQtFdi cHIOb3vCV5NEuj6nUKKyuD0A8Hktr5G6VOCJbSgqpqYGXLBU9zejcLoHDlVftUeEHrEOwr lohPgTFSciIuFwsTGi0V5d1TBsgvRHOBvtgfYw1wT+ld3ZjTlxAsDNE8XoBfhmaPgIop81 qkfoWaFxcHBy4jNYKdCMIx6Cjo/gx7W+D6DlPvtEJmCOjIC287GfbesCWkBED84KGFefrP crvuIquF41DGAE1wgOKznND05b8J7cbQkb7svZ5/AGVJmr1n4iGDnq9lvRpn5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=EjpChqAM; 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=1688788214; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=pOVWv6m9Wl3n9d9pMmXWsWxZE01v+rImnujQL10YCEQ=; b=m4oAbw8rr9C21NtC/f/OZwsGms+eH+e2mjmi6/RWG1Q+Zw9GwTdNjgkLXomQe0WDS7RND4 CNefmoFligeh6zQ7C7Daz9KiTiOCOemlwXhaNijnZjD4VirmDDyt8zSS5oPS5ZOTQnxhQS K5vzl6xNRUp9JbnpvW8D+Env6Eb70Pj9xTAnFwBh794M5YVt7zV5qIVNRHUkOdkqtvys+3 DffkEHWioVQcOWKVj63m4JMGWd1masagx2Q6pm9axAenzRkX3FEHgCj66ojnGWbCY2lK1b rwOG1cgWW6Jwt3wuAz6pkYU2vmnqZWihiJDHIv5FPdISYs7TLrqh+2MiSL8Yzw== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=EjpChqAM; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.57 X-Spam-Score: -2.57 X-Migadu-Queue-Id: DDB96167C2 X-TUID: 1xq1GYg3Flk9 * gnu/packages/file-systems.scm (bees)[arguments]<#:phases>: Remove 'fixpath. Add 'wrap. [inputs]: Add guile-3.0. --- gnu/packages/file-systems.scm | 38 +++++++++++++---------------------- 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 0b024d6b92..52c8224ec1 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -1982,31 +1982,21 @@ (define-public bees #:phases #~(modify-phases %standard-phases (delete 'configure) - (add-after 'unpack 'fixpath + (add-after 'install 'wrap (lambda* (#:key inputs #:allow-other-keys) - (substitute* "scripts/beesd.in" - (((string-append "\\<(" (string-join (list "realpath" - "uuidparse" - "grep" - "false" - "sed" - "true" - "head" - "mkdir" - "mount" - "touch" - "du" - "cut" - "rm" - "truncate" - "chmod") - "|") ")\\>") command) - (search-input-file inputs (string-append "/bin/" command))) - - (("btrfs sub") - (string-append (search-input-file inputs "/bin/btrfs") - " sub")))))))) - (inputs (list btrfs-progs cityhash util-linux)) + (wrap-script (string-append #$output "/sbin/beesd") + `("PATH" suffix + ,(map (lambda (program) + (dirname (search-input-file + inputs (string-append "/bin/" program)))) + '("btrfs" "grep" "sed" + ;; Provided by `util-linux`: + "uuidparse" + ;; Provided by `coreutils`: + ;; "chmod" "cut" "du" "false" "head" "mkdir" + ;; "mount" "realpath" "rm" "touch" "true" + "truncate"))))))))) + (inputs (list btrfs-progs cityhash guile-3.0 util-linux)) (home-page "https://github.com/Zygo/bees") (synopsis "Deduplication agent for btrfs file systems") (description -- 2.40.1