Making this a proper version bump bug report because this is a major one that needs some tracking... This program now hard-depends on Qt6. I've attempted backporting some of the qt6-related changes, but there's just too many to go around with no obvious way to fix, unless someone else would like to try. So until either qt6 is in the tree or someone gets it to build with qt5, this package seems blocked.
I've been trolled by a cmake message about only supporting qt6. It turns out that was only for some wayland-specific support code, that isn't even required to run under wayland (what it's actually required for, I have little clue). In later versions this message is avoided by implicitly disabling the wayland support code when telegram-desktop is built under Qt5. Debian apparently still ships telegram-desktop built with Qt5. I will be bumping the ebuild and adding a warning about it, even though I'm not entirely sure what this support code is for. All I know is that upstream is starting to stop caring about supporting Qt5, as all their official linux builds run with Qt6 now, only the windows 7 build doesn't. Renaming the issue to "support qt6", since the end is nigh and such.
Thank you for the update! >upstream is starting to stop caring seems to be the main problem there. :(
commit bf3c82dd6095765570a18a2c39282c485d5dcf4a Author: Esteve Varela Colominas <esteve.varela@gmail.com> Date: Fri Jul 29 13:17:33 2022 +0200 net-im/telegram-desktop: Bump to 4.0.2 Turns out they never really dropped Qt5 support, only for some wayland integrations. I've tried to research what this means but I actually have no idea beyond some mentions of "xdg-shell". This is why I warn about it in the postinst, even if it may not be meaningful... Debian ships the package the same way. Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> and Qt 6 is now in tree masked.
(In reply to Sam James from comment #3) > and Qt 6 is now in tree masked. I guess that means the reference to the ::qt overlay that appears twice in the ebuild must be removed then. Quick disclaimer: I haven't tested the qt6 build since telegram-desktop-3.7.x (was never published) and I have no idea if it works.
I'm running telegram-desktop with qt6 now, and looks like it works. However,dev-qt/qtimageformats for qt6 is missing. Without it there will be no stickers. I made one from qtwayland ebuild, and it works fine.