From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wE6UB4UJLl+GYwAA0tVLHw (envelope-from ) for ; Sat, 08 Aug 2020 02:10:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WPdwA4UJLl+OCgAAB5/wlQ (envelope-from ) for ; Sat, 08 Aug 2020 02:10:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 47B1494062F for ; Sat, 8 Aug 2020 02:10:12 +0000 (UTC) Received: from localhost ([::1]:58902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4EJG-0002kq-Jj for larch@yhetil.org; Fri, 07 Aug 2020 22:10:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4EJ8-0002kF-Kv for bug-guix@gnu.org; Fri, 07 Aug 2020 22:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k4EJ8-0005tz-A7 for bug-guix@gnu.org; Fri, 07 Aug 2020 22:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k4EJ8-0006Y1-2S for bug-guix@gnu.org; Fri, 07 Aug 2020 22:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#40408: emacs-telega: VoIP doesn't work Resent-From: Brett Gilio Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 08 Aug 2020 02:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40408 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Diego Nicola Barbato Received: via spool by 40408-submit@debbugs.gnu.org id=B40408.159685259325151 (code B ref 40408); Sat, 08 Aug 2020 02:10:02 +0000 Received: (at 40408) by debbugs.gnu.org; 8 Aug 2020 02:09:53 +0000 Received: from localhost ([127.0.0.1]:57792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4EIu-0006XW-Re for submit@debbugs.gnu.org; Fri, 07 Aug 2020 22:09:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k4EIr-0006X6-3H for 40408@debbugs.gnu.org; Fri, 07 Aug 2020 22:09:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38903) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4EIl-0005t2-Nt; Fri, 07 Aug 2020 22:09:39 -0400 Received: from [2605:6000:1a0d:48fb::e9] (port=47970 helo=lenovo-t430) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k4EIl-0005Sg-8f; Fri, 07 Aug 2020 22:09:39 -0400 From: Brett Gilio References: <87ftdk1rbz.fsf@GlaDOS.home> <20200403163002.GB3560@jasmine.lan> <87lfn6xhli.fsf@GlaDOS.home> Date: Fri, 07 Aug 2020 21:09:54 -0500 In-Reply-To: <87lfn6xhli.fsf@GlaDOS.home> (Diego Nicola Barbato's message of "Wed, 08 Apr 2020 14:55:05 +0200") Message-ID: <877du9dh1p.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 40408@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: 04gl2vdCbor9 Diego Nicola Barbato writes: > 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 > >>>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.") Hi all, I apologize for the late response to this message. When it was sent I was on haitus. I am a co-maintainer for emacs-telega upstream along with Evgeny Zajcev. Currently the functionality for VoIP is broken, and has been disabled in the emacs-telega package for the time being. However, I believe you have patched a bug with the libtgvoip package that caused erroneous linkage to the system libraries on foreign distributions causing a runtime issue with the telega server. So, I will investigate your patch, and apply it so that when the time comes and VoIP functionality is re-enabled we can prevent this issue! Thank you, I will forward this along to Evgeny as well. Brett Gilio