From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Nicola Barbato Subject: bug#40408: emacs-telega: VoIP doesn't work Date: Wed, 08 Apr 2020 14:55:05 +0200 Message-ID: <87lfn6xhli.fsf@GlaDOS.home> References: <87ftdk1rbz.fsf@GlaDOS.home> <20200403163002.GB3560@jasmine.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39180) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMAFS-0007hz-Mh for bug-guix@gnu.org; Wed, 08 Apr 2020 08:56:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMAFR-0003Um-EM for bug-guix@gnu.org; Wed, 08 Apr 2020 08:56:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMAFO-0003SD-BO for bug-guix@gnu.org; Wed, 08 Apr 2020 08:56:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jMAFO-00015X-73 for bug-guix@gnu.org; Wed, 08 Apr 2020 08:56:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20200403163002.GB3560@jasmine.lan> (Leo Famulari's message of "Fri, 3 Apr 2020 12:30:02 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Leo Famulari Cc: 40408@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi, Leo Famulari writes: > On Fri, Apr 03, 2020 at 06:12:16PM +0200, Diego Nicola Barbato wrote: >> The following error messages in .telega/telega-voip.log seem relevant: >> >> --8<---------------cut here---------------start------------->8--- >> 04-01 20:04:04 E: Error loading libpulse: (null) >> 04-01 20:04:04 E: Error loading libasound: (null) >> 04-01 20:04:04 E: Error loading libasound: (null) >> 04-01 20:04:04 E: Error initializing audio playback >> --8<---------------cut here---------------end--------------->8--- > > I'd guess those libraries should be dependencies of this package. I > would move it to the telephony module as well. Turns out the libraries are dependencies of libtgvoip. It tries to dlopen them, but doesn't find them. I've attached a patch to fix that. Unfortunately VoIP still doesn't work in Telega (it still fails in the same way as before, except that there are no more error messages in .telega/telega-voip.log). It looks like that's a separate, unrelated issue. Regards, Diego --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-libtgvoip-Fix-loading-of-shared-libraries.patch >From f63cf832869bee91f3f6e87c076bd1e39d32c285 Mon Sep 17 00:00:00 2001 From: Diego Nicola Barbato Date: Sat, 4 Apr 2020 19:36:31 +0200 Subject: [PATCH] gnu: libtgvoip: Fix loading of shared libraries. Fixes . * gnu/packages/telephony.scm (libtgvoip)[arguments]<#:phases>[patch-dlopen]: New phase. --- gnu/packages/telephony.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index f64cdd3fb2..f73efb0deb 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -1046,6 +1046,23 @@ This package provides the Jami client for the GNOME desktop.") ("libopusenc" ,libopusenc) ("openssl" ,openssl) ("pulseaudio" ,pulseaudio))) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; libtgvoip wants to dlopen libpulse and libasound, so tell it where + ;; they are. + (add-after 'unpack 'patch-dlopen + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "os/linux/AudioPulse.cpp" + (("libpulse\\.so") + (string-append (assoc-ref inputs "pulseaudio") + "/lib/libpulse.so"))) + (substitute* '("os/linux/AudioInputALSA.cpp" + "os/linux/AudioOutputALSA.cpp") + (("libasound\\.so") + (string-append (assoc-ref inputs "alsa-lib") + "/lib/libasound.so"))) + #t))))) (synopsis "VoIP library for Telegram clients") (description "A collection of libraries and header files for implementing telephony functionality into custom Telegram clients.") -- 2.26.0 --=-=-=--