gnu: xournalpp: Fix path to addr2line binary.
authorLars-Dominik Braun <lars@6xq.net>
Sun, 6 Sep 2020 15:27:54 +0000 (17:27 +0200)
committerMathieu Othacehe <othacehe@gnu.org>
Mon, 7 Sep 2020 06:49:03 +0000 (08:49 +0200)
* 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

index 7649bff..4c11111 100644 (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