Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 837569 - net-im/telegram-desktop-3.6.1: fails build with kde-frameworks/kwayland-5.93.0
Summary: net-im/telegram-desktop-3.6.1: fails build with kde-frameworks/kwayland-5.93.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Esteve Varela Colominas
URL: https://mail.kde.org/pipermail/kde-fr...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 838403
  Show dependency tree
 
Reported: 2022-04-10 01:34 UTC by Nick Sarnie
Modified: 2022-04-15 06:05 UTC (History)
10 users (show)

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


Attachments
Patch (tdesktop-3.6.1-fix-kwayland-5.93.patch,1.76 KB, patch)
2022-04-11 22:33 UTC, Esteve Varela Colominas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Sarnie gentoo-dev 2022-04-10 01:34:48 UTC
/var/tmp/notmpfs/portage/net-im/telegram-desktop-3.6.1/work/tdesktop-3.6.1-full/Telegram/lib_base/base/platform/linux/base_linux_wayland_integration.cpp:16:10: fatal error: connection_thread.h: No such file or directory
   16 | #include <connection_thread.h>



Header location with kwayland-5.92.0: /usr/include/KF5/KWayland/Client/connection_thread.h

Header location with kwayland-5.93.0: /usr/include/KF5/KWayland/KWayland/Client/connection_thread.h

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-10 13:54:47 UTC
cc'ing kde@ as fyi
Comment 2 Andreas Sturmlechner gentoo-dev 2022-04-10 16:27:27 UTC
So, telegram-desktop's CMake isn't properly using KF5::Wayland cmake target, otherwise it would not even notice this change.

https://invent.kde.org/frameworks/kwayland/-/commit/de442e4a94e249a29cf2e005db8e0a5e4a6a13ed
Comment 3 Dmitry Derevyanko 2022-04-10 20:13:14 UTC
app-crypt/pinentry-1.2.0 also affected:

Making all in qt
capslock_unix.cpp:29:11: fatal error: KWayland/Client/connection_thread.h: No such file or directory
   29 | # include <KWayland/Client/connection_thread.h>
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Comment 4 Andreas Sturmlechner gentoo-dev 2022-04-10 20:14:40 UTC
Please file different bugs for different packages. Besides, app-crypt/pinentry ebuild doesn't even define a single KF5 dependency.
Comment 5 Esteve Varela Colominas 2022-04-11 11:33:30 UTC
Does tdesktop ever use proper cmake targets? lol

Anyway, I think the issue might be in https://github.com/desktop-app/cmake_helpers/blob/master/external/kwayland/CMakeLists.txt#L18 , as it doesn't call target_include_directories on the waylandclient implementation.

I'll try this when I get home tonight.
Comment 6 Esteve Varela Colominas 2022-04-11 22:30:04 UTC
Apparently the issue wasn't related to the move to a new include directory, but rather that KWayland's cmake config used to add the "KWayland/Client" folder to the include path, and telegram included the files without the prefix, as a result. The new version of kwayland removes that include path...
Comment 7 Esteve Varela Colominas 2022-04-11 22:33:13 UTC
Created attachment 770192 [details, diff]
Patch
Comment 8 Joe Kappus 2022-04-12 06:16:47 UTC
Confirmed builds/runs fine over here. Please include this patch along with the one from Bug #837914 in next revision.
Comment 9 Larry the Git Cow gentoo-dev 2022-04-15 06:04:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eabc16b768077a41ec4b4cd74d8088e52b024ccd

commit eabc16b768077a41ec4b4cd74d8088e52b024ccd
Author:     Esteve Varela Colominas <esteve.varela@gmail.com>
AuthorDate: 2022-04-11 22:28:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-15 06:04:19 +0000

    net-im/telegram-desktop: Fix building with KWayland 5.93
    
    Closes: https://bugs.gentoo.org/837569
    Thanks-to: Nick Sarnie <sarnex@gentoo.org>
    Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/24998
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/tdesktop-3.6.1-fix-kwayland-5.93.patch   | 55 ++++++++++++++++++++++
 .../telegram-desktop-3.5.2-r1.ebuild               |  1 +
 .../telegram-desktop/telegram-desktop-3.6.1.ebuild |  1 +
 3 files changed, 57 insertions(+)