Bug 6216

Summary: Add a dependency to libdispatch
Product: Fedora Reporter: Jesús Abelardo Saldívar Aguilar <lalo>
Component: telegram-desktopAssignee: Alexey <alexfails>
Status: RESOLVED INVALID    
Severity: normal CC: leigh123linux
Priority: P1    
Version: f35   
Hardware: aarch64   
OS: GNU/Linux   
namespace:

Description Jesús Abelardo Saldívar Aguilar 2022-02-13 05:45:38 CET
I installed telegram-desktop from rpmfusion

When I tried to launch it, it didn't run. Then I ran `telegram-desktop` on a terminal, and this was the output:

```
telegram-desktop: error while loading shared libraries: libdispatch.so: cannot open shared object file: No such file or directory

```

So telegram-desktop depends on libdispatch.

I installed libdispatch with `sudo dnf install libdispatch`, and after that telegram-desktop runs whitout problems.
Comment 1 leigh scott 2022-02-17 09:20:46 CET


$ sudo dnf repoquery --requires telegram-desktop |grep libdispatch
Last metadata expiration check: 0:44:33 ago on Thu 17 Feb 2022 07:53:52 GMT.
libdispatch.so()(64bit)
Comment 2 Jesús Abelardo Saldívar Aguilar 2022-02-17 20:18:56 CET
You are right: telegram-desktop already depends on libdispatch. But gnome-software did let me install telegram-desktop without installing libdispatch.

Could this be a bug on packagekit, gnome-software, dnf or something like that?
Comment 3 leigh scott 2022-02-17 20:27:38 CET
dnf works ok, the issue is probably caused by packagekit/gnome-software
Comment 4 Jesús Abelardo Saldívar Aguilar 2022-02-17 20:42:22 CET
I think this has something to do with swift-lang package, which I have installed on my computer.

Swift Lang installs it's own version of libdispatch.so in /usr/libexec/swift/lib/swift/linux/libdispatch.so, and maybe dnf/packagekit does know I have that file installed on my system, even if telegram-desktop does not know how to find it.

If I try to 'dnf remove libdispatch' dnf let's me do it without removing telegram-desktop. I can also remove swift-lang without removing libdispatch, and dnf will not remove telegram-desktop. But if I try to remove both libdisptach and swift-lang, dnf will also remove telegram-desktop.

If I remove libdispatch, telegram-desktop will refuse to run:

telegram-desktop: error while loading shared libraries: libdispatch.so: cannot open shared object file: No such file or directory

But if I add /usr/libexec/swift/lib/swift/linux/ to LD_LIBRARY_PATH, telegram-desktop runs without problems:

export LD_LIBRARY_PATH=/usr/libexec/swift/lib/swift/linux/

In which package should I report this bug?