git: 491ea308a885 - main - math/linbox: mark BROKEN with clang-19

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 12 Jan 2025 18:13:19 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=491ea308a885b44eddf64901fc5a3a440aa4ea14

commit 491ea308a885b44eddf64901fc5a3a440aa4ea14
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2025-01-12 18:00:07 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2025-01-12 18:13:16 +0000

    math/linbox: mark BROKEN with clang-19
    
    It was not sufficient to mark it broken on 15, because clang-19 has been
    merged on stable/14.
    
    Reported by:    mandree
---
 math/linbox/Makefile | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/math/linbox/Makefile b/math/linbox/Makefile
index cd9cf87c3ee8..f79cc74daa92 100644
--- a/math/linbox/Makefile
+++ b/math/linbox/Makefile
@@ -11,9 +11,6 @@ WWW=		https://linalg.org/
 LICENSE=	GPLv2 LGPL21
 LICENSE_COMB=	dual
 
-# See https://github.com/linbox-team/linbox/issues/320
-BROKEN_FreeBSD_15=	compilation errors with clang19
-
 BUILD_DEPENDS=	fflas-ffpack-config:math/fflas-ffpack
 LIB_DEPENDS=	libgmp.so:math/gmp		\
 		libgivaro.so:math/givaro
@@ -71,4 +68,11 @@ CONFIGURE_ARGS+=--disable-sse --disable-sse2 --disable-sse3 --disable-ssse3	\
 		--disable-avx --disable-avx2
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 180
+# See https://github.com/linbox-team/linbox/issues/320
+BROKEN=		compilation errors with clang19
+.endif
+
+.include <bsd.port.post.mk>