[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: libtgvoip: Fix loading of shared libraries.
From: |
guix-commits |
Subject: |
branch master updated: gnu: libtgvoip: Fix loading of shared libraries. |
Date: |
Fri, 07 Aug 2020 22:12:27 -0400 |
This is an automated email from the git hooks/post-receive script.
brettgilio pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 5804143 gnu: libtgvoip: Fix loading of shared libraries.
5804143 is described below
commit 580414376b03f2430050f8b5405631f4d7e7e8e3
Author: Diego Nicola Barbato <dnbarbato@posteo.de>
AuthorDate: Sat Apr 4 19:36:31 2020 +0200
gnu: libtgvoip: Fix loading of shared libraries.
* gnu/packages/telephony.scm (libtgvoip)[arguments]<#:phases>[patch-dlopen]:
New phase.
Fixes <https://debbugs.gnu.org/40408>.
Signed-off-by: Brett Gilio <brettg@gnu.org>
---
gnu/packages/telephony.scm | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm
index 58df4f5..be50ab3 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.")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: libtgvoip: Fix loading of shared libraries.,
guix-commits <=