From f1b6a3ae81fb5bae2efc47163bd690d2accdeb6e Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sat, 6 May 2023 17:28:12 +0000 Subject: [PATCH] extra/webkit2gtk to 2.40.1-2 --- .../0001-Fix-build-of-SourceBrush.cpp.patch | 36 +++++++++++++++++++ extra/webkit2gtk/PKGBUILD | 16 ++++++--- 2 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 extra/webkit2gtk/0001-Fix-build-of-SourceBrush.cpp.patch diff --git a/extra/webkit2gtk/0001-Fix-build-of-SourceBrush.cpp.patch b/extra/webkit2gtk/0001-Fix-build-of-SourceBrush.cpp.patch new file mode 100644 index 000000000..8229837dd --- /dev/null +++ b/extra/webkit2gtk/0001-Fix-build-of-SourceBrush.cpp.patch @@ -0,0 +1,36 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Michael Catanzaro +Date: Fri, 31 Mar 2023 12:24:09 -0700 +Subject: [PATCH] Fix build of SourceBrush.cpp + https://bugs.webkit.org/show_bug.cgi?id=254821 + +Unreviewed build fix. + +* Source/WebCore/platform/graphics/SourceBrush.cpp: +(WebCore::SourceBrush::setGradient): +(WebCore::SourceBrush::setPattern): + +Canonical link: https://commits.webkit.org/262434@main +--- + Source/WebCore/platform/graphics/SourceBrush.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Source/WebCore/platform/graphics/SourceBrush.cpp b/Source/WebCore/platform/graphics/SourceBrush.cpp +index f4d299be82f1..4bf4d6842aea 100644 +--- a/Source/WebCore/platform/graphics/SourceBrush.cpp ++++ b/Source/WebCore/platform/graphics/SourceBrush.cpp +@@ -65,12 +65,12 @@ Pattern* SourceBrush::pattern() const + + void SourceBrush::setGradient(Ref&& gradient, const AffineTransform& spaceTransform) + { +- m_brush = { Brush::LogicalGradient { WTFMove(gradient), spaceTransform } }; ++ m_brush = Brush { Brush::LogicalGradient { WTFMove(gradient), spaceTransform } }; + } + + void SourceBrush::setPattern(Ref&& pattern) + { +- m_brush = { Brush::Variant { std::in_place_type>, WTFMove(pattern) } }; ++ m_brush = Brush { Brush::Variant { std::in_place_type>, WTFMove(pattern) } }; + } + + WTF::TextStream& operator<<(TextStream& ts, const SourceBrush& brush) diff --git a/extra/webkit2gtk/PKGBUILD b/extra/webkit2gtk/PKGBUILD index 253b729dc..2b9a9c625 100644 --- a/extra/webkit2gtk/PKGBUILD +++ b/extra/webkit2gtk/PKGBUILD @@ -12,7 +12,7 @@ pkgname=( webkit2gtk-docs ) pkgver=2.40.1 -pkgrel=1 +pkgrel=2 pkgdesc="Web content engine for GTK" url="https://webkitgtk.org" arch=(x86_64) @@ -41,10 +41,8 @@ depends=( libgcrypt libgl libgles - libice libjpeg libmanette - libnotify libpng libseccomp libsecret @@ -55,7 +53,6 @@ depends=( libwpe libx11 libxcomposite - libxext libxml2 libxslt libxt @@ -83,9 +80,14 @@ makedepends=( ) source=( $url/releases/webkitgtk-$pkgver.tar.xz{,.asc} + 0001-Fix-build-of-SourceBrush.cpp.patch ) sha256sums=('64e526984f8cd2161ef03ae949af99c002ff333d615e6386b460164a3c1b7ef6' - 'SKIP') + 'SKIP' + 'ad3191d494647a33f48fa2b0eb2f0ed9035571a01909d009764960029cac4092') +b2sums=('b50c983eafdb215e62e1509873691bc3f932c8b5daf0ceeaefc041d3bc6c5ff804f25af5f761837a3f37df07c1c598f5984e40b116e70a3523d508d13594dc4d' + 'SKIP' + 'aa01aacc2f58f0634370472a001ddf01f84ce2d603ed5352138e63b786ec4e6a99429eb0d00d7fd893ac9c46b90fd5f0ed49c916cd124cc7d78e6dbb6a1a9386') validpgpkeys=( 'D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3' # Carlos Garcia Campos '5AA3BC334FD7E3369E7C77B291C559DBE4C9123B' # Adrián Pérez de Castro @@ -93,6 +95,10 @@ validpgpkeys=( prepare() { cd webkitgtk-$pkgver + + # Fix build with GCC 13 + # Backport of https://github.com/WebKit/WebKit/commit/93920b55f52ff8b883296f4845269e2ed746acb3 + patch -Np1 -i ../0001-Fix-build-of-SourceBrush.cpp.patch } build() {