gnu: lttng-tools: Patch default man path.

* gnu/packages/linux.scm (lttng-tools)
[arguments]: Add 'patch-default-man-path after 'unpack phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Olivier Dion 2021-10-25 12:18:43 -04:00 committed by Ludovic Courtès
parent b19250eec6
commit 9b0ee18ba8
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -8167,7 +8167,12 @@ (define-public lttng-tools
(add-before 'configure 'set-environment-variables
(lambda _
(setenv "HOME" "/tmp")
(setenv "LTTNG_HOME" "/tmp"))))))
(setenv "LTTNG_HOME" "/tmp")))
;; We don't put (which "man") here because LTTng uses execlp.
(add-after 'unpack 'patch-default-man-path
(lambda _
(substitute* "src/common/defaults.h"
(("/usr/bin/man") "man")))))))
;; NOTE - Users have to install python-3 in their profile to use the
;; bindings. We don't put it in the inputs, because the rest of the tools
;; can work without it.