Subject: bug#60250: closed (Re: bug#60250: [PATCH] gnu: Add bees.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 17 Jan 2023 15:03:02 +0000

Your bug report

#60250: [PATCH] gnu: Add bees.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
60250: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60250
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#60250: [PATCH] gnu: Add bees.
From: Ludovic Courtès <[email-masked]>
To: Hilton Chain <[email-masked]>
Cc: [email-masked], Adam Faiz <[email-masked]>
Date: Tue, 17 Jan 2023 16:02:39 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Hilton Chain <[email-masked]> skribis:

> * gnu/packages/patches/bees-beesd-honor-destdir-on-installation.patch: New
> file.
> * gnu/local.mk (dist_patch_DATA): Add it.
> * gnu/packages/file-systems.scm (bees): New variable.
> ---
> v1 -> v2:
> 1. Unbundle cityhash.
> 2. Patch beesd.in for DESTDIR handling.
> 3. Modify beesd.in to use absolute paths of commands.

Applied, thanks!

Ludo’.

Subject: [PATCH] gnu: Add bees.
From: Hilton Chain <[email-masked]>
To: [email-masked]
Date: Thu, 22 Dec 2022 16:19:43 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/file-systems.scm (bees): New variable.
---
 gnu/packages/file-systems.scm | 39 +++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index 57a25a0d90..cce406a01d 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -1766,3 +1766,42 @@ (define-public udftools
 and other optical media.  It supports read-only media (DVD/CD-R)
 and rewritable media that wears out (DVD/CD-RW).")
     (license license:gpl2+)))
+
+(define-public bees
+  (package
+    (name "bees")
+    (version "0.8")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/Zygo/bees")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1kxpz1p9k5ir385kpvmfjawki5vg22hlx768k7835w6n5z5a65y4"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:test-target "test"
+           #:make-flags
+           #~(list (string-append "CC=" #$(cc-for-target))
+                   (string-append "DESTDIR=" #$output)
+                   (string-append "BEES_VERSION=" #$version)
+                   "PREFIX=''"
+                   "LIBEXEC_PREFIX=/lib/bees")
+           #:phases
+           #~(modify-phases %standard-phases
+               (delete 'configure)
+               (add-after 'install 'fix-path
+                 (lambda _
+                   (substitute* (string-append #$output "/sbin/beesd")
+                     (("/lib/bees/bees" all)
+                      (string-append #$output all))))))))
+    (home-page "https://github.com/Zygo/bees")
+    (synopsis "Best-Effort Extent-Same, a btrfs dedupe agent")
+    (description
+     "@code{bees} is a block-oriented userspace deduplication agent designed
+for large btrfs filesystems.  It is an offline dedupe combined with an
+incremental data scan capability to minimize time data spends on disk from
+write to dedupe.")
+    (license license:gpl3+)))

base-commit: 0744540d09ddef8dbf25cc5d65da9d029dab338c
-- 
2.38.1