From b1e6d53ca84c39a466d21c43bb7ac503bd9635e5 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Wed, 24 Apr 2024 11:00:59 +0200 Subject: sysutils/slurm-wlm: fix build on powerpc64* While here, also enable ofed libraries which don't seem to be experimental anymore. --- sysutils/slurm-wlm/Makefile | 13 +++++++++++-- sysutils/slurm-wlm/pkg-plist | 2 ++ 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 + # 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 -- cgit v1.2.3