emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42988: closed ([PATCH] gnu: lesspipe: Patch paths to inputs.)


From: GNU bug Tracking System
Subject: bug#42988: closed ([PATCH] gnu: lesspipe: Patch paths to inputs.)
Date: Sat, 22 Aug 2020 21:48:02 +0000

Your message dated Sat, 22 Aug 2020 17:46:59 -0400
with message-id <20200822214659.GB30500@jasmine.lan>
and subject line Re: [bug#42988] [PATCH] gnu: lesspipe: Patch paths to inputs.
has caused the debbugs.gnu.org bug report #42988,
regarding [PATCH] gnu: lesspipe: Patch paths to inputs.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
42988: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42988
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: lesspipe: Patch paths to inputs. Date: Sat, 22 Aug 2020 18:40:12 +0200
* gnu/packages/less.scm (lesspipe)[arguments]: Add phase to patch
paths to tput and file.
---
 gnu/packages/less.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/less.scm b/gnu/packages/less.scm
index f6ee355b68..7c5107de09 100644
--- a/gnu/packages/less.scm
+++ b/gnu/packages/less.scm
@@ -80,7 +80,17 @@ text editors.")
                         (invoke "./configure"
                                 (string-append "--prefix=" out)
                                 "--yes")
-                        #t))))))
+                        #t)))
+                  (add-before 'install 'patch-tput-and-file
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      (substitute* "lesspipe.sh"
+                        (("tput colors")
+                         (string-append (assoc-ref inputs "ncurses")
+                                        "/bin/tput colors"))
+                        (("file -")
+                         (string-append (assoc-ref inputs "file")
+                                        "/bin/file -")))
+                      #t)))))
     (inputs
      `(("file" ,file)
        ("ncurses" ,ncurses)))  ; for tput
-- 
2.28.0




--- End Message ---
--- Begin Message --- Subject: Re: [bug#42988] [PATCH] gnu: lesspipe: Patch paths to inputs. Date: Sat, 22 Aug 2020 17:46:59 -0400
On Sat, Aug 22, 2020 at 06:40:12PM +0200, Michael Rohleder wrote:
> * gnu/packages/less.scm (lesspipe)[arguments]: Add phase to patch
> paths to tput and file.

Thanks! Pushed as 5a4990b98260ba85b8b93d6ac43d871e370d6983


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]