1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

sysutils/slurm-wlm: fix build on powerpc64*

While here, also enable ofed libraries which don't seem to be experimental anymore.
This commit is contained in:
Piotr Kubaj 2024-04-24 11:00:59 +02:00
parent c38248ba14
commit b1e6d53ca8
2 changed files with 13 additions and 2 deletions

View File

@ -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@|'

View File

@ -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