GNU bug report logs - #42988
[PATCH] gnu: lesspipe: Patch paths to inputs.

Previous Next

Package: guix-patches;

Reported by: Michael Rohleder <mike <at> rohleder.de>

Date: Sat, 22 Aug 2020 16:41:02 UTC

Severity: normal

Tags: patch

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Michael Rohleder <mike <at> rohleder.de>
Subject: bug#42988: closed (Re: [bug#42988] [PATCH] gnu: lesspipe: Patch
 paths to inputs.)
Date: Sat, 22 Aug 2020 21:48:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#42988: [PATCH] gnu: lesspipe: Patch paths to inputs.

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 42988 <at> debbugs.gnu.org.

-- 
42988: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42988
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Leo Famulari <leo <at> famulari.name>
To: Michael Rohleder <mike <at> rohleder.de>
Cc: 42988-done <at> debbugs.gnu.org
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

[Message part 3 (message/rfc822, inline)]
From: Michael Rohleder <mike <at> rohleder.de>
To: guix-patches <at> gnu.org
Cc: Michael Rohleder <mike <at> rohleder.de>
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




This bug report was last modified 4 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.