git: 50e6dae0b7b2 - main - graphics/darktable: Add `llvm:build` after `compiler:*` in USES=

From: Jean-Sébastien Pédron <dumbbell_at_FreeBSD.org>
Date: Thu, 22 Jan 2026 21:13:57 UTC
The branch main has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/ports/commit/?id=50e6dae0b7b2bbf3c62ed7fe7bf5df76bd128391

commit 50e6dae0b7b2bbf3c62ed7fe7bf5df76bd128391
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2026-01-22 21:07:57 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2026-01-22 21:07:57 +0000

    graphics/darktable: Add `llvm:build` after `compiler:*` in USES=
    
    The move of `USES+=compiler:*` later in the file to be able to check
    `${ARCH}` apparently triggered the following warning:
    
        make: .../Mk/Uses/compiler.mk:86: warning: Command "/usr/local/llvm19/bin/clang --version" exited with status 127
        make: .../Mk/Uses/compiler.mk:134: warning: Command "/usr/local/llvm19/bin/clang++ -### /dev/null 2>&1" exited with status 127
    
    It looks like the order of `compiler:*` and `llvm:*` is important.
    Moving the addition of `llvm:compiler` after `compiler:*` was added
    conditionally fixes that warning.
    
    PR:             292128
    Reported by:    Trond Endrestøl <Trond.Endrestol@ximalas.info>
    Tested by:      Trond Endrestøl <Trond.Endrestol@ximalas.info>,
                    Herbert J. Skuhra <herbert@gojira.at>
---
 graphics/darktable/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/graphics/darktable/Makefile b/graphics/darktable/Makefile
index 1dc5eb14e03f..0518786fa1b5 100644
--- a/graphics/darktable/Makefile
+++ b/graphics/darktable/Makefile
@@ -42,8 +42,10 @@ LIB_DEPENDS=	libavif.so:graphics/libavif \
 		libtiff.so:graphics/tiff \
 		libwebp.so:graphics/webp
 
-USES=		cmake desktop-file-utils gl gnome jpeg llvm:build lua perl5 \
-		pkgconfig sdl shebangfix sqlite tar:xz xorg
+# Note that compiler-related Uses are defined later in this Makefile, based on
+# the value of `${ARCH}`.
+USES=		cmake desktop-file-utils gl gnome jpeg lua perl5 pkgconfig sdl \
+		shebangfix sqlite tar:xz xorg
 USE_GL=		gl
 USE_GNOME=	cairo gtk30 intltool librsvg2 libxml2
 USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}
@@ -110,6 +112,12 @@ USES+=		compiler:gcc-c++11-lib
 .else
 USES+=		compiler:c++11-lib
 .endif
+# `llvm:build` must be added after `compiler:*` above. Otherwise it triggers
+# the following warning from Mk/compiler.mk:
+#
+#     make: .../Mk/Uses/compiler.mk:86: warning: Command "/usr/local/llvm19/bin/clang --version" exited with status 127
+#     make: .../Mk/Uses/compiler.mk:134: warning: Command "/usr/local/llvm19/bin/clang++ -### /dev/null 2>&1" exited with status 127
+USES+=		llvm:build
 
 .include <bsd.port.pre.mk>