Dose telegram-desktop really dependent on virtual/opengl? I viewed some source code, seems it use opengl through qt, and ldd /usr/bin/telegram-desktop shows it don't direct links to mesa. For reference, archlinux's telegram package does not directly depend on opengl.
mesa is not really the one to look at given it no longer provides libGL (virtual/opengl should be replaced by libglvnd[X] or libglvnd in general, it's kind of an obsolete virtual but mesa pulls libglvnd so it still satisfies that in the interim). Just to be clear, is it directly linking with either libGL or libOpenGL? (haven't built it to check), if not then yeah it could be dropped entirely given don't think it does anything else special. Directly as in, it would be listed in /var/db/pkg/net-im/telegram-desktop/NEEDED. Also what about when USE=-qt6? It does not depend on qtopengl:5 currently so perhaps it uses it differently if the dependencies are not wrong. Given who added the dependency back in commit 78b3d318d70c402f45b8440cd1fa4d0b52b4bb79, I would assume that it was linked with it back then but perhaps that changed.
(In reply to Ionen Wolkens from comment #1) > Given who added the dependency back in commit > 78b3d318d70c402f45b8440cd1fa4d0b52b4bb79, I would assume that it was linked > with it back then but perhaps that changed. Well, that or failed to build. cmake may have checked for it, and it's allowed to be missing without qtopengl:5
Might be an old dependency, yeah. Feel free to drop it and see if anyone complains.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fdf538d3b6bbcaf7d33f1ab43f0c3e4d98be044 commit 8fdf538d3b6bbcaf7d33f1ab43f0c3e4d98be044 Author: Yixun Lan <dlan@gentoo.org> AuthorDate: 2024-03-04 23:59:46 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2024-03-05 23:37:34 +0000 net-im/telegram-desktop: drop dep of virtual/opengl telegram doesn't depend on virtual/opengl directly Closes: https://bugs.gentoo.org/926102 Signed-off-by: Yixun Lan <dlan@gentoo.org> .../telegram-desktop-4.15.0-r1.ebuild | 237 +++++++++++++++++++++ 1 file changed, 237 insertions(+)