diff mbox series

[bug#42229,[PATCH,v3] 4/4] gnu: pjproject-jami: Fix assertion bug.

Message ID 20200712160049.6541-4-tona_kosmicznego_smiecia@interia.pl
State Accepted
Headers show
Series [bug#42229,[PATCH,v3] 4/4] gnu: pjproject-jami: Fix assertion bug. | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job

Commit Message

Jan Wielkiewicz July 12, 2020, 4 p.m. UTC
This fixes the bug where Jami crashes while disconnecting
from an audio call.

* gnu/packages/jami.scm (pjproject-jami)[arguments]:
Use -DNDEBUG compiler flag.
---
 gnu/packages/jami.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm
index b164169e66..0fb547e233 100644
--- a/gnu/packages/jami.scm
+++ b/gnu/packages/jami.scm
@@ -142,8 +142,10 @@ 
              ;; against pjproject-jami:
              ;;   relocation R_X86_64_32S against `.rodata' can not be used when
              ;;   making a shared object;
-             "CFLAGS=-fPIC"
-             "CXXFLAGS=-fPIC")
+             ;; -DNDEBUG is needed to prevent assertion from happening and
+             ;; stopping the daemon.
+             "CFLAGS=-fPIC -DNDEBUG"
+             "CXXFLAGS=-fPIC -DNDEBUG")
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'make-git-checkout-writable