mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
sysutils/slurm-wlm: Add support for the jobacct_gather/linux plugin
- The plugin requires linprocfs, so add an off-by-defult option knob to depend on linux. - Patch source files to point to /compat/linux/proc. Submitted by: Jason Bacon <bacon4000@gmail.com> Approved by: swills (mentor, implicit)
This commit is contained in:
parent
1b39ee44f9
commit
ea3cacb3fb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438780
1 changed files with 29 additions and 1 deletions
|
@ -34,7 +34,7 @@ USES= gmake libtool pkgconfig python:build readline shebangfix ssl \
|
|||
USE_PERL5= configure
|
||||
SHEBANG_FILES= doc/html/shtml2html.py doc/man/man2html.py
|
||||
|
||||
OPTIONS_DEFINE= CURL DOCS GTK2 HDF5 HWLOC IPMI MYSQL RRD
|
||||
OPTIONS_DEFINE= CURL DOCS GTK2 HDF5 HWLOC IPMI MYSQL RRD LINUX
|
||||
OPTIONS_DEFAULT=HDF5 HWLOC
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
|
@ -44,6 +44,7 @@ HDF5_DESC= Job profiling using HDF5
|
|||
HWLOC_DESC= Portable hardware locality
|
||||
IPMI_DESC= IPMI engergy consumption accounting
|
||||
RRD_DESC= RRD external sensor data collection
|
||||
LINUX_DESC= Support jobacct_gather/linux (requires linprocfs)
|
||||
|
||||
DOCS_BUILD_DEPENDS= man2html:textproc/man2html
|
||||
|
||||
|
@ -75,6 +76,8 @@ MYSQL_CONFIGURE_OFF= --with-mysql_config=/nonexistent
|
|||
RRD_LIB_DEPENDS= librrd.so:databases/rrdtool
|
||||
RRD_CONFIGURE_WITH= rrdtool
|
||||
|
||||
LINUX_USES= linux
|
||||
|
||||
CFLAGS+= -I${WRKSRC}/slurm -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib -lsysinfo -lkvm
|
||||
|
||||
|
@ -100,6 +103,31 @@ post-patch:
|
|||
-e 's|SlurmdSpoolDir=.*|SlurmdSpoolDir=/var/spool/slurmd|' \
|
||||
-e 's|StateSaveLocation=.*|StateSaveLocation=/var/run/slurm|' \
|
||||
${WRKSRC}/etc/slurm.conf.example
|
||||
@${REINPLACE_CMD} -e 's|"/proc|"/compat/linux/proc|g' \
|
||||
${WRKSRC}/src/slurmd/slurmstepd/req.c \
|
||||
${WRKSRC}/src/slurmd/slurmstepd/pdebug.c \
|
||||
${WRKSRC}/src/slurmd/slurmd/get_mach_stat.c \
|
||||
${WRKSRC}/src/slurmd/slurmd/read_proc.c \
|
||||
${WRKSRC}/src/slurmd/common/xcpuinfo.c \
|
||||
${WRKSRC}/src/slurmd/common/xcgroup.c \
|
||||
${WRKSRC}/src/slurmd/common/set_oomadj.c \
|
||||
${WRKSRC}/src/slurmd/common/proctrack.c \
|
||||
${WRKSRC}/src/common/callerid.c \
|
||||
${WRKSRC}/src/plugins/task/affinity/affinity.c \
|
||||
${WRKSRC}/src/plugins/acct_gather_energy/rapl/acct_gather_energy_rapl.c \
|
||||
${WRKSRC}/src/plugins/jobacct_gather/cgroup/jobacct_gather_cgroup.c \
|
||||
${WRKSRC}/src/plugins/jobacct_gather/common/common_jag.c \
|
||||
${WRKSRC}/src/plugins/jobacct_gather/linux/jobacct_gather_linux.c \
|
||||
${WRKSRC}/src/plugins/jobacct_gather/aix/jobacct_gather_aix.c \
|
||||
${WRKSRC}/src/plugins/switch/cray/scaling.c \
|
||||
${WRKSRC}/src/plugins/proctrack/cray/proctrack_cray.c \
|
||||
${WRKSRC}/src/plugins/proctrack/cgroup/proctrack_cgroup.c \
|
||||
${WRKSRC}/src/plugins/proctrack/pgid/proctrack_pgid.c \
|
||||
${WRKSRC}/src/plugins/proctrack/linuxproc/kill_tree.c \
|
||||
${WRKSRC}/src/plugins/proctrack/lua/proctrack_lua.c \
|
||||
${WRKSRC}/src/plugins/acct_gather_filesystem/lustre/acct_gather_filesystem_lustre.c \
|
||||
${WRKSRC}/contribs/cray/pam_job.c \
|
||||
${WRKSRC}/contribs/lua/proctrack.lua
|
||||
|
||||
# Hack around nonfunctional --disable-gtktest flag
|
||||
post-patch-GTK2-off:
|
||||
|
|
Loading…
Add table
Reference in a new issue