Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2026 20:45:23 +0000
From:      Enji Cooper <ngie@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 381b9471dc62 - main - graphics/drm-latest-kmod: apply 2b49118158d0aa7cb to port
Message-ID:  <697e69e3.39569.8468e16@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by ngie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=381b9471dc62d51f20ff4bc94854a87b4faf8613

commit 381b9471dc62d51f20ff4bc94854a87b4faf8613
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-01-31 20:43:45 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-01-31 20:44:50 +0000

    graphics/drm-latest-kmod: apply 2b49118158d0aa7cb to port
    
    This unbreaks the package build with clang 21+.
    
    MFH:            2026Q1
    Approved by:    emaste (maintainer)
    Reviewed by:    emaste, dim
    Differential Revision:  https://reviews.freebsd.org/D54993
---
 graphics/drm-latest-kmod/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/graphics/drm-latest-kmod/Makefile b/graphics/drm-latest-kmod/Makefile
index 54e1b4c9ae2f..1a41b3fa517d 100644
--- a/graphics/drm-latest-kmod/Makefile
+++ b/graphics/drm-latest-kmod/Makefile
@@ -54,8 +54,14 @@ PLIST_SUB+=	I915="@comment "
 
 MAKE_ENV+=	MAKEOBJDIRPREFIX=${WRKSRC}/obj
 
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 211
+CFLAGS+=	-Wno-default-const-init-var-unsafe
+.endif
+
 pre-build:
 		${MKDIR} ${WRKSRC}/obj
 		(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj)
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?697e69e3.39569.8468e16>