Hello! I'm trying to drop X11 from my system, and I found that in it's code, there are no dependency on libX11. Also, they support both 'xcb' and 'wayland' QT platforms, so when I recompiled QT with "-X" useflag, and dropped this flag from telegram-desktop ebuild, I could compile and run telegram without any problems under wayland. Also, I cannot find any mention of libva in their code, so maybe this dep could be dropped as well. So, my proposal is to at least add useflag X to ebuild of telegram-desktop
I've double-checked via code, and it looks like libX11 is needed only in two cases: if DESKTOP_APP_USE_PACKAGED=OFF, or if (DESKTOP_APP_USE_PACKAGED=ON and TDESKTOP_DISABLE_GTK_INTEGRATION=OFF). Ebuild is using DESKTOP_APP_USE_PACKAGED=ON, and ebuild is not using gtk3 integration anymore.
I think TDESKTOP_DISABLE_GTK_INTEGRATION=OFF was the default if not set explicitly, but can't check right now. I'll see what I can do here, I also did not like forcing libva and looks like we can just depend on ffmpeg and rely on vaapi flipped there.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27066e9e536d11339d965c14e7a3cd4046edbd88 commit 27066e9e536d11339d965c14e7a3cd4046edbd88 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-04-20 17:16:05 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-04-20 17:59:14 +0000 net-im/telegram-desktop: revbump 2.0.1, clarify dependencies rework deps a bit add py3.8 split X and wayland Closes: https://bugs.gentoo.org/716844 Closes: https://bugs.gentoo.org/715116 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> .../telegram-desktop-2.0.1-r1.ebuild | 134 +++++++++++++++++++++ 1 file changed, 134 insertions(+)
please test and let me know, feel free to re-open the bug if there are still problems. Generally it should pull X11 indirectly via one of the qt deps, only via USE=X