Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 795567 - net-im/telegram-desktop-2.7.4-r1[webkit] fails to build with gcc11 (error: ‘optional’ in namespace ‘std’ does not name a template type)
Summary: net-im/telegram-desktop-2.7.4-r1[webkit] fails to build with gcc11 (error: ‘o...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Esteve Varela Colominas
Keywords: PullRequest
Depends on:
Blocks: gcc-11
  Show dependency tree
Reported: 2021-06-12 09:36 UTC by reckor
Modified: 2021-06-13 09:40 UTC (History)
3 users (show)

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

build log (build.log,227.05 KB, text/x-log)
2021-06-12 09:36 UTC, reckor
emerge info (emergeinfo.log,6.71 KB, text/x-log)
2021-06-12 10:44 UTC, reckor

Note You need to log in before you can comment on or make changes to this bug.
Description reckor 2021-06-12 09:36:19 UTC
Created attachment 715491 [details]
build log

Hello all,
Compile error for net-im/telegram-desktop-2.7.4-r1 attached.
Previous version 2.7.1-r2 working properly.
Comment 1 Esteve Varela Colominas 2021-06-12 10:38:23 UTC
Can I get an emerge --info?
I could've sworn I had tested USE=webkit, but maybe not with gcc 11.
Comment 2 reckor 2021-06-12 10:44:36 UTC
Created attachment 715494 [details]
emerge info

Sure, pls find it attached as well
Comment 3 Esteve Varela Colominas 2021-06-12 22:19:25 UTC
Thanks a lot for your bug report. I've submitted a pull request that should fix it. In the meantime, you can either wait for it to hit the tree or build with USE=-webkit. Protip: webkit is only used for some payment processing dialogs, so you'll rarely need it if at all (though it doesn't hurt if webkit-gtk is already installed for other programs).

P.s. sorry for the spontaneous renames, "webkit" and "webview" are used interchangeably and it's confusing.
Comment 4 Larry the Git Cow gentoo-dev 2021-06-12 22:49:16 UTC
The bug has been closed via the following commit(s):

commit afb53f971e30a3205aa6135ff113984982380e43
Author:     Esteve Varela Colominas <>
AuthorDate: 2021-06-12 22:06:13 +0000
Commit:     Georgy Yakovlev <>
CommitDate: 2021-06-12 22:48:41 +0000

    net-im/telegram-desktop: Fix USE=webkit on GCC 11
    No runtime effect, no revbump.
    Thanks-to: <>
    Signed-off-by: Esteve Varela Colominas <>
    Signed-off-by: Georgy Yakovlev <>

 .../files/tdesktop-2.7.4-webview-fix-gcc11.patch               | 10 ++++++++++
 1 file changed, 10 insertions(+)
Comment 5 reckor 2021-06-13 09:40:28 UTC
Thank you very much, Esteve. New version is now working.

Best wishes