The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by net-im/telegram-desktop-2.1.20::gentoo # required by @selected # required by @world (argument) >=dev-qt/qtgui-5.15.0 wayland # required by net-im/telegram-desktop-2.1.20::gentoo[gtk] # required by @selected # required by @world (argument) >=x11-libs/gtk+-3.24.21 wayland # required by x11-libs/gtk+-3.24.21::gentoo[wayland] # required by net-im/telegram-desktop-2.1.20::gentoo[gtk] # required by @selected # required by @world (argument) >=media-libs/mesa-20.1.3 wayland # required by x11-libs/gtk+-3.24.21::gentoo[wayland] # required by net-im/telegram-desktop-2.1.20::gentoo[gtk] # required by @selected # required by @world (argument) >=x11-libs/libxkbcommon-0.10.0-r1 abi_x86_32 I wonder why [ebuild U ] net-im/telegram-desktop-2.1.20::gentoo [2.1.18::gentoo] USE="X alsa dbus gtk hunspell pulseaudio spell -enchant -libressl (-wayland%)" should require wayland support in dependences. P.S. I have a hybrid GPU Thinkpad so the wayland is not an option for me I have to stick with X. I don't see why I should cloge my system with wayland dependencies.
I have encountered this as well, it's really annoying. Please revert this change if possible.
Comparing 2.1.19 and 2.1.20, seems there was new non-optional checks added upstream (in Telegram/CMakeLists.txt) for qtwayland headers, so that the ebuild would add this seems unfortunately normal. From commit: https://github.com/telegramdesktop/tdesktop/commit/b587328fedaeea8fab34ce329ef8a687cb77238d Shame it seems to be for something minor. Making it optional from this end would require patching and possibly long term support if upstream starts using this for more things.
In this case I'm forced to mask the current telegram version and stay on the previous one until wayland dependency becomes optional
and to ice the cake they removed 2.1.18 from the portage tree. When I mask 2.1.20 portage forces me to downgrade to 2.1.13. Keywords for net-im/telegram-desktop: | | u | | a a p s a r | n | | m r h p p s l i i m m | e u s | r | d a m p p c a x 3 p a s 6 i | a s l | e | 6 r 6 p p 6 r 8 9 h 6 c 8 p | p e o | p | 4 m 4 a c 4 c 6 0 a 4 v k s | i d t | o -------+-----------------------------+-------+------- 2.1.13 | + o o o o ~ o o o o o o o o | 7 o 0 | gentoo 2.1.20 | ~ o o o o ~ o o o o o o o o | 7 o | gentoo
I've raised an issue upstream https://github.com/telegramdesktop/tdesktop/issues/8282
(In reply to Anton Gubarkov from comment #5) > I've raised an issue upstream > https://github.com/telegramdesktop/tdesktop/issues/8282 Thank you!
I wonder if the -bin version should be affected by this as well. (In reply to Anton Gubarkov from comment #4) > and to ice the cake they removed 2.1.18 from the portage tree. When I mask > 2.1.20 portage forces me to downgrade to 2.1.13. You can browse the git log, grab the ebuild and put it in your local overlay to get it back. https://gitweb.gentoo.org/repo/gentoo.git/plain/net-im/telegram-desktop/telegram-desktop-2.1.18.ebuild?id=2719a1c2db7499e10895739210d13510a07ae3a5 https://wiki.gentoo.org/wiki/Custom_repository Or you can git checkout your repository tree to the specific commit above, and emerge telegram-desktop normally, then --sync to latest state.
Please talk to upstream. It does not seem they take this request seriously though. I don't keep non-release versions of tdesktop in the tree, there's no point. It's usually latest pre-release and and release builds, look here at tags: https://github.com/telegramdesktop/tdesktop/releases Just use 2.1.13, it's the latest release and it works without wayland libs and deps, it will be around for couple more month at least. -bin version will not be affected, because it just bundles everything statically inside single binary. If upstream introduces a working -wayland switch I'll re-implement it in the ebuild asap.
Created attachment 650594 [details, diff] telegram-desktop-2.1.20-no-wayland.patch Make Wayland optional again.
Created attachment 650596 [details] telegram-desktop-2.1.20-r1.ebuild Coresponding ebuild keeps wayland optional, like before.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3d07d38e909c3f19faa1c612b82baced0bcf242 commit f3d07d38e909c3f19faa1c612b82baced0bcf242 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-07-27 02:46:04 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-07-27 02:46:04 +0000 net-im/telegram-desktop: don't require wayland for gtk+ Bug: https://bugs.gentoo.org/733234 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> .../{telegram-desktop-2.2.0.ebuild => telegram-desktop-2.2.0-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
after talking with upstream I've removed gtk[wayland] dep. seems with latest changes it should compile fine without wayland support in gtk, and should not require mesa with wayland, but still will pull mesa[egl] so essentially ebuild now the only wayland dep is qtgui[wayland]
I just got it too. Is it the same issue? The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by net-im/telegram-desktop-2.4.5::gentoo # required by @selected # required by @world (argument) >=dev-qt/qtgui-5.15.1-r1 wayland
yes, it inconditionally requires wayland and qtwayland headers and will fail to build without those. I'd gladly remove this dep if upstream did not force it.
Created attachment 670025 [details, diff] telegram-desktop-2.4.6-no-wayland.patch Proposed patch for wayland-free build of a more recent telegram-desktop version.
Created attachment 670028 [details, diff] telegram-desktop-2.4.6-r1.ebuild Proposed ebuild for wayland-free telegram-desktop build for a more recent version.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2658014f512c0c931c80a95f40828a8af8fb67af commit 2658014f512c0c931c80a95f40828a8af8fb67af Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-11-24 05:39:26 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-11-24 05:53:03 +0000 net-im/telegram-desktop: bump to 2.4.11, make wayland optional Thanks-to: Esteve Varela Colominas <esteve.varela@gmail.com> Bug: https://bugs.gentoo.org/733234 Bug: https://bugs.gentoo.org/753737 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> net-im/telegram-desktop/Manifest | 2 +- ...elegram-desktop-2.4.9.ebuild => telegram-desktop-2.4.11.ebuild} | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-)