Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: net/tdesktop should LIB_DEPEND on security/libsrtp on 7.8
To:
izzy Meyer <izder456@disroot.org>
Cc:
ports@openbsd.org, noiseless-ak@yandex.ru, kn@openbsd.org
Date:
Thu, 23 Oct 2025 16:19:08 +0100

Download raw body.

Thread
On 2025/10/23 09:49, izzy Meyer wrote:
> Hello ports@ (CC'd maintainer(s))
> 
> ~ $ Telegram
> ld.so: Telegram: can't load library 'libsrtp2.so.6.0'
> zsh: killed     Telegram
> 
> pkg_add'ing the library allows for the port binary "Telegram" to work.
> 
> Thus, net/tdesktop should have security/libsrtp as a LIB_DEPEND

that would be a diff like this (LIB_DEPENDS is not valid unless you have
a matching WANTLIB)

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/tdesktop/Makefile,v
diff -u -p -r1.192 Makefile
--- Makefile	14 Sep 2025 15:24:01 -0000	1.192
+++ Makefile	23 Oct 2025 15:18:35 -0000
@@ -6,6 +6,7 @@ NOT_FOR_ARCHS =		${BE_ARCHS} i386
 COMMENT =		Telegram Desktop messenger
 PORTROACH =		limit:-full$$
 V =			6.1.3
+REVISION =		0
 DISTNAME =		tdesktop-${V}-full
 PKGNAME =		${DISTNAME:-full=}
 CATEGORIES =		net
@@ -38,7 +39,7 @@ WANTLIB += ada avcodec avfilter avformat
 WANTLIB += gio-2.0 glib-2.0 gobject-2.0 hunspell-1.7 jpeg lz4
 WANTLIB += m openal protobuf-lite qrcodegencpp rnnoise swresample
 WANTLIB += swscale tg_owt xcb xcb-keysyms xcb-record xcb-screensaver
-WANTLIB += xxhash z
+WANTLIB += xxhash z srtp2
 
 # C++20
 COMPILER =		base-clang ports-gcc
@@ -72,6 +73,7 @@ LIB_DEPENDS =		archivers/lz4 \
 			graphics/jpeg \
 			graphics/qr-code-generator>=1.7.0p1 \
 			net/tg_owt>=0.0.0.20250601 \
+			security/libsrtp \
 			sysutils/xxhash \
 			textproc/hunspell \
 			www/ada \