Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2024 13:43:41 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 4d1ba254082f - 2024Q4 - science/PETSc: Fix build on 32-bit systems
Message-ID:  <202412141343.4BEDhfZ1073335@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch 2024Q4 has been updated by yuri:

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

commit 4d1ba254082f1e2d02f768e5f1c5d9579278bb98
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-12-14 13:43:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-12-14 13:43:30 +0000

    science/PETSc: Fix build on 32-bit systems
---
 science/PETSc/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/science/PETSc/Makefile b/science/PETSc/Makefile
index 4128f654dfeb..d5eb43c49147 100644
--- a/science/PETSc/Makefile
+++ b/science/PETSc/Makefile
@@ -21,6 +21,8 @@ USE_XORG=	x11
 SHEBANG_FILES=	configure lib/petsc/bin/*.py lib/petsc/bin/saws/SAWs.py lib/petsc/bin/saws/*.bash config/*.py	\
 		lib/petsc/bin/petscnagfor share/petsc/chkerrconvert.py
 
+XARCH!=		uname -p
+
 GNU_CONFIGURE=	yes
 CONFIGURE_LOG=	configure.log
 CONFIGURE_ARGS=	--with-shared-libraries=1 \
@@ -32,7 +34,9 @@ CONFIGURE_ARGS=	--with-shared-libraries=1 \
 		MAKEFLAGS="${MAKEFLAGS}" LDFLAGS="${LDFLAGS}" LIBS=""
 CONFIGURE_ARGS_amd64=	CFLAGS="${CFLAGS} -msse2" CXXFLAGS="${CXXFLAGS} -msse2"
 CONFIGURE_ARGS_i386=	CFLAGS="${CFLAGS} -msse2" CXXFLAGS="${CXXFLAGS} -msse2"
+.if ${XARCH:M*64*} # match IDXTYPEWIDTH being set to 64 in math/metis
 CONFIGURE_ARGS+=	--with-64-bit-indices # as opposed to 32-bit indices that are default
+.endif
 
 MAKEFILE=	makefile
 TEST_TARGET=	test # 152 of 11396 tests (1.3%) fail due to missing files like /usr/local/share/petsc/datafiles/meshes/square_periodic.msh (tests expect the packe to be installed)


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412141343.4BEDhfZ1073335>