guix-commits
[Top][All Lists]
Advanced

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

02/07: gnu: xournalpp: Fix path to addr2line binary.


From: guix-commits
Subject: 02/07: gnu: xournalpp: Fix path to addr2line binary.
Date: Mon, 7 Sep 2020 02:49:33 -0400 (EDT)

mothacehe pushed a commit to branch master
in repository guix.

commit 226bb93494377054614f0d212c2930aef4ff0cf0
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sun Sep 6 17:27:54 2020 +0200

    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>
---
 gnu/packages/pdf.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 7649bff..4c11111 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -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



reply via email to

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