Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903554 - net-libs/webkit-gtk-2.40.0-r600 fails to compile with GCC 13
Summary: net-libs/webkit-gtk-2.40.0-r600 fails to compile with GCC 13
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
: 903558 (view as bug list)
Depends on:
Blocks: gcc-13
  Show dependency tree
 
Reported: 2023-03-29 21:23 UTC by Adrien Dessemond
Modified: 2023-03-30 16:38 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,246.68 KB, application/x-xz)
2023-03-29 21:26 UTC, Adrien Dessemond
Details
Patch for upstream commit 0aa2fbaeb7cd103cda9907f8fa2248cd2209b22f (bugfix-gcc13-903554.patch,690 bytes, patch)
2023-03-30 12:12 UTC, Adrien Dessemond
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrien Dessemond 2023-03-29 21:23:51 UTC
The build ends with this:

In file included from /var/tmp/portage/net-libs/webkit-gtk-2.40.0-r600/work/webkitgtk-2.40.0_build/WebCore/DerivedSources/unified-sources/UnifiedSource-3c72abbe-34.cpp:7:
/var/tmp/portage/net-libs/webkit-gtk-2.40.0-r600/work/webkitgtk-2.40.0/Source/WebCore/platform/graphics/SourceBrush.cpp: In member function ‘void WebCore::SourceBrush::setGradient(WTF::Ref<WebCore::Gradient>&&, const WebCore::AffineTransform&)’:
/var/tmp/portage/net-libs/webkit-gtk-2.40.0-r600/work/webkitgtk-2.40.0/Source/WebCore/platform/graphics/SourceBrush.cpp:68:78: error: converting to ‘std::optional<WebCore::SourceBrush::Brush>’ from initializer list would use explicit constructor ‘constexpr std::optional<_Tp>::optional(_Up&&) [with _Up = WebCore::SourceBrush::Brush::LogicalGradient; typename std::enable_if<__and_v<std::__not_<std::is_same<std::optional<_Tp>, typename std::remove_cv<typename std::remove_reference<_Iter>::type>::type> >, std::__not_<std::is_same<std::in_place_t, typename std::remove_cv<typename std::remove_reference<_Iter>::type>::type> >, std::is_constructible<_Tp, _Up>, std::__not_<std::is_convertible<_Iter, _Iterator> > >, bool>::type <anonymous> = false; _Tp = WebCore::SourceBrush::Brush]’
   68 |     m_brush = { Brush::LogicalGradient { WTFMove(gradient), spaceTransform } };
      |                                                                              ^
/var/tmp/portage/net-libs/webkit-gtk-2.40.0-r600/work/webkitgtk-2.40.0/Source/WebCore/platform/graphics/SourceBrush.cpp: In member function ‘void WebCore::SourceBrush::setPattern(WTF::Ref<WebCore::Pattern>&&)’:
/var/tmp/portage/net-libs/webkit-gtk-2.40.0-r600/work/webkitgtk-2.40.0/Source/WebCore/platform/graphics/SourceBrush.cpp:73:34: error: converting to ‘std::optional<WebCore::SourceBrush::Brush>’ from initializer list would use explicit constructor ‘constexpr std::optional<_Tp>::optional(_Up&&) [with _Up = WTF::Ref<WebCore::Pattern>; typename std::enable_if<__and_v<std::__not_<std::is_same<std::optional<_Tp>, typename std::remove_cv<typename std::remove_reference<_Iter>::type>::type> >, std::__not_<std::is_same<std::in_place_t, typename std::remove_cv<typename std::remove_reference<_Iter>::type>::type> >, std::is_constructible<_Tp, _Up>, std::__not_<std::is_convertible<_Iter, _Iterator> > >, bool>::type <anonymous> = false; _Tp = WebCore::SourceBrush::Brush]’
   73 |     m_brush = { WTFMove(pattern) };
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-29 21:26:28 UTC
This one is webkit-gtk's fault.
Comment 2 Adrien Dessemond 2023-03-29 21:26:30 UTC
Created attachment 859250 [details]
build.log.xz
Comment 3 Adrien Dessemond 2023-03-30 12:12:51 UTC
Created attachment 859262 [details, diff]
Patch for upstream commit 0aa2fbaeb7cd103cda9907f8fa2248cd2209b22f
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-30 16:08:05 UTC
*** Bug 903558 has been marked as a duplicate of this bug. ***
Comment 5 Larry the Git Cow gentoo-dev 2023-03-30 16:38:55 UTC
The bug has been closed via the following commit(s):

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

commit 03075e43c6f133310d6f671df0272c55c07682cd
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-30 16:37:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-30 16:38:32 +0000

    net-libs/webkit-gtk: fix build w/ gcc-13
    
    Closes: https://bugs.gentoo.org/903554
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/webkit-gtk/files/2.38.5-gcc-13.patch     | 30 +++++++++++++++++++++++
 net-libs/webkit-gtk/webkit-gtk-2.38.5-r410.ebuild |  1 +
 net-libs/webkit-gtk/webkit-gtk-2.38.5-r500.ebuild |  1 +
 net-libs/webkit-gtk/webkit-gtk-2.38.5.ebuild      |  1 +
 net-libs/webkit-gtk/webkit-gtk-2.40.0-r410.ebuild |  1 +
 net-libs/webkit-gtk/webkit-gtk-2.40.0-r600.ebuild |  1 +
 net-libs/webkit-gtk/webkit-gtk-2.40.0.ebuild      |  1 +
 7 files changed, 36 insertions(+)