* [bug#39091] [PATCH] gnu: entr: Fix references to external programs
@ 2020-01-11 18:11 Jakub Kądziołka
2020-01-11 21:34 ` bug#39091: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Kądziołka @ 2020-01-11 18:11 UTC (permalink / raw)
To: 39091
* gnu/packages/entr.scm (entr)[remove-fhs-file-names]: Use (which)
instead of relying on the runtime PATH. Patch the path for /bin/sh
too.
* gnu/packages/entr.scm (entr)[inputs]: Add a dependency on ncurses to
get the path of the clear binary it provides.
---
gnu/packages/entr.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/entr.scm b/gnu/packages/entr.scm
index d0111452df..3b006e2d85 100644
--- a/gnu/packages/entr.scm
+++ b/gnu/packages/entr.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -20,6 +21,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages entr)
+ #:use-module (gnu packages ncurses)
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
@@ -52,11 +54,13 @@
(invoke "./configure"))))
(add-before 'build 'remove-fhs-file-names
(lambda _
- ;; Use the tools available in $PATH.
(substitute* "entr.c"
- (("/bin/cat") "cat")
- (("/usr/bin/clear") "clear"))
+ (("/bin/sh") (which "sh"))
+ (("/bin/cat") (which "cat"))
+ (("/usr/bin/clear") (which "clear")))
#t)))))
+ ;; ncurses provides the `clear' binary
+ (inputs `(("ncurses" ,ncurses)))
(home-page "http://entrproject.org/")
(synopsis "Run arbitrary commands when files change")
(description
--
2.24.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#39091: [PATCH] gnu: entr: Fix references to external programs
2020-01-11 18:11 [bug#39091] [PATCH] gnu: entr: Fix references to external programs Jakub Kądziołka
@ 2020-01-11 21:34 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-01-11 21:34 UTC (permalink / raw)
To: Jakub Kądziołka; +Cc: 39091-done
Hi,
Jakub Kądziołka <kuba@kadziolka.net> skribis:
> * gnu/packages/entr.scm (entr)[remove-fhs-file-names]: Use (which)
> instead of relying on the runtime PATH. Patch the path for /bin/sh
> too.
> * gnu/packages/entr.scm (entr)[inputs]: Add a dependency on ncurses to
> get the path of the clear binary it provides.
Committed with tweaks to the commit log.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-11 21:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-11 18:11 [bug#39091] [PATCH] gnu: entr: Fix references to external programs Jakub Kądziołka
2020-01-11 21:34 ` bug#39091: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).