Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 838973 - net-im/telegram-desktop support qt6
Summary: net-im/telegram-desktop support qt6
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 4 votes (vote)
Assignee: Esteve Varela Colominas
Depends on: 838970 871582 872026
  Show dependency tree
Reported: 2022-04-17 16:19 UTC by Esteve Varela Colominas
Modified: 2022-11-11 17:59 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Esteve Varela Colominas 2022-04-17 16:19:57 UTC
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.
Comment 1 Esteve Varela Colominas 2022-07-29 11:30:09 UTC
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.
Comment 2 Ivan S. Titov 2022-07-29 13:33:04 UTC
Thank you for the update!

>upstream is starting to stop caring
seems to be the main problem there. :(
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-02 22:16:27 UTC
commit bf3c82dd6095765570a18a2c39282c485d5dcf4a
Author: Esteve Varela Colominas <>
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

    Debian ships the package the same way.

    Signed-off-by: Esteve Varela Colominas <>
    Signed-off-by: Georgy Yakovlev <>

and Qt 6 is now in tree masked.
Comment 4 Esteve Varela Colominas 2022-08-04 10:32:19 UTC
(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.
Comment 5 Alexey Shevchuck 2022-08-07 22:02:22 UTC
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.