[Bug 292165] www/webkit2-gtk: fix build with clang >= 20

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Jan 2026 21:19:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292165

            Bug ID: 292165
           Summary: www/webkit2-gtk: fix build with clang >= 20
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(gnome@FreeBSD.org)
          Assignee: gnome@FreeBSD.org

ith clang 20 or higher webkit2-gtk fails to build, with errors similar
to:

   
/wrkdirs/usr/ports/www/webkit2-gtk/work-40/.build/WTF/Headers/wtf/EnumTraits.h:246:20:
error: no matching function for call to 'enumName'
      246 |         names[i] =
enumName<static_cast<E>(static_cast<unsigned>(i))>();
          |                   
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   
/wrkdirs/usr/ports/www/webkit2-gtk/work-40/.build/WTF/Headers/wtf/EnumTraits.h:233:9:
note: in instantiation of function template specialization
'WTF::enumNames()::(anonymous
class)::operator()<std::integral_constant<unsigned long, 64>>' requested here
      233 |         func(std::integral_constant<size_t, i>());
          |         ^
   
/wrkdirs/usr/ports/www/webkit2-gtk/work-40/.build/WTF/Headers/wtf/EnumTraits.h:234:9:
note: in instantiation of function template specialization
'WTF::detail::forConstexpr<64UL, 256UL, (lambda at
/wrkdirs/usr/ports/www/webkit2-gtk/work-40/.build/WTF/Headers/wtf/EnumTraits.h:245:36)>'
requested here
      234 |         forConstexpr<i + 1, end>(func);
          |         ^
    ...

This is fixed by https://commits.webkit.org/292321@main for
https://bugs.webkit.org/show_bug.cgi?id=289669, so import that patch,
plus https://commits.webkit.org/290345@main, which is a prerequisite.

-- 
You are receiving this mail because:
You are the assignee for the bug.