[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/20: gnu: lsyncd: Search $PATH for binaries.
From: |
guix-commits |
Subject: |
19/20: gnu: lsyncd: Search $PATH for binaries. |
Date: |
Wed, 21 Aug 2019 18:48:57 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit d0d54a61d3c245d32f1de3427fe279a5de4ea9f1
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Mon Jun 3 18:50:58 2019 +0200
gnu: lsyncd: Search $PATH for binaries.
* gnu/packages/sync.scm (lsyncd)[arguments]: Add
‘search-$PATH-for-binaries’ phase.
---
gnu/packages/sync.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/sync.scm b/gnu/packages/sync.scm
index 1c80b79..ccebe40 100644
--- a/gnu/packages/sync.scm
+++ b/gnu/packages/sync.scm
@@ -183,8 +183,20 @@ their folder.
#:test-target "tests"
#:phases
(modify-phases %standard-phases
- ;; No install target.
+ (add-after 'unpack 'search-$PATH-for-binaries
+ ;; lsyncd requires and hard-codes absolute file names to binaries.
+ ;; Make it fall back to searching $PATH for relative file names.
+ (lambda _
+ (substitute* "lsyncd.c"
+ (("execv\\(") "execvp("))
+ (substitute* (list "lsyncd.lua"
+ "default-direct.lua"
+ "default-rsync.lua"
+ "default-rsyncssh.lua")
+ (("(|/usr)/bin/") ""))
+ #t))
(replace 'install
+ ;; No install target.
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
- 06/20: gnu: manaplus: Update to 1.9.3.23., (continued)
- 06/20: gnu: manaplus: Update to 1.9.3.23., guix-commits, 2019/08/21
- 14/20: gnu: fluidsynth: Update to 2.0.6., guix-commits, 2019/08/21
- 02/20: gnu: csound: Update to 6.13.0., guix-commits, 2019/08/21
- 10/20: gnu: libabw: Don't use NAME in source URI., guix-commits, 2019/08/21
- 20/20: gnu: ccache: Update to 3.6., guix-commits, 2019/08/21
- 07/20: gnu: manaplus: Use HTTPS origin & home page., guix-commits, 2019/08/21
- 08/20: gnu: setbfree: Update to 0.8.9., guix-commits, 2019/08/21
- 03/20: gnu: angband: Update to 4.2.0., guix-commits, 2019/08/21
- 12/20: gnu: getmail: Update to 5.14., guix-commits, 2019/08/21
- 17/20: gnu: hcxtools: Update to 5.2.0., guix-commits, 2019/08/21
- 19/20: gnu: lsyncd: Search $PATH for binaries.,
guix-commits <=
- 15/20: gnu: tmux: Use HTTPS home page., guix-commits, 2019/08/21