[Bug 283287] devel/sol2: Fix compilation for clang 19.1

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 12 Dec 2024 20:51:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283287

            Bug ID: 283287
           Summary: devel/sol2: Fix compilation for clang 19.1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: freebsd@mosedal.net
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

Created attachment 255815
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=255815&action=edit
Patch fixing downstream consumers if the source system use Clang 19.1 or above

Hi,
While trying to unbundle a previous version of sol2 from www/osrm-backend, I
tried building with the version from ports using a system running FreeBSD
15-CURRENT.
The compiler is Clang 19.1 and when it tries to use the header-only library, it
fails.

Attached is a patch that:
* Adds an extra patch if the clang compiler version is 19.1 or above
* Bumps PORTREVISION just to be on the safe side.

In case my patch is garbled, the patch applies cleanly to our current alpha
version from Ports. The original upstream patch is available here:
https://github.com/ThePhD/sol2/commit/d805d027e0a0a7222e936926139f06e23828ce9f

All the best,

Peter.

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