aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2024-04-24 09:00:59 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2024-04-24 21:21:18 +0000
commitb1e6d53ca84c39a466d21c43bb7ac503bd9635e5 (patch)
tree1774196407f94c8e9ccb125e6741b7a56f3a4eac
parentc38248ba1429b9dc6cc882ecabde0e805f2b1d6e (diff)
downloadports-b1e6d53ca84c39a466d21c43bb7ac503bd9635e5.tar.gz
ports-b1e6d53ca84c39a466d21c43bb7ac503bd9635e5.zip
sysutils/slurm-wlm: fix build on powerpc64*
While here, also enable ofed libraries which don't seem to be experimental anymore.
-rw-r--r--sysutils/slurm-wlm/Makefile13
-rw-r--r--sysutils/slurm-wlm/pkg-plist2
2 files changed, 13 insertions, 2 deletions
diff --git a/sysutils/slurm-wlm/Makefile b/sysutils/slurm-wlm/Makefile
index 0994b4f72631..ee3014a9f019 100644
--- a/sysutils/slurm-wlm/Makefile
+++ b/sysutils/slurm-wlm/Makefile
@@ -85,8 +85,7 @@ RRD_CONFIGURE_WITH= rrdtool
# FreeBSD Infiniband support is still experimental
# slurmrestd does not build on FreeBSD
-CONFIGURE_ARGS= --without-ofed --disable-slurmrestd \
- --with-mysql_config=${LOCALBASE}/bin \
+CONFIGURE_ARGS= --disable-slurmrestd --with-mysql_config=${LOCALBASE}/bin \
--docdir=${DOCSDIR} --htmldir=${DOCSDIR}
CFLAGS+= -I${WRKSRC}/slurm -I${LOCALBASE}/include \
@@ -119,6 +118,8 @@ PROC2FIX= common/callerid.c common/fd.c common/fetch_config.c \
LLD2FIX= api plugins/openapi sacctmgr sackd scontrol scrontab scrun \
slurmctld slurmd/slurmd squeue
+.include <bsd.port.options.mk>
+
# Hack around nonfunctional --disable-gtktest flag
pre-configure-GUI-off:
${REINPLACE_CMD} -e 's|min_gtk_version=.*|min_gtk_version=2000.0.0|' \
@@ -143,8 +144,16 @@ pre-configure:
${ECHO_CMD} "********************************************"; \
false; \
fi
+.if ${ARCH} == powerpc64le
+ ${FIND} ${LLD2FIX:C|^|${WRKSRC}/src/|} -name Makefile.in | ${XARGS} \
+ ${REINPLACE_CMD} -e 's|-r -o|-r -m elf64lppc -o|'
+.elif ${ARCH} == powerpc64
+ ${FIND} ${LLD2FIX:C|^|${WRKSRC}/src/|} -name Makefile.in | ${XARGS} \
+ ${REINPLACE_CMD} -e 's|-r -o|-r -m elf64ppc -o|'
+.else
${FIND} ${LLD2FIX:C|^|${WRKSRC}/src/|} -name Makefile.in | ${XARGS} \
${REINPLACE_CMD} -e 's|-r -o|-r -m elf_${ARCH} -o|'
+.endif
${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
${REINPLACE_CMD} -e 's|htmldir = \$${datadir.*$$|htmldir = @htmldir@|'
diff --git a/sysutils/slurm-wlm/pkg-plist b/sysutils/slurm-wlm/pkg-plist
index 1104c8d36b51..302cc5903f07 100644
--- a/sysutils/slurm-wlm/pkg-plist
+++ b/sysutils/slurm-wlm/pkg-plist
@@ -48,6 +48,8 @@ lib/slurm/acct_gather_energy_rapl.so
%%IPMI%%lib/slurm/acct_gather_energy_xcc.so
lib/slurm/acct_gather_filesystem_lustre.a
lib/slurm/acct_gather_filesystem_lustre.so
+lib/slurm/acct_gather_interconnect_ofed.a
+lib/slurm/acct_gather_interconnect_ofed.so
lib/slurm/acct_gather_interconnect_sysfs.a
lib/slurm/acct_gather_interconnect_sysfs.so
%%CURL%%lib/slurm/acct_gather_profile_influxdb.a