package/qt5/qt5webkit: add patch to fix CMake >= 4 compatibility
PATCH 1/5 package/qt5/qt5webkit: add patch to fix CMake >= 4 compatibility
--- ...pdate-CMake-minimum-required-version.patch | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 package/qt5/qt5webkit/0009-CMakeLists.txt-update-CMake-minimum-required-version.patch
package/qt5/qt5webkit/0009-CMakeLists.txt-update-CMake-minimum-required-version.patch new file +92 -0
@@ -0,0 +1,92 @@ +From b3e016db4ad62bd3386736ce380e4b1c4601a08c Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sun, 28 Dec 2025 14:44:34 +0100 +Subject: [PATCH] CMakeLists.txt: update CMake minimum required version + +Building with CMake >= 4.x requires the cmake_minimum_required() +version to be at least 3.5, so let's update to that to fix: + +CMake Error at CMakeLists.txt:1 (cmake_minimum_required): + Compatibility with CMake < 3.5 has been removed from CMake. + + Update the VERSION argument <min> value. Or, use the <min>...<max> syntax + to tell CMake that the project requires at least <min> but has been updated + to work with policies introduced by <max> or earlier. + + Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. + +Signed-off-by: Thomas Petazzoni <[email protected]> +Upstream: dead, repository is obsolete +--- + CMakeLists.txt | 2 +- + Source/JavaScriptCore/CMakeLists.txt | 2 +- + Source/WTF/CMakeLists.txt | 2 +- + Source/WebCore/CMakeLists.txt | 2 +- + Source/WebKit/CMakeLists.txt | 2 +- + tests/webkitwidgets/cmake/CMakeLists.txt | 2 +- + 6 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 31a2ea1fd544..a870b490c7fb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + project(WebKit) + + # This should be removed once we require CMake 3.3. +diff --git a/Source/JavaScriptCore/CMakeLists.txt b/Source/JavaScriptCore/CMakeLists.txt +index afd76ca1a184..07fb5ad450dc 100644 +--- a/Source/JavaScriptCore/CMakeLists.txt ++++ b/Source/JavaScriptCore/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + include(WebKitCommon) + + set(JavaScriptCore_INCLUDE_DIRECTORIES +diff --git a/Source/WTF/CMakeLists.txt b/Source/WTF/CMakeLists.txt +index 1d41f303acde..efc52e5280e4 100644 +--- a/Source/WTF/CMakeLists.txt ++++ b/Source/WTF/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + include(WebKitCommon) + + add_subdirectory(wtf) +diff --git a/Source/WebCore/CMakeLists.txt b/Source/WebCore/CMakeLists.txt +index 3b3a9ed4bd24..c69cf8eae586 100644 +--- a/Source/WebCore/CMakeLists.txt ++++ b/Source/WebCore/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + include(WebKitCommon) + + set(WebCore_INCLUDE_DIRECTORIES +diff --git a/Source/WebKit/CMakeLists.txt b/Source/WebKit/CMakeLists.txt +index c845856da6f6..b900d088ded5 100644 +--- a/Source/WebKit/CMakeLists.txt ++++ b/Source/WebKit/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + include(WebKitCommon) + + set(WebKit_SOURCES +diff --git a/tests/webkitwidgets/cmake/CMakeLists.txt b/tests/webkitwidgets/cmake/CMakeLists.txt +index 8f266fccb48c..2f5dd261971e 100644 +--- a/tests/webkitwidgets/cmake/CMakeLists.txt ++++ b/tests/webkitwidgets/cmake/CMakeLists.txt +@@ -1,5 +1,5 @@ + +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.5) + + project(qmake_cmake_files) + +-- +2.52.0 +
Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/5 package/qt5/qt5webkit: fix build with ICU >= 76
Since the bump of ICU from ICU 73 to ICU 77 in commit dcee99507c6767230fd1faeeefe95f5662eb03a3, the build of qt5webkit fails with:
/home/thomas/buildroot/br/output-all/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/unicode/char16ptr.h:271:38: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
271 | template<typename T, typename = std::enable_if_t<std::is_same_v<T, UChar>>>
| ^~~~~~~~~~~
We taken two patches from Arch Linux, one which is a partial upstream backport, and another which was submitted upstream, to address this build issue.
--- ...latform.h-fix-build-with-newer-versi.patch | 40 +++++++++++++++++++ ...eader-only-APIs-introduced-in-ICU-76.patch | 28 +++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 package/qt5/qt5webkit/0010-Source-WTF-wtf-Platform.h-fix-build-with-newer-versi.patch create mode 100644 package/qt5/qt5webkit/0011-Disable-ICU-C-header-only-APIs-introduced-in-ICU-76.patch
package/qt5/qt5webkit/0010-Source-WTF-wtf-Platform.h-fix-build-with-newer-versi.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 30a9270a3fe9157a532e52458ee47b0f3fcc2f97 Mon Sep 17 00:00:00 2001 +From: Konstantin Tokarev <[email protected]> +Date: Mon, 27 May 2024 23:23:11 +0300 +Subject: [PATCH] Source/WTF/wtf/Platform.h: fix build with newer + versions of ICU + +Partial backport of r260554 (79fe19caf) + +In particular, we need -DU_SHOW_CPLUSPLUS_API=0 to avoid compilation +errors in C++ parts of ICU headers which we are not using anyway. + +Change-Id: Ib45c74e3caad148fbd778d0c07330127f7dab5ec +Taken from: https://github.com/archlinux/aur/blob/qt5-webkit/qt5-webkit-icu75.patch +Upstream: part of https://github.com/qtwebkit/qtwebkit/commit/79fe19caf +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Source/WTF/wtf/Platform.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h +index 5717f3ea1664..dfed4a13dd2b 100644 +--- a/Source/WTF/wtf/Platform.h ++++ b/Source/WTF/wtf/Platform.h +@@ -1125,6 +1125,13 @@ + #define ENABLE_PLATFORM_FONT_LOOKUP 1 + #endif + ++/* FIXME: This does not belong in Platform.h and should instead be included in another mechanism (compiler option, prefix header, config.h, etc) */ ++/* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */ ++#define U_SHOW_CPLUSPLUS_API 0 ++#ifdef __cplusplus ++#define UCHAR_TYPE char16_t ++#endif ++ + #if COMPILER(MSVC) + #undef __STDC_LIMIT_MACROS + #define __STDC_LIMIT_MACROS +-- +2.52.0 +
package/qt5/qt5webkit/0011-Disable-ICU-C-header-only-APIs-introduced-in-ICU-76.patch new file +28 -0
@@ -0,0 +1,28 @@ +From bf253b37ebf3fd99fa3cc46bd737a88defa8914e Mon Sep 17 00:00:00 2001 +From: Dmitry Shachnev <[email protected]> +Date: Thu, 9 Jan 2025 14:18:31 +0300 +Subject: [PATCH] Disable ICU C++ header-only APIs, introduced in ICU 76 + +They require C++17 which we do not have, but we do not need them anyway. + +Upstream: https://github.com/qtwebkit/qtwebkit/pull/1107 +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Source/WTF/wtf/Platform.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h +index dfed4a13dd2b..6ba6c3972aee 100644 +--- a/Source/WTF/wtf/Platform.h ++++ b/Source/WTF/wtf/Platform.h +@@ -1128,6 +1128,7 @@ + /* FIXME: This does not belong in Platform.h and should instead be included in another mechanism (compiler option, prefix header, config.h, etc) */ + /* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */ + #define U_SHOW_CPLUSPLUS_API 0 ++#define U_SHOW_CPLUSPLUS_HEADER_API 0 + #ifdef __cplusplus + #define UCHAR_TYPE char16_t + #endif +-- +2.52.0 +
Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/5] package/qt5/qt5webkit: fix build with ICU >= 76
In reply of:
Quoted 8 lines
Since the bump of ICU from ICU 73 to ICU 77 in commit
dcee99507c6767230fd1faeeefe95f5662eb03a3, the build of qt5webkit fails with:
/home/thomas/buildroot/br/output-all/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/unicode/char16ptr.h:271:38: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
271 | template<typename T, typename = std::enable_if_t<std::is_same_v<T, UChar>>>
| ^~~~~~~~~~~
Quoted 5 lines
We taken two patches from Arch Linux, one which is a partial upstream backport, and another which was submitted upstream, to address this build issue.
Signed-off-by Thomas Petazzoni <[email protected]>
Applied to 2025.11.x. Thanks
Quoted 94 lines
--- ...latform.h-fix-build-with-newer-versi.patch | 40 +++++++++++++++++++ ...eader-only-APIs-introduced-in-ICU-76.patch | 28 +++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 package/qt5/qt5webkit/0010-Source-WTF-wtf-Platform.h-fix-build-with-newer-versi.patch create mode 100644 package/qt5/qt5webkit/0011-Disable-ICU-C-header-only-APIs-introduced-in-ICU-76.patchpackage/qt5/qt5webkit/0010-Source-WTF-wtf-Platform.h-fix-build-with-newer-versi.patch new file +40
-0@@ -0,0 +1,40 @@ +From 30a9270a3fe9157a532e52458ee47b0f3fcc2f97 Mon Sep 17 00:00:00 2001 +From: Konstantin Tokarev <[email protected]> +Date: Mon, 27 May 2024 23:23:11 +0300 +Subject: [PATCH] Source/WTF/wtf/Platform.h: fix build with newer + versions of ICU + +Partial backport of r260554 (79fe19caf) + +In particular, we need -DU_SHOW_CPLUSPLUS_API=0 to avoid compilation +errors in C++ parts of ICU headers which we are not using anyway. + +Change-Id: Ib45c74e3caad148fbd778d0c07330127f7dab5ec +Taken from: https://github.com/archlinux/aur/blob/qt5-webkit/qt5-webkit-icu75.patch +Upstream: part of https://github.com/qtwebkit/qtwebkit/commit/79fe19caf +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Source/WTF/wtf/Platform.h | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h +index 5717f3ea1664..dfed4a13dd2b 100644 +--- a/Source/WTF/wtf/Platform.h ++++ b/Source/WTF/wtf/Platform.h +@@ -1125,6 +1125,13 @@ + #define ENABLE_PLATFORM_FONT_LOOKUP 1 + #endif + ++/* FIXME: This does not belong in Platform.h and should instead be included in another mechanism (compiler option, prefix header, config.h, etc) */ ++/* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */ ++#define U_SHOW_CPLUSPLUS_API 0 ++#ifdef __cplusplus ++#define UCHAR_TYPE char16_t ++#endif ++ + #if COMPILER(MSVC) + #undef __STDC_LIMIT_MACROS + #define __STDC_LIMIT_MACROS +-- +2.52.0 +package/qt5/qt5webkit/0011-Disable-ICU-C-header-only-APIs-introduced-in-ICU-76.patch new file +28
-0@@ -0,0 +1,28 @@ +From bf253b37ebf3fd99fa3cc46bd737a88defa8914e Mon Sep 17 00:00:00 2001 +From: Dmitry Shachnev <[email protected]> +Date: Thu, 9 Jan 2025 14:18:31 +0300 +Subject: [PATCH] Disable ICU C++ header-only APIs, introduced in ICU 76 + +They require C++17 which we do not have, but we do not need them anyway. + +Upstream: https://github.com/qtwebkit/qtwebkit/pull/1107 +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Source/WTF/wtf/Platform.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h +index dfed4a13dd2b..6ba6c3972aee 100644 +--- a/Source/WTF/wtf/Platform.h ++++ b/Source/WTF/wtf/Platform.h +@@ -1128,6 +1128,7 @@ + /* FIXME: This does not belong in Platform.h and should instead be included in another mechanism (compiler option, prefix header, config.h, etc) */ + /* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */ + #define U_SHOW_CPLUSPLUS_API 0 ++#define U_SHOW_CPLUSPLUS_HEADER_API 0 + #ifdef __cplusplus + #define UCHAR_TYPE char16_t + #endif +-- +2.52.0 +Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/5 package/qt5/qt5webkit: add patch to fix missing <cstdint> include
In reply to Thomas Petazzoni via buildrootIt is not clear which change introduce this breakage, but we suspect it is related to GCC 14.x. In any case, the fix does no harm and is good to backport to 2025.02.x.
Fixes:
/home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h:575:8: error: ‘uint32_t’ does not name a type
575 | inline uint32_t RotL(uint32_t x, int8_t r)
| ^~~~~~~~ /home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h:19:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ 18 | #include <stdlib.h> +++ |+#include <cstdint> 19 |
--- ...y-ANGLE-src-common-mathutil.h-includ.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package/qt5/qt5webkit/0012-Source-ThirdParty-ANGLE-src-common-mathutil.h-includ.patch
package/qt5/qt5webkit/0012-Source-ThirdParty-ANGLE-src-common-mathutil.h-includ.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 05c5aec722ebd750ec3404444f945154c266b62d Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sun, 28 Dec 2025 15:51:26 +0100 +Subject: [PATCH] Source/ThirdParty/ANGLE/src/common/mathutil.h: include + missing header +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: + +/home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h:575:8: error: ‘uint32_t’ does not name a type + 575 | inline uint32_t RotL(uint32_t x, int8_t r) + | ^~~~~~~~ +/home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h:19:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ + 18 | #include <stdlib.h> + +++ |+#include <cstdint> + 19 | + +Taken from Fedora, also used on Arch Linux: + + https://src.fedoraproject.org/rpms/qt5-qtwebkit/raw/rawhide/f/qtwebkit-cstdint.patch + https://aur.archlinux.org/packages/qt5-webkit + +Upstream: dead, N/A +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Source/ThirdParty/ANGLE/src/common/mathutil.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Source/ThirdParty/ANGLE/src/common/mathutil.h b/Source/ThirdParty/ANGLE/src/common/mathutil.h +index 7959da8bdcbc..c86afd61e103 100644 +--- a/Source/ThirdParty/ANGLE/src/common/mathutil.h ++++ b/Source/ThirdParty/ANGLE/src/common/mathutil.h +@@ -16,6 +16,7 @@ + #include <algorithm> + #include <string.h> + #include <stdlib.h> ++#include <cstdint> + + namespace gl + { +-- +2.52.0 +
Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/5] package/qt5/qt5webkit: add patch to fix missing <cstdint> include
In reply of:
Quoted 8 lines
It is not clear which change introduce this breakage, but we suspect it is related to GCC 14.x. In any case, the fix does no harm and is good to backport to 2025.02.x.
Fixes:
/home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h:575:8: error: ‘uint32_t’ does not name a type
575 | inlineuint32_tRotL(uint32_t x, int8_t r)
Quoted 7 lines
| ^~~~~~~~ /home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h:19:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ 18 | #include <stdlib.h> +++ |+#include <cstdint> 19 |Signed-off-by Thomas Petazzoni <[email protected]>
Applied to 2025.02.x and 2025.11.x. Thanks
Quoted 63 lines
--- ...y-ANGLE-src-common-mathutil.h-includ.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package/qt5/qt5webkit/0012-Source-ThirdParty-ANGLE-src-common-mathutil.h-includ.patchpackage/qt5/qt5webkit/0012-Source-ThirdParty-ANGLE-src-common-mathutil.h-includ.patch new file +45
-0@@ -0,0 +1,45 @@ +From 05c5aec722ebd750ec3404444f945154c266b62d Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sun, 28 Dec 2025 15:51:26 +0100 +Subject: [PATCH] Source/ThirdParty/ANGLE/src/common/mathutil.h: include + missing header +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: + +/home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h:575:8: error: ‘uint32_t’ does not name a type + 575 | inline uint32_t RotL(uint32_t x, int8_t r) + | ^~~~~~~~ +/home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/ThirdParty/ANGLE/src/common/mathutil.h:19:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ + 18 | #include <stdlib.h> + +++ |+#include <cstdint> + 19 | + +Taken from Fedora, also used on Arch Linux: + + https://src.fedoraproject.org/rpms/qt5-qtwebkit/raw/rawhide/f/qtwebkit-cstdint.patch + https://aur.archlinux.org/packages/qt5-webkit + +Upstream: dead, N/A +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Source/ThirdParty/ANGLE/src/common/mathutil.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Source/ThirdParty/ANGLE/src/common/mathutil.h b/Source/ThirdParty/ANGLE/src/common/mathutil.h +index 7959da8bdcbc..c86afd61e103 100644 +--- a/Source/ThirdParty/ANGLE/src/common/mathutil.h ++++ b/Source/ThirdParty/ANGLE/src/common/mathutil.h +@@ -16,6 +16,7 @@ + #include <algorithm> + #include <string.h> + #include <stdlib.h> ++#include <cstdint> + + namespace gl + { +-- +2.52.0 +Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 4/5 package/qt5/qt5webkit: fix gcc >= 14.x build issue
In reply to Thomas Petazzoni via buildrootAdd another patch from Fedora, also used in Arch Linux to fix a gcc >= 14.x build issue:
build/qt5webkit-5.212.0-alpha4/Source/WebCore/page/csp/ContentSecurityPolicy.cpp:235:56: required from here
235 | if ((policy.get()->*allowed)(std::make_pair(algorithm, digest)))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
host/opt/ext-toolchain/aarch64-buildroot-linux-gnu/include/c++/14.3.0/type_traits:1246:52: error: non-constant
condition for static assertion
1246 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~--- ...age-csp-ContentSecurityPolicy.cpp-fi.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package/qt5/qt5webkit/0013-Source-WebCore-page-csp-ContentSecurityPolicy.cpp-fi.patch
package/qt5/qt5webkit/0013-Source-WebCore-page-csp-ContentSecurityPolicy.cpp-fi.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 286e0280a55949d62b2163d68c827539c141d487 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sun, 28 Dec 2025 18:35:45 +0100 +Subject: [PATCH] Source/WebCore/page/csp/ContentSecurityPolicy.cpp: fix build + with gcc >= 14.x + +Fixes: + +/home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/WebCore/page/csp/ContentSecurityPolicy.cpp:235:56: required from here + 235 | if ((policy.get()->*allowed)(std::make_pair(algorithm, digest))) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ +/home/thomas/buildroot/br/output-all/host/opt/ext-toolchain/aarch64-buildroot-linux-gnu/include/c++/14.3.0/type_traits:1246:52: error: non-constant +condition for static assertion + 1246 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ + +Patch used in Fedora and Arch Linux: + + https://src.fedoraproject.org/rpms/qt5-qtwebkit/raw/rawhide/f/qtwebkit-fix-build-gcc14.patch + https://aur.archlinux.org/packages/qt5-webkit + +Upstream: dead +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Source/WebCore/page/csp/ContentSecurityPolicy.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp +index 9e726d5fe10c..989a59a6122f 100644 +--- a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp ++++ b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp +@@ -231,8 +231,9 @@ bool isAllowedByAllWithHashFromContent(const CSPDirectiveListVector& policies, c + auto cryptoDigest = CryptoDigest::create(toCryptoDigestAlgorithm(algorithm)); + cryptoDigest->addBytes(contentCString.data(), contentCString.length()); + Vector<uint8_t> digest = cryptoDigest->computeHash(); ++ ContentSecurityPolicyHash hash = std::make_pair(algorithm, digest); + for (auto& policy : policies) { +- if ((policy.get()->*allowed)(std::make_pair(algorithm, digest))) ++ if ((policy.get()->*allowed)(hash)) + return true; + } + } +-- +2.52.0 +
Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 4/5] package/qt5/qt5webkit: fix gcc >= 14.x build issue
In reply of:
Quoted 5 lines
Add another patch from Fedora, also used in Arch Linux to fix a gcc >= 14.x build issue:
build/qt5webkit-5.212.0-alpha4/Source/WebCore/page/csp/ContentSecurityPolicy.cpp:235:56: required from here
235 | if ((policy.get()->*allowed)(std::make_pair(algorithm, digest)))
Quoted 7 lines
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ host/opt/ext-toolchain/aarch64-buildroot-linux-gnu/include/c++/14.3.0/type_traits:1246:52: error: non-constant condition for static assertion 1246 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~Signed-off-by Thomas Petazzoni <[email protected]>
Applied to 2025.02.x and 2025.11.x. Thanks
Quoted 63 lines
--- ...age-csp-ContentSecurityPolicy.cpp-fi.patch | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package/qt5/qt5webkit/0013-Source-WebCore-page-csp-ContentSecurityPolicy.cpp-fi.patchpackage/qt5/qt5webkit/0013-Source-WebCore-page-csp-ContentSecurityPolicy.cpp-fi.patch new file +45
-0@@ -0,0 +1,45 @@ +From 286e0280a55949d62b2163d68c827539c141d487 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sun, 28 Dec 2025 18:35:45 +0100 +Subject: [PATCH] Source/WebCore/page/csp/ContentSecurityPolicy.cpp: fix build + with gcc >= 14.x + +Fixes: + +/home/thomas/buildroot/br/output-all/build/qt5webkit-5.212.0-alpha4/Source/WebCore/page/csp/ContentSecurityPolicy.cpp:235:56: required from here + 235 | if ((policy.get()->*allowed)(std::make_pair(algorithm, digest))) + | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ +/home/thomas/buildroot/br/output-all/host/opt/ext-toolchain/aarch64-buildroot-linux-gnu/include/c++/14.3.0/type_traits:1246:52: error: non-constant +condition for static assertion + 1246 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ + +Patch used in Fedora and Arch Linux: + + https://src.fedoraproject.org/rpms/qt5-qtwebkit/raw/rawhide/f/qtwebkit-fix-build-gcc14.patch + https://aur.archlinux.org/packages/qt5-webkit + +Upstream: dead +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + Source/WebCore/page/csp/ContentSecurityPolicy.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp +index 9e726d5fe10c..989a59a6122f 100644 +--- a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp ++++ b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp +@@ -231,8 +231,9 @@ bool isAllowedByAllWithHashFromContent(const CSPDirectiveListVector& policies, c + auto cryptoDigest = CryptoDigest::create(toCryptoDigestAlgorithm(algorithm)); + cryptoDigest->addBytes(contentCString.data(), contentCString.length()); + Vector<uint8_t> digest = cryptoDigest->computeHash(); ++ ContentSecurityPolicyHash hash = std::make_pair(algorithm, digest); + for (auto& policy : policies) { +- if ((policy.get()->*allowed)(std::make_pair(algorithm, digest))) ++ if ((policy.get()->*allowed)(hash)) + return true; + } + } +-- +2.52.0 +Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 5/5 package/python-pyqt5: disable qt5webkit module
In reply to Thomas Petazzoni via buildrootDue to issues in the installation of qt5webkit, building the corresponding Python binding fails:
Project ERROR: Unknown module(s) in QT: webkit
Error: /home/thomas/buildroot/br/output-all/host/bin/qmake failed to create a
makefile from PyQt5.pro.
make[1]: *** [package/pkg-generic.mk:263: /home/thomas/buildroot/br/output-all/build/python-pyqt5-5.15.6/.stamp_configured] Error 1
make: *** [Makefile:83: _all] Error 2
https://lore.kernel.org/buildroot/[email protected]/
was an attempt at fixing it, but this patch doesn't work and looks weird.
So for the time being, disable the Webkit module in python-pyqt5. This issue has indeed been around for as far as 2022.
Fixes:
https://autobuild.buildroot.net/results/b9d69d21e734aa62a6e0b4d4124c2bcfc027ebe4/
--- package/python-pyqt5/python-pyqt5.mk | 7 ------- 1 file changed, 7 deletions(-)
package/python-pyqt5/python-pyqt5.mk +0 -7
@@ -91,13 +91,6 @@ PYTHON_PYQT5_DEPENDENCIES += qt5webchannel PYTHON_PYQT5_MODULES += QtWebChannel endif -ifeq ($(BR2_PACKAGE_QT5WEBKIT),y) -PYTHON_PYQT5_DEPENDENCIES += qt5webkit -PYTHON_PYQT5_MODULES += \ - QtWebKit \ - $(if $(BR2_PACKAGE_QT5BASE_WIDGETS),QtWebKitWidgets) -endif - ifeq ($(BR2_PACKAGE_QT5WEBSOCKETS),y) PYTHON_PYQT5_DEPENDENCIES += qt5websockets PYTHON_PYQT5_MODULES += QtWebSockets
Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 5/5] package/python-pyqt5: disable qt5webkit module
In reply of:
Quoted 13 lines
Due to issues in the installation of qt5webkit, building the corresponding Python binding fails:
Project ERROR: Unknown module(s) in QT: webkit
Error:/home/thomas/buildroot/br/output-all/host/bin/qmakefailed to create a
makefile from PyQt5.pro.
make[1]: *** [package/pkg-generic.mk:263:/home/thomas/buildroot/br/output-all/build/python-pyqt5-5.15.6/.stamp_configured] Error 1
make: *** [Makefile:83:_all] Error 2https://lore.kernel.org/buildroot/[email protected]/
was an attempt at fixing it, but this patch doesn't work and looks weird.
Quoted 8 lines
So for the time being, disable the Webkit module in python-pyqt5. This issue has indeed been around for as far as 2022.
Fixes:
https://autobuild.buildroot.net/results/b9d69d21e734aa62a6e0b4d4124c2bcfc027ebe4/
Signed-off-by Thomas Petazzoni <[email protected]>
Applied to 2025.02.x and 2025.11.x. Thanks
Quoted 29 lines
--- package/python-pyqt5/python-pyqt5.mk | 7 ------- 1 file changed, 7 deletions(-)package/python-pyqt5/python-pyqt5.mk +0
-7@@ -91,13 +91,6 @@ PYTHON_PYQT5_DEPENDENCIES += qt5webchannel PYTHON_PYQT5_MODULES += QtWebChannel endif -ifeq ($(BR2_PACKAGE_QT5WEBKIT),y) -PYTHON_PYQT5_DEPENDENCIES += qt5webkit -PYTHON_PYQT5_MODULES += \ - QtWebKit \ - $(if $(BR2_PACKAGE_QT5BASE_WIDGETS),QtWebKitWidgets) -endif - ifeq ($(BR2_PACKAGE_QT5WEBSOCKETS),y) PYTHON_PYQT5_DEPENDENCIES += qt5websockets PYTHON_PYQT5_MODULES += QtWebSocketsSignature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 1 line · Thomas Petazzoni via buildroot
Signed-off-by Thomas Petazzoni <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
In reply of:
Quoted 1 line
Signed-off-by Thomas Petazzoni <[email protected]>
Applied to 2025.11.x. Thanks
Quoted 110 lines
--- ...pdate-CMake-minimum-required-version.patch | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 package/qt5/qt5webkit/0009-CMakeLists.txt-update-CMake-minimum-required-version.patchpackage/qt5/qt5webkit/0009-CMakeLists.txt-update-CMake-minimum-required-version.patch new file +92
-0@@ -0,0 +1,92 @@ +From b3e016db4ad62bd3386736ce380e4b1c4601a08c Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Sun, 28 Dec 2025 14:44:34 +0100 +Subject: [PATCH] CMakeLists.txt: update CMake minimum required version + +Building with CMake >= 4.x requires the cmake_minimum_required() +version to be at least 3.5, so let's update to that to fix: + +CMake Error at CMakeLists.txt:1 (cmake_minimum_required): + Compatibility with CMake < 3.5 has been removed from CMake. + + Update the VERSION argument <min> value. Or, use the <min>...<max> syntax + to tell CMake that the project requires at least <min> but has been updated + to work with policies introduced by <max> or earlier. + + Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. + +Signed-off-by: Thomas Petazzoni <[email protected]> +Upstream: dead, repository is obsolete +--- + CMakeLists.txt | 2 +- + Source/JavaScriptCore/CMakeLists.txt | 2 +- + Source/WTF/CMakeLists.txt | 2 +- + Source/WebCore/CMakeLists.txt | 2 +- + Source/WebKit/CMakeLists.txt | 2 +- + tests/webkitwidgets/cmake/CMakeLists.txt | 2 +- + 6 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 31a2ea1fd544..a870b490c7fb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + project(WebKit) + + # This should be removed once we require CMake 3.3. +diff --git a/Source/JavaScriptCore/CMakeLists.txt b/Source/JavaScriptCore/CMakeLists.txt +index afd76ca1a184..07fb5ad450dc 100644 +--- a/Source/JavaScriptCore/CMakeLists.txt ++++ b/Source/JavaScriptCore/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + include(WebKitCommon) + + set(JavaScriptCore_INCLUDE_DIRECTORIES +diff --git a/Source/WTF/CMakeLists.txt b/Source/WTF/CMakeLists.txt +index 1d41f303acde..efc52e5280e4 100644 +--- a/Source/WTF/CMakeLists.txt ++++ b/Source/WTF/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + include(WebKitCommon) + + add_subdirectory(wtf) +diff --git a/Source/WebCore/CMakeLists.txt b/Source/WebCore/CMakeLists.txt +index 3b3a9ed4bd24..c69cf8eae586 100644 +--- a/Source/WebCore/CMakeLists.txt ++++ b/Source/WebCore/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + include(WebKitCommon) + + set(WebCore_INCLUDE_DIRECTORIES +diff --git a/Source/WebKit/CMakeLists.txt b/Source/WebKit/CMakeLists.txt +index c845856da6f6..b900d088ded5 100644 +--- a/Source/WebKit/CMakeLists.txt ++++ b/Source/WebKit/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.5) + include(WebKitCommon) + + set(WebKit_SOURCES +diff --git a/tests/webkitwidgets/cmake/CMakeLists.txt b/tests/webkitwidgets/cmake/CMakeLists.txt +index 8f266fccb48c..2f5dd261971e 100644 +--- a/tests/webkitwidgets/cmake/CMakeLists.txt ++++ b/tests/webkitwidgets/cmake/CMakeLists.txt +@@ -1,5 +1,5 @@ + +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.5) + + project(qmake_cmake_files) + +-- +2.52.0 +Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot