git: 539e45eb457c - main - x11-toolkits/wlroots018: unbreak build with clang 21

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 17 Sep 2026 05:55:38 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=539e45eb457cbd442b34fedf5d75868f5ba8803a

commit 539e45eb457cbd442b34fedf5d75868f5ba8803a
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2026-09-17 03:59:59 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2026-09-17 05:55:12 +0000

    x11-toolkits/wlroots018: unbreak build with clang 21
    
    ../xcursor/xcursor.c:605:8: error: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
      605 |         char *colon = strchr(path, ':');
          |               ^       ~~~~~~~~~~~~~~~~~
    
    Reported by:    pkg-fallout
---
 x11-toolkits/wlroots018/Makefile | 5 ++++-
 x11-toolkits/wlroots018/distinfo | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/x11-toolkits/wlroots018/Makefile b/x11-toolkits/wlroots018/Makefile
index 5adb2e3eb35f..99d0b3627a8c 100644
--- a/x11-toolkits/wlroots018/Makefile
+++ b/x11-toolkits/wlroots018/Makefile
@@ -1,9 +1,12 @@
 PORTNAME=	wlroots
 DISTVERSION=	0.18.3
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	x11-toolkits
 PKGNAMESUFFIX=	018
 
+PATCH_SITES+=	${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/-/commit/
+PATCHFILES+=	47486545b196.patch:-p1 # https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5203
+
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	Modular Wayland compositor library (deprecated 0.18.* series)
 WWW=		https://gitlab.freedesktop.org/wlroots/wlroots
diff --git a/x11-toolkits/wlroots018/distinfo b/x11-toolkits/wlroots018/distinfo
index 6feaf0f5b032..f58628cfc956 100644
--- a/x11-toolkits/wlroots018/distinfo
+++ b/x11-toolkits/wlroots018/distinfo
@@ -1,3 +1,5 @@
 TIMESTAMP = 1761213625
 SHA256 (wlroots-0.18.3.tar.bz2) = 17420d4e6fa3fe9c3c5022af2706ec25c3fbd861688d69052b7ef0e77dfb1f90
 SIZE (wlroots-0.18.3.tar.bz2) = 470086
+SHA256 (47486545b196.patch) = 2a03cba1e4bac31e77cf6af0c6499446ca0fc7e582de6dd91bb7954774a9da95
+SIZE (47486545b196.patch) = 925