git: 1eda80eb4299 - main - x11/hyprshutdown: Unbreak build on -CURRENT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Mar 2026 08:12:24 UTC
The branch main has been updated by tagattie:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1eda80eb4299279ebd172cd4451a453b2ac810e5
commit 1eda80eb4299279ebd172cd4451a453b2ac810e5
Author: Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-03-04 08:10:54 +0000
Commit: Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-03-04 08:12:18 +0000
x11/hyprshutdown: Unbreak build on -CURRENT
clang with debug assertions enabled (on -CURRENT) crashes when it
tries to compile this port. As a workaround use clang from ports when
system clang has debug assertions enabled.
Reported by: pkg-fallout
---
x11/hyprshutdown/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/x11/hyprshutdown/Makefile b/x11/hyprshutdown/Makefile
index 0b2d822c4fdd..b816a3d6daad 100644
--- a/x11/hyprshutdown/Makefile
+++ b/x11/hyprshutdown/Makefile
@@ -15,7 +15,7 @@ LIB_DEPENDS= libhyprutils.so:devel/hyprutils \
libdrm.so:graphics/libdrm \
libhyprtoolkit.so:x11-toolkits/hyprtoolkit
-USES= cmake pkgconfig xorg
+USES= cmake compiler pkgconfig xorg
USE_GITHUB= yes
GH_ACCOUNT= hyprwm
@@ -25,3 +25,9 @@ USE_XORG= pixman
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.mk>
+
+# XXX COMPILER_TYPE is defined after USES was already parsed
+.if ${CHOSEN_COMPILER_TYPE} == clang && ${_CCVERSION:M+assertions}
+llvm_ARGS= build
+.include "${USESDIR}/llvm.mk"
+.endif