Re: www/webkit2-gtk4 fails to build on STABLE-13/amd64

From: Moin Rahman <bofh_at_freebsd.org>
Date: Wed, 26 Jul 2023 01:00:25 UTC

> On Jul 25, 2023, at 1:01 PM, Jonathan Chen <jonc@chen.org.nz> wrote:
> 
> Hi,
> 
> I recently updated my STABLE-13/amd64 host, and now it fails to build www/webkit2-gtk4; failing with:
> 
> /construction/xports/www/webkit2-gtk4/work/webkitgtk-2.38.3/Source/WTF/wtf/Function.h:79:26: warning: unused parameter 'in' [-Wunused-parameter]
>    Out operator()(In... in) const
>                         ^
> /construction/xports/www/webkit2-gtk4/work/webkitgtk-2.38.3/Source/WTF/wtf/URLHelpers.cpp:51:34: error: integer value 256 is outside the valid range of values [-
> 256, 255] for the enumeration type 'UScriptCode' [-Wenum-constexpr-conversion]
> constexpr auto scriptCodeLimit = static_cast<UScriptCode>(256);
>                                 ^
> 2 warnings and 1 error generated.
> 
> I notice that Muhammad Moinur Rahman had recently made a commit to webkit2-gtk4/Makefile to enable llvm16 support, probably for the main branch. This also needs to be enabled for stable/13 which now has llvm16 as its host-compiler.
> 
> Cheers.
> --
> Jonathan Chen <jonc@chen.org.nz>
> 

So far I haven't been able to fix all build issues with llvm16 and it's still an ongoing process. I plan to complete this before the final build starts for 14.0-RELEASE. However I have just committed fox 13.2-STABLE for all the fixes I have done till now for HEAD. When I fix the rest of it I will also consider 13.2-STABLE or more preferably OSVERSION 1302507.

See https://cgit.freebsd.org/ports/commit/?id=95274bf4f99c71fc056013d966aec239161dfd74 for more details.

Kind regards,
Moin