guix-commits
[Top][All Lists]
Advanced

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

01/03: gnu: wsjtx: Fix undefined symbol error when starting the program.


From: guix-commits
Subject: 01/03: gnu: wsjtx: Fix undefined symbol error when starting the program.
Date: Thu, 14 May 2020 11:19:00 -0400 (EDT)

glv pushed a commit to branch master
in repository guix.

commit b79794a7630a04668d2769aee50ebc25e0d7c3d2
Author: Guillaume Le Vaillant <address@hidden>
AuthorDate: Thu May 14 16:57:42 2020 +0200

    gnu: wsjtx: Fix undefined symbol error when starting the program.
    
    * gnu/packages/radio.scm (wsjtx)[arguments]: Add 'work-around-runtime-bug'
      phase.
---
 gnu/packages/radio.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 6a91954..2eb0a82 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -845,7 +845,20 @@ users.")
        ("qtmultimedia" ,qtmultimedia)
        ("qtserialport" ,qtserialport)))
     (arguments
-     `(#:tests? #f)) ; No test suite
+     `(#:tests? #f ; No test suite
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'work-around-runtime-bug
+           (lambda _
+             ;; Some of the programs in this package fail to find symbols
+             ;; in libm at runtime. Adding libm manually at the end of the
+             ;; library lists when linking the programs seems to help.
+             ;; TODO: find exactly what is wrong in the way the programs
+             ;; are built.
+             (substitute* "CMakeLists.txt"
+               (("target_link_libraries \\((.*)\\)" all libs)
+                (string-append "target_link_libraries (" libs " m)")))
+             #t)))))
     (synopsis "Weak-signal ham radio communication program")
     (description
      "WSJT-X implements communication protocols or modes called FT4, FT8,



reply via email to

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