gnu: xournalpp: Fix path to addr2line binary.

* gnu/packages/pdf.scm (xournalpp)[arguments]: Add phase substituting path of
addr2line utility.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
Lars-Dominik Braun 2020-09-06 17:27:54 +02:00 committed by Mathieu Othacehe
parent ff4260d2ba
commit 226bb93494
No known key found for this signature in database
GPG Key ID: 8354763531769CA6

View File

@ -848,6 +848,14 @@ using a stylus.")
(for-each (lambda (po) (chmod po #o666))
(find-files "." "\\.po$"))
#t))
;; Fix path to addr2line utility, which the crash reporter uses.
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/util/Stacktrace.cpp"
;; Match only the commandline.
(("\"addr2line ")
(string-append "\"" (which "addr2line") " ")))
#t))
(add-after 'install 'glib-or-gtk-wrap
(assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
(native-inputs