Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 May 2026 10:31:13 +0000
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d93ae9e95f0d - main - science/dirac: fix build on powerpc64* and armv7
Message-ID:  <6a005e71.39e5c.2d7599a4@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by pkubaj:

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

commit d93ae9e95f0d2f0a4612299e2c496dc0c0a3f47a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-05-07 10:59:27 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-05-10 10:30:59 +0000

    science/dirac: fix build on powerpc64* and armv7
    
    Only tested on powerpc64le, hopefully powerpc64 and armv7 also build.
    
    REAL*16 is not supported on those arches, but only stieltjes uses it,
    so the port builds after disabling it.
---
 science/dirac/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/science/dirac/Makefile b/science/dirac/Makefile
index 6d1470e467cd..fc3f8e3e0665 100644
--- a/science/dirac/Makefile
+++ b/science/dirac/Makefile
@@ -13,10 +13,7 @@ WWW=		http://diracprogram.org/doku.php
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN_armv7=		compilation fails: Error: Old-style type declaration REAL*16 not supported at (1)
 BROKEN_i386=		compilation fails: Error: Type mismatch in argument 'lu' at (1); passed INTEGER(8) to INTEGER(4) (and similar)
-BROKEN_powerpc64=	compilation fails: Error: Old-style type declaration REAL*16 not supported at (1)
-BROKEN_powerpc64le=	compilation fails: Error: Old-style type declaration REAL*16 not supported at (1)
 
 BUILD_DEPENDS=	gmake:devel/gmake
 LIB_DEPENDS=	libblas.so:math/blas \
@@ -45,6 +42,12 @@ BINARY_ALIAS=	make=${GMAKE} \
 		python=${PYTHON_CMD} \
 		python3=${PYTHON_CMD}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == armv7 || ${ARCH} == powerpc64 || ${ARCH} == powerpc64le
+CMAKE_ARGS+=	ENABLE_STIELTJES
+.endif
+
 # 2 tests are known to fail, see https://gitlab.com/dirac/dirac/-/issues/35
 
 .include <bsd.port.mk>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a005e71.39e5c.2d7599a4>