From 580414376b03f2430050f8b5405631f4d7e7e8e3 Mon Sep 17 00:00:00 2001 From: Diego Nicola Barbato Date: Sat, 4 Apr 2020 19:36:31 +0200 Subject: gnu: libtgvoip: Fix loading of shared libraries. * gnu/packages/telephony.scm (libtgvoip)[arguments]<#:phases>[patch-dlopen]: New phase. Fixes . Signed-off-by: Brett Gilio --- gnu/packages/telephony.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index 58df4f5f00..be50ab3c95 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -889,6 +889,23 @@ Initiation Protocol (SIP) and a multimedia framework.") ("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.") -- cgit v1.2.3