* [bug#64527] [PATCH 1/2] gnu: bees: Update to 0.10.
@ 2023-07-08 3:46 Hilton Chain via Guix-patches via
2023-07-08 3:49 ` [bug#64527] [PATCH 2/2] gnu: bees: Wrap script Hilton Chain via Guix-patches via
0 siblings, 1 reply; 4+ messages in thread
From: Hilton Chain via Guix-patches via @ 2023-07-08 3:46 UTC (permalink / raw)
To: 64527; +Cc: Hilton Chain
* gnu/packages/file-systems.scm (bees): Update to 0.10.
---
gnu/packages/file-systems.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index dd84696316..0b024d6b92 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -1951,7 +1951,7 @@ (define-public fuse-overlayfs
(define-public bees
(package
(name "bees")
- (version "0.9.2")
+ (version "0.10")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -1970,7 +1970,7 @@ (define-public bees
(("#include .crucible/city.h.") "#include <city.h>"))))
(sha256
(base32
- "0xik1xg6ma5yglhvs60ny27242iapqwzikmqbgij1avjffs6776a"))))
+ "1j1v9bxijs8gvrb7rg0q1158xjvmfc8dlzwx768fxf3w8w2gfwvz"))))
(build-system gnu-build-system)
(arguments
(list #:test-target "test"
base-commit: 3db685cb2e2ce2a4b29c62d28a66201b2eba018f
--
2.40.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#64527] [PATCH 2/2] gnu: bees: Wrap script.
2023-07-08 3:46 [bug#64527] [PATCH 1/2] gnu: bees: Update to 0.10 Hilton Chain via Guix-patches via
@ 2023-07-08 3:49 ` Hilton Chain via Guix-patches via
2023-07-18 11:42 ` [bug#64527] [PATCH 1/2] gnu: bees: Update to 0.10 宋文武 via Guix-patches via
0 siblings, 1 reply; 4+ messages in thread
From: Hilton Chain via Guix-patches via @ 2023-07-08 3:49 UTC (permalink / raw)
To: 64527; +Cc: Hilton Chain
* 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#64527] [PATCH 1/2] gnu: bees: Update to 0.10.
2023-07-08 3:49 ` [bug#64527] [PATCH 2/2] gnu: bees: Wrap script Hilton Chain via Guix-patches via
@ 2023-07-18 11:42 ` 宋文武 via Guix-patches via
2023-07-19 13:44 ` bug#64527: " Hilton Chain via Guix-patches via
0 siblings, 1 reply; 4+ messages in thread
From: 宋文武 via Guix-patches via @ 2023-07-18 11:42 UTC (permalink / raw)
To: Hilton Chain; +Cc: 64527
Hilton Chain <hako@ultrarare.space> writes:
> * gnu/packages/file-systems.scm (bees)[arguments]<#:phases>: Remove 'fixpath.
> Add 'wrap.
> - (substitute* "scripts/beesd.in"
> [...]
> + (wrap-script (string-append #$output "/sbin/beesd")
> [...]
Hello, does the 'substitute*' broken? or why should we prefer
wrap-script over hardcode paths in the original executables?
Also bee was updated to 0.10 already in commit 34d7eb9721.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-07-19 13:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-08 3:46 [bug#64527] [PATCH 1/2] gnu: bees: Update to 0.10 Hilton Chain via Guix-patches via
2023-07-08 3:49 ` [bug#64527] [PATCH 2/2] gnu: bees: Wrap script Hilton Chain via Guix-patches via
2023-07-18 11:42 ` [bug#64527] [PATCH 1/2] gnu: bees: Update to 0.10 宋文武 via Guix-patches via
2023-07-19 13:44 ` bug#64527: " Hilton Chain via Guix-patches via
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.