From patchwork Sat Jul 13 18:14:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Famulari X-Patchwork-Id: 29269 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 AD36727BBEC; Sat, 13 Jul 2024 19:15:19 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham 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 B2A7D27BBE2 for ; Sat, 13 Jul 2024 19:15:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sShGw-0002tc-K9; Sat, 13 Jul 2024 14:15:02 -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 1sShGv-0002t2-1g for guix-patches@gnu.org; Sat, 13 Jul 2024 14:15:01 -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 1sShGu-0000xx-Po for guix-patches@gnu.org; Sat, 13 Jul 2024 14:15:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sShGv-0000IO-N1 for guix-patches@gnu.org; Sat, 13 Jul 2024 14:15:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72096] [PATCH v--thread=shallow 2/2] gnu: borg: Update to 1.4.0. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Jul 2024 18:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72096 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 72096@debbugs.gnu.org Received: via spool by 72096-submit@debbugs.gnu.org id=B72096.17208944841085 (code B ref 72096); Sat, 13 Jul 2024 18:15:01 +0000 Received: (at 72096) by debbugs.gnu.org; 13 Jul 2024 18:14:44 +0000 Received: from localhost ([127.0.0.1]:56772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sShGd-0000HQ-Kq for submit@debbugs.gnu.org; Sat, 13 Jul 2024 14:14:44 -0400 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]:55097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sShGc-0000HE-JT for 72096@debbugs.gnu.org; Sat, 13 Jul 2024 14:14:43 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 7EF53138014A; Sat, 13 Jul 2024 14:14:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 13 Jul 2024 14:14:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=mesmtp; t=1720894476; x= 1720980876; bh=dD+6voK3X9NKm2/zfu737xstfxVqnePOO0G6AVBhTrQ=; b=v hArjsySfqP39tun+FfcWudrP2+lEsRyIuqql1I0XdDUDwfzsAPzd4joY0G5T0K8+ Y9ky8VNQl8P8ZBiKhs0WnyuYM4FqwRwUt0ruVE32QLS6fab248YLANsXsDZNYbSZ 0zJIazZLi0vZFmvGb2arAZWi4PoYPoSjeIcWUS9sZs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1720894476; x=1720980876; bh=dD+6voK3X9NKm 2/zfu737xstfxVqnePOO0G6AVBhTrQ=; b=QBPsCk7Uox1fQL6uP4j32WlpB8Zsh stk/KcJnWHoY84Vf/T6PhcMCOOe/aMR2/A+HyCV2gG6vDgZRsGt83uSkF3uvIvEW N/XZnbjp300WNCQQP5Zo3DcYM1UN8mBKwXx8HtkDl0tQB0KGcDaTYLAZkwF9J3lI RPVqV1JVWazZjyfjARjEowBySUy5cEvscRfsxuUzudhc0wNc/0+v76OT3OrW/E/L ZogJyvDLqp0/h/9PaPs9woeHuGNpcVaQHKfPHeJ5gHx/yuq54MepNR8Pgbrt1hdy ehf6rmEa65Z2DZqZVAdHXXm/Mh/W8pjV/swWIBsyJGT37RsE30T2hxDeQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrfeekgdduvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgr rhhirdhnrghmvgeqnecuggftrfgrthhtvghrnhephfeggeetiedtvdduudevueehvdehhf efhefghedvhfdugeeukeehvdfhfffhhfegnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Feedback-ID: i819c4023:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <72096@debbugs.gnu.org>; Sat, 13 Jul 2024 14:14:35 -0400 (EDT) From: Leo Famulari Date: Sat, 13 Jul 2024 14:14:29 -0400 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: <48cb877e625a319f0732f4063a19e7df345c226e.1720894469.git.leo@famulari.name> References: <48cb877e625a319f0732f4063a19e7df345c226e.1720894469.git.leo@famulari.name> 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/backup.scm (borg): Update to 1.4.0. [source]: Remove obsolete snippet components. [arguments]: Export a newly required environment variable in the 'set-env' phase. Adjust the custom 'install-doc' phase to install miscellaneous documentation into a directory named after the package name and version. Change-Id: I688bb4e6c67506226418b6b4a47595f2a10c10ae --- gnu/packages/backup.scm | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 637a873fbf..fbad03ebbc 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -675,14 +675,13 @@ (define-public libchop (define-public borg (package (name "borg") - (version "1.2.8") + (version "1.4.0") (source (origin (method url-fetch) (uri (pypi-uri "borgbackup" version)) (sha256 - (base32 "1aplj54x6hcyg3mnzscnwi07npy7nrws2246ss25ax6bsaq257fk")) - (modules '((guix build utils))) + (base32 "0agdyrmj7yy2vn0qghcpq458v9d09q9jvzzrszz6dyj3aqalak65")) (snippet #~(begin ;; Delete files generated by Cython. We used to have a regex that @@ -701,11 +700,7 @@ (define-public borg "src/borg/platform/linux.c" "src/borg/platform/posix.c" "src/borg/platform/syncfilerange.c" - "src/borg/platform/windows.c")) - ;; Remove bundled shared libraries. - (with-directory-excursion "src/borg/algorithms" - (for-each delete-file-recursively - (list "lz4" "xxh64" "zstd"))))))) + "src/borg/platform/windows.c")))))) (build-system python-build-system) (arguments (list @@ -716,10 +711,12 @@ (define-public borg #~(modify-phases %standard-phases (add-after 'unpack 'set-env (lambda* (#:key inputs #:allow-other-keys) - (let ((openssl #$(this-package-input "openssl")) + (let ((acl #$(this-package-input "acl")) + (openssl #$(this-package-input "openssl")) (lz4 #$(this-package-input "lz4")) (xxhash #$(this-package-input "xxhash")) (zstd #$(this-package-input "zstd"))) + (setenv "BORG_LIBACL_PREFIX" acl) (setenv "BORG_OPENSSL_PREFIX" openssl) (setenv "BORG_LIBLZ4_PREFIX" lz4) (setenv "BORG_LIBXXHASH_PREFIX" xxhash) @@ -756,7 +753,8 @@ (define-public borg (add-after 'install 'install-doc (lambda _ (let ((man (string-append #$output "/share/man/man1")) - (misc (string-append #$output "/share/borg/misc"))) + (misc (string-append #$output "/share/doc/borg-" + #$(package-version this-package)))) (for-each (cut install-file <> misc) '("docs/misc/create_chunker-params.txt" "docs/misc/borg-data-flow.png"