Bugzilla Automation <[email protected]> has asked freebsd-kde (group)
<[email protected]> for maintainer-feedback:
Bug 293093: www/qt5-webengine: fix build with clang 21
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293093
--- Description ---
With libc++ 21 www/qt5-webengine fails to build, with errors similar to:
In file included from
gen/third_party/blink/renderer/platform/platform_jumbo_54.cc:7:
./../../../../kde-qtwebengine-5.15.19p0/src/3rdparty/chromium/third_party/blink
/renderer/platform/image-encoders/image_encoder_utils.cc:63:5:
error: static assertion expression is not an integral constant expression
[...]
../../../../kde-qtwebengine-5.15.19p0/src/3rdparty/chromium/base/metrics/histog
ram_macros_internal.h:45:12:
note: integer value 8 is outside the valid range of values [0, 7] for the
enumeration type 'RequestedImageMimeType'
45 | return static_cast<Enum>(
| ^
https://chromium.googlesource.com/chromium/src/+/bb340f66aaf44206fa5106509fb4e8
c0719ee831
fixes these, but has to be slightly adjusted to make it apply to the
specific chromium version included in qt5-webengine.
This also needs the change in
https://github.com/DimitryAndric/freebsd-src/commit/7a8a78577d6cb7d82bdc38ffd75
15618f44af9de,
since I ran into a clang bug affecting older chromium forks:
https://github.com/llvm/llvm-project/issues/179118