[Bug 295272] www/onlyoffice-documentserver: pkg builds fail on clang20 & clang22

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 13 May 2026 23:35:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295272

            Bug ID: 295272
           Summary: www/onlyoffice-documentserver: pkg builds fail on
                    clang20 & clang22
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: fsbruva@yahoo.com

The pkg builds on both amd64 and aarch64 are failing.

I tracked it to the inclusion of clang 20 in -CURRENT. The issue was that V8
has numerous instances where integer is cast to an enumeration type (without a
fixed underlying type) and the value falls outside the valid range of that
enum. Starting in clang 20, the diagnostic -Wenum-constexpr-conversion has been
upgraded to a hard error that can no longer be suppressed or downgraded.

Additional testing with newer llvm versions revealed a separate issue with the
upstream source code that is incompatible with clang22, because of incompatible
pointer type matching in the bundled Jasper library.

Other chores accomplished:
Upgrade build tools to use QT6, since QT5 is EOL very soon
Remove hardcoded QT version from build script
Rename the V8 patch filenames to match path affected
Refactor port Makefile to do npm arch operations after bsd.port.pre.mk

Patch forthcoming.

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