diff options
author | bacon <bacon@pkgsrc.org> | 2018-04-22 21:31:09 +0000 |
---|---|---|
committer | bacon <bacon@pkgsrc.org> | 2018-04-22 21:31:09 +0000 |
commit | 205a1076eb42235c4160338df9b75712787525e0 (patch) | |
tree | d1f649f19a980bb85a0114b5dc156c9e5a34900d /parallel | |
parent | 1c30974d891359415e31412e5e07d10c059b43ac (diff) | |
download | pkgsrc-205a1076eb42235c4160338df9b75712787525e0.tar.gz |
parallel/slurm-wlm: import slurm-wlm-17.11.5
SLURM is an open-source resource manager designed for Linux clusters of
all sizes. It provides three key functions. First it allocates exclusive
and/or non-exclusive access to resources (computer nodes) to users for some
duration of time so they can perform work. Second, it provides a framework
for starting, executing, and monitoring work (typically a parallel job) on
a set of allocated nodes. Finally, it arbitrates contention for resources
by managing a queue of pending work.
Renamed from parallel/slurm.
OK wiz@
Diffstat (limited to 'parallel')
-rw-r--r-- | parallel/slurm-wlm/DESCR | 7 | ||||
-rw-r--r-- | parallel/slurm-wlm/Makefile | 91 | ||||
-rw-r--r-- | parallel/slurm-wlm/PLIST | 506 | ||||
-rw-r--r-- | parallel/slurm-wlm/PLIST.Linux | 2 | ||||
-rw-r--r-- | parallel/slurm-wlm/distinfo | 14 | ||||
-rw-r--r-- | parallel/slurm-wlm/files/linux-slurm-enable | 64 | ||||
-rw-r--r-- | parallel/slurm-wlm/files/slurmctld.sh | 15 | ||||
-rw-r--r-- | parallel/slurm-wlm/files/slurmd.sh | 17 | ||||
-rw-r--r-- | parallel/slurm-wlm/patches/patch-etc_init.d.slurm.in | 16 | ||||
-rw-r--r-- | parallel/slurm-wlm/patches/patch-src_plugins_task_cgroup_task__cgroup__memory.c | 16 | ||||
-rw-r--r-- | parallel/slurm-wlm/patches/patch-src_slurmd_common_task__plugin.c | 30 | ||||
-rw-r--r-- | parallel/slurm-wlm/patches/patch-src_slurmd_common_task__plugin.h | 23 | ||||
-rw-r--r-- | parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_slurmd.c | 29 | ||||
-rw-r--r-- | parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_slurmd.h | 23 | ||||
-rw-r--r-- | parallel/slurm-wlm/patches/patch-src_slurmd_slurmstepd_io.c | 14 | ||||
-rw-r--r-- | parallel/slurm-wlm/patches/patch-src_slurmd_slurmstepd_task.c | 25 |
16 files changed, 892 insertions, 0 deletions
diff --git a/parallel/slurm-wlm/DESCR b/parallel/slurm-wlm/DESCR new file mode 100644 index 00000000000..655b1afe27c --- /dev/null +++ b/parallel/slurm-wlm/DESCR @@ -0,0 +1,7 @@ +SLURM is an open-source resource manager designed for Linux clusters of +all sizes. It provides three key functions. First it allocates exclusive +and/or non-exclusive access to resources (computer nodes) to users for some +duration of time so they can perform work. Second, it provides a framework +for starting, executing, and monitoring work (typically a parallel job) on +a set of allocated nodes. Finally, it arbitrates contention for resources +by managing a queue of pending work. diff --git a/parallel/slurm-wlm/Makefile b/parallel/slurm-wlm/Makefile new file mode 100644 index 00000000000..7a59a9bd771 --- /dev/null +++ b/parallel/slurm-wlm/Makefile @@ -0,0 +1,91 @@ +# $NetBSD: Makefile,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +DISTNAME= slurm-17.11.5 +PKGNAME= slurm-wlm-17.11.5 +CATEGORIES= parallel +MASTER_SITES= http://www.schedmd.com/download/archive/ +MASTER_SITES+= http://www.schedmd.com/download/latest/ +MASTER_SITES+= http://www.schedmd.com/download/development/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= bacon@NetBSD.org +HOMEPAGE= http://www.schedmd.com/ +COMMENT= Simple Linux Utility for Resource Management + +LICENSE= gnu-gpl-v2 + +BUILD_DEPENDS+= libtool-base-[0-9]*:../../devel/libtool-base +BUILD_DEPENDS+= man2html-[0-9]*:../../textproc/man2html + +GNU_CONFIGURE= yes +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes +USE_TOOLS+= bash perl pkg-config + +CONFIG_SHELL= bash +CONFIGURE_ARGS+= --bindir=${PREFIX}/bin +CONFIGURE_ARGS+= --htmldir=${PREFIX}/share/doc/${PKGNAME_NOREV}/html +CONFIGURE_ARGS+= --with-munge=${BUILDLINK_PREFIX.munge} +CONFIGURE_ARGS+= --with-hwloc=${PREFIX} +CONFIGURE_ARGS+= --with-json=${PREFIX} +CONFIGURE_ARGS+= --with-libssh2=${PREFIX} + +LDFLAGS+= -llz4 + +REPLACE_PYTHON= doc/html/shtml2html.py +REPLACE_PYTHON+= doc/man/man2html.py +REPLACE_PYTHON+= testsuite/expect/regression.py +REPLACE_PYTHON+= testsuite/expect/driveregress.py +REPLACE_PYTHON+= contribs/cray/csm/slurmconfgen_smw.py + +PKG_GROUPS= slurm +PKG_USERS= slurm:slurm + +PKG_GECOS.slurm= SLURM user +PKG_SHELL.slurm= ${NOLOGIN} + +RCD_SCRIPTS+= slurmd slurmctld + +SUBST_CLASSES+= linuxinit +SUBST_STAGE.linuxinit= post-patch +SUBST_FILES.linuxinit= etc/init.d.slurm.in +SUBST_SED.linuxinit= -e 's|^exec_prefix=|&${PREFIX}|' +SUBST_SED.linuxinit+= -e 's|^prefix=|&${PREFIX}|' +SUBST_SED.linuxinit+= -e 's|@bindir@|$${exec_prefix}/bin|' +SUBST_SED.linuxinit+= -e 's|@sbindir@|$${exec_prefix}/sbin|' +SUBST_SED.linuxinit+= -e 's|@libdir@|$${exec_prefix}/lib|' +SUBST_SED.linuxinit+= -e 's|@sysconfdir@|$${prefix}/etc|' + +# Configure flag to disable gtk does not work, so set an impossible requirement +SUBST_CLASSES+= gtk +SUBST_STAGE.gtk= post-patch +SUBST_SED.gtk= -e 's|min_gtk_version=.*|min_gtk_version=2000.0.0|' +SUBST_FILES.gtk= configure + +SUBST_CLASSES+= make-ex +SUBST_STAGE.make-ex= post-install +SUBST_FILES.make-ex= etc/Makefile +SUBST_SED.make-ex= -e 's|${WRKDIR}|<build-prefix>|g' + +INSTALLATION_DIRS+= share/examples/slurm + +post-install: + ${RM} -f ${WRKSRC}/etc/init.d.slurm.in.orig + ${INSTALL_DATA} ${WRKSRC}/etc/* ${DESTDIR}${PREFIX}/share/examples/slurm + +.include "../../www/curl/buildlink3.mk" +.include "../../lang/python/tool.mk" +.include "../../security/munge/buildlink3.mk" # optional +.include "../../parallel/hwloc/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../devel/hdf5/buildlink3.mk" +.include "../../devel/readline/buildlink3.mk" +.include "../../archivers/lz4/buildlink3.mk" +.include "../../textproc/json-c/buildlink3.mk" +.include "../../security/libssh2/buildlink3.mk" +.include "../../lang/lua/buildlink3.mk" +.include "../../mk/mysql.buildlink3.mk" +.include "../../mk/dlopen.buildlink3.mk" +.include "../../mk/curses.buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/parallel/slurm-wlm/PLIST b/parallel/slurm-wlm/PLIST new file mode 100644 index 00000000000..4a366646067 --- /dev/null +++ b/parallel/slurm-wlm/PLIST @@ -0,0 +1,506 @@ +@comment $NetBSD: PLIST,v 1.1 2018/04/22 21:31:09 bacon Exp $ +bin/sacct +bin/sacctmgr +bin/salloc +bin/sattach +bin/sbatch +bin/sbcast +bin/scancel +bin/scontrol +bin/sdiag +bin/sh5util +bin/sinfo +bin/smap +bin/sprio +bin/squeue +bin/sreport +bin/srun +bin/sshare +bin/sstat +bin/strigger +include/slurm/pmi.h +include/slurm/slurm.h +include/slurm/slurm_errno.h +include/slurm/slurmdb.h +include/slurm/smd_ns.h +include/slurm/spank.h +lib/libpmi.la +lib/libslurm.la +lib/libslurmdb.la +lib/slurm/accounting_storage_filetxt.la +lib/slurm/accounting_storage_mysql.la +lib/slurm/accounting_storage_none.la +lib/slurm/accounting_storage_slurmdbd.la +lib/slurm/acct_gather_energy_cray.la +lib/slurm/acct_gather_energy_ibmaem.la +lib/slurm/acct_gather_energy_none.la +lib/slurm/acct_gather_energy_rapl.la +lib/slurm/acct_gather_filesystem_lustre.la +lib/slurm/acct_gather_filesystem_none.la +lib/slurm/acct_gather_interconnect_none.la +lib/slurm/acct_gather_profile_hdf5.la +lib/slurm/acct_gather_profile_none.la +lib/slurm/auth_munge.la +lib/slurm/auth_none.la +lib/slurm/burst_buffer_cray.la +lib/slurm/burst_buffer_generic.la +lib/slurm/checkpoint_none.la +lib/slurm/checkpoint_ompi.la +lib/slurm/core_spec_cray.la +lib/slurm/core_spec_none.la +lib/slurm/crypto_munge.la +lib/slurm/crypto_openssl.la +lib/slurm/ext_sensors_none.la +lib/slurm/gres_gpu.la +lib/slurm/gres_mic.la +lib/slurm/gres_nic.la +lib/slurm/job_container_cncu.la +lib/slurm/job_container_none.la +lib/slurm/job_submit_all_partitions.la +lib/slurm/job_submit_cray.la +lib/slurm/job_submit_defaults.la +lib/slurm/job_submit_logging.la +lib/slurm/job_submit_lua.la +lib/slurm/job_submit_partition.la +lib/slurm/job_submit_pbs.la +lib/slurm/job_submit_require_timelimit.la +lib/slurm/job_submit_throttle.la +lib/slurm/jobacct_gather_cgroup.la +lib/slurm/jobacct_gather_linux.la +lib/slurm/jobacct_gather_none.la +lib/slurm/jobcomp_elasticsearch.la +lib/slurm/jobcomp_filetxt.la +lib/slurm/jobcomp_mysql.la +lib/slurm/jobcomp_none.la +lib/slurm/jobcomp_script.la +lib/slurm/launch_slurm.la +lib/slurm/layouts_power_cpufreq.la +lib/slurm/layouts_power_default.la +lib/slurm/layouts_unit_default.la +lib/slurm/libslurmfull.la +lib/slurm/mcs_account.la +lib/slurm/mcs_group.la +lib/slurm/mcs_none.la +lib/slurm/mcs_user.la +lib/slurm/mpi_none.la +lib/slurm/mpi_openmpi.la +lib/slurm/mpi_pmi2.la +lib/slurm/node_features_knl_cray.la +lib/slurm/node_features_knl_generic.la +lib/slurm/power_cray.la +lib/slurm/power_none.la +lib/slurm/preempt_job_prio.la +lib/slurm/preempt_none.la +lib/slurm/preempt_partition_prio.la +lib/slurm/preempt_qos.la +lib/slurm/priority_basic.la +lib/slurm/priority_multifactor.la +lib/slurm/proctrack_cgroup.la +lib/slurm/proctrack_linuxproc.la +lib/slurm/proctrack_lua.la +lib/slurm/proctrack_pgid.la +lib/slurm/route_default.la +lib/slurm/route_topology.la +lib/slurm/sched_backfill.la +lib/slurm/sched_builtin.la +lib/slurm/sched_hold.la +lib/slurm/select_alps.la +lib/slurm/select_cons_res.la +lib/slurm/select_cray.la +lib/slurm/select_linear.la +lib/slurm/select_serial.la +lib/slurm/slurmctld_nonstop.la +lib/slurm/spank_pbs.la +lib/slurm/src/sattach/sattach.wrapper.c +lib/slurm/src/srun/srun.wrapper.c +lib/slurm/switch_cray.la +lib/slurm/switch_generic.la +lib/slurm/switch_none.la +lib/slurm/task_cgroup.la +lib/slurm/task_cray.la +lib/slurm/task_none.la +lib/slurm/topology_3d_torus.la +lib/slurm/topology_hypercube.la +lib/slurm/topology_node_rank.la +lib/slurm/topology_none.la +lib/slurm/topology_tree.la +man/man1/sacct.1 +man/man1/sacctmgr.1 +man/man1/salloc.1 +man/man1/sattach.1 +man/man1/sbatch.1 +man/man1/sbcast.1 +man/man1/scancel.1 +man/man1/scontrol.1 +man/man1/sdiag.1 +man/man1/sh5util.1 +man/man1/sinfo.1 +man/man1/slurm.1 +man/man1/smap.1 +man/man1/sprio.1 +man/man1/squeue.1 +man/man1/sreport.1 +man/man1/srun.1 +man/man1/sshare.1 +man/man1/sstat.1 +man/man1/strigger.1 +man/man3/slurm_allocate_pack_job_blocking.3 +man/man3/slurm_allocate_resources.3 +man/man3/slurm_allocate_resources_blocking.3 +man/man3/slurm_allocation_lookup.3 +man/man3/slurm_allocation_msg_thr_create.3 +man/man3/slurm_allocation_msg_thr_destroy.3 +man/man3/slurm_api_version.3 +man/man3/slurm_checkpoint.3 +man/man3/slurm_checkpoint_able.3 +man/man3/slurm_checkpoint_complete.3 +man/man3/slurm_checkpoint_create.3 +man/man3/slurm_checkpoint_disable.3 +man/man3/slurm_checkpoint_enable.3 +man/man3/slurm_checkpoint_error.3 +man/man3/slurm_checkpoint_failed.3 +man/man3/slurm_checkpoint_restart.3 +man/man3/slurm_checkpoint_task_complete.3 +man/man3/slurm_checkpoint_tasks.3 +man/man3/slurm_checkpoint_vacate.3 +man/man3/slurm_clear_trigger.3 +man/man3/slurm_complete_job.3 +man/man3/slurm_confirm_allocation.3 +man/man3/slurm_create_partition.3 +man/man3/slurm_create_reservation.3 +man/man3/slurm_delete_partition.3 +man/man3/slurm_delete_reservation.3 +man/man3/slurm_free_ctl_conf.3 +man/man3/slurm_free_front_end_info_msg.3 +man/man3/slurm_free_job_alloc_info_response_msg.3 +man/man3/slurm_free_job_array_resp.3 +man/man3/slurm_free_job_info_msg.3 +man/man3/slurm_free_job_step_create_response_msg.3 +man/man3/slurm_free_job_step_info_response_msg.3 +man/man3/slurm_free_node_info.3 +man/man3/slurm_free_node_info_msg.3 +man/man3/slurm_free_partition_info.3 +man/man3/slurm_free_partition_info_msg.3 +man/man3/slurm_free_reservation_info_msg.3 +man/man3/slurm_free_resource_allocation_response_msg.3 +man/man3/slurm_free_slurmd_status.3 +man/man3/slurm_free_submit_response_response_msg.3 +man/man3/slurm_free_trigger_msg.3 +man/man3/slurm_get_end_time.3 +man/man3/slurm_get_errno.3 +man/man3/slurm_get_job_steps.3 +man/man3/slurm_get_rem_time.3 +man/man3/slurm_get_select_jobinfo.3 +man/man3/slurm_get_triggers.3 +man/man3/slurm_hostlist_create.3 +man/man3/slurm_hostlist_destroy.3 +man/man3/slurm_hostlist_shift.3 +man/man3/slurm_init_job_desc_msg.3 +man/man3/slurm_init_part_desc_msg.3 +man/man3/slurm_init_resv_desc_msg.3 +man/man3/slurm_init_trigger_msg.3 +man/man3/slurm_init_update_front_end_msg.3 +man/man3/slurm_init_update_node_msg.3 +man/man3/slurm_init_update_step_msg.3 +man/man3/slurm_job_cpus_allocated_on_node.3 +man/man3/slurm_job_cpus_allocated_on_node_id.3 +man/man3/slurm_job_step_create.3 +man/man3/slurm_job_step_launch_t_init.3 +man/man3/slurm_job_step_layout_free.3 +man/man3/slurm_job_step_layout_get.3 +man/man3/slurm_job_will_run.3 +man/man3/slurm_job_will_run2.3 +man/man3/slurm_jobinfo_ctx_get.3 +man/man3/slurm_kill_job.3 +man/man3/slurm_kill_job_step.3 +man/man3/slurm_load_ctl_conf.3 +man/man3/slurm_load_front_end.3 +man/man3/slurm_load_job.3 +man/man3/slurm_load_job_user.3 +man/man3/slurm_load_jobs.3 +man/man3/slurm_load_node.3 +man/man3/slurm_load_node_single.3 +man/man3/slurm_load_partitions.3 +man/man3/slurm_load_reservations.3 +man/man3/slurm_load_slurmd_status.3 +man/man3/slurm_notify_job.3 +man/man3/slurm_pack_job_lookup.3 +man/man3/slurm_pack_job_will_run.3 +man/man3/slurm_perror.3 +man/man3/slurm_pid2jobid.3 +man/man3/slurm_ping.3 +man/man3/slurm_print_ctl_conf.3 +man/man3/slurm_print_front_end_info_msg.3 +man/man3/slurm_print_front_end_table.3 +man/man3/slurm_print_job_info.3 +man/man3/slurm_print_job_info_msg.3 +man/man3/slurm_print_job_step_info.3 +man/man3/slurm_print_job_step_info_msg.3 +man/man3/slurm_print_node_info_msg.3 +man/man3/slurm_print_node_table.3 +man/man3/slurm_print_partition_info.3 +man/man3/slurm_print_partition_info_msg.3 +man/man3/slurm_print_reservation_info.3 +man/man3/slurm_print_reservation_info_msg.3 +man/man3/slurm_print_slurmd_status.3 +man/man3/slurm_read_hostfile.3 +man/man3/slurm_reconfigure.3 +man/man3/slurm_requeue.3 +man/man3/slurm_requeue2.3 +man/man3/slurm_resume.3 +man/man3/slurm_resume2.3 +man/man3/slurm_set_debug_level.3 +man/man3/slurm_set_trigger.3 +man/man3/slurm_shutdown.3 +man/man3/slurm_signal_job.3 +man/man3/slurm_signal_job_step.3 +man/man3/slurm_slurmd_status.3 +man/man3/slurm_sprint_front_end_table.3 +man/man3/slurm_sprint_job_info.3 +man/man3/slurm_sprint_job_step_info.3 +man/man3/slurm_sprint_node_table.3 +man/man3/slurm_sprint_partition_info.3 +man/man3/slurm_sprint_reservation_info.3 +man/man3/slurm_step_ctx_create.3 +man/man3/slurm_step_ctx_create_no_alloc.3 +man/man3/slurm_step_ctx_daemon_per_node_hack.3 +man/man3/slurm_step_ctx_destroy.3 +man/man3/slurm_step_ctx_get.3 +man/man3/slurm_step_ctx_params_t_init.3 +man/man3/slurm_step_launch.3 +man/man3/slurm_step_launch_abort.3 +man/man3/slurm_step_launch_fwd_signal.3 +man/man3/slurm_step_launch_wait_finish.3 +man/man3/slurm_step_launch_wait_start.3 +man/man3/slurm_strerror.3 +man/man3/slurm_submit_batch_job.3 +man/man3/slurm_suspend.3 +man/man3/slurm_suspend2.3 +man/man3/slurm_takeover.3 +man/man3/slurm_terminate_job.3 +man/man3/slurm_terminate_job_step.3 +man/man3/slurm_update_front_end.3 +man/man3/slurm_update_job.3 +man/man3/slurm_update_job2.3 +man/man3/slurm_update_node.3 +man/man3/slurm_update_partition.3 +man/man3/slurm_update_reservation.3 +man/man3/slurm_update_step.3 +man/man5/acct_gather.conf.5 +man/man5/bluegene.conf.5 +man/man5/burst_buffer.conf.5 +man/man5/cgroup.conf.5 +man/man5/cray.conf.5 +man/man5/ext_sensors.conf.5 +man/man5/gres.conf.5 +man/man5/knl.conf.5 +man/man5/nonstop.conf.5 +man/man5/slurm.conf.5 +man/man5/slurmdbd.conf.5 +man/man5/topology.conf.5 +man/man8/slurmctld.8 +man/man8/slurmd.8 +man/man8/slurmdbd.8 +man/man8/slurmstepd.8 +man/man8/spank.8 +sbin/slurmctld +sbin/slurmd +sbin/slurmdbd +sbin/slurmstepd +share/doc/slurm-${PKGVERSION}/html/Slurm_Entity.pdf +share/doc/slurm-${PKGVERSION}/html/Slurm_Individual.pdf +share/doc/slurm-${PKGVERSION}/html/accounting.html +share/doc/slurm-${PKGVERSION}/html/accounting_storageplugins.html +share/doc/slurm-${PKGVERSION}/html/acct_gather.conf.html +share/doc/slurm-${PKGVERSION}/html/acct_gather_energy_plugins.html +share/doc/slurm-${PKGVERSION}/html/acct_gather_profile_plugins.html +share/doc/slurm-${PKGVERSION}/html/add.html +share/doc/slurm-${PKGVERSION}/html/allocation_pies.gif +share/doc/slurm-${PKGVERSION}/html/api.html +share/doc/slurm-${PKGVERSION}/html/arch.gif +share/doc/slurm-${PKGVERSION}/html/authplugins.html +share/doc/slurm-${PKGVERSION}/html/bb_plugins.html +share/doc/slurm-${PKGVERSION}/html/big_sys.html +share/doc/slurm-${PKGVERSION}/html/bluegene.conf.html +share/doc/slurm-${PKGVERSION}/html/bluegene.html +share/doc/slurm-${PKGVERSION}/html/burst_buffer.conf.html +share/doc/slurm-${PKGVERSION}/html/burst_buffer.html +share/doc/slurm-${PKGVERSION}/html/cgroup.conf.html +share/doc/slurm-${PKGVERSION}/html/cgroups.html +share/doc/slurm-${PKGVERSION}/html/checkpoint_blcr.html +share/doc/slurm-${PKGVERSION}/html/checkpoint_plugins.html +share/doc/slurm-${PKGVERSION}/html/coding_style.pdf +share/doc/slurm-${PKGVERSION}/html/configurator.easy.html +share/doc/slurm-${PKGVERSION}/html/configurator.html +share/doc/slurm-${PKGVERSION}/html/cons_res.html +share/doc/slurm-${PKGVERSION}/html/cons_res_share.html +share/doc/slurm-${PKGVERSION}/html/contributor.html +share/doc/slurm-${PKGVERSION}/html/core_spec.html +share/doc/slurm-${PKGVERSION}/html/core_spec_plugins.html +share/doc/slurm-${PKGVERSION}/html/cpu_management.html +share/doc/slurm-${PKGVERSION}/html/cray.conf.html +share/doc/slurm-${PKGVERSION}/html/cray.html +share/doc/slurm-${PKGVERSION}/html/cray_alps.html +share/doc/slurm-${PKGVERSION}/html/crypto_plugins.html +share/doc/slurm-${PKGVERSION}/html/disclaimer.html +share/doc/slurm-${PKGVERSION}/html/dist_plane.html +share/doc/slurm-${PKGVERSION}/html/documentation.html +share/doc/slurm-${PKGVERSION}/html/download.html +share/doc/slurm-${PKGVERSION}/html/elastic_computing.html +share/doc/slurm-${PKGVERSION}/html/entities.gif +share/doc/slurm-${PKGVERSION}/html/example_usage.gif +share/doc/slurm-${PKGVERSION}/html/ext_sensors.conf.html +share/doc/slurm-${PKGVERSION}/html/ext_sensorsplugins.html +share/doc/slurm-${PKGVERSION}/html/fair_tree.html +share/doc/slurm-${PKGVERSION}/html/faq.html +share/doc/slurm-${PKGVERSION}/html/federation.html +share/doc/slurm-${PKGVERSION}/html/fonts.css +share/doc/slurm-${PKGVERSION}/html/fonts.ttf +share/doc/slurm-${PKGVERSION}/html/gang_scheduling.html +share/doc/slurm-${PKGVERSION}/html/gres.conf.html +share/doc/slurm-${PKGVERSION}/html/gres.html +share/doc/slurm-${PKGVERSION}/html/gres_design.html +share/doc/slurm-${PKGVERSION}/html/gres_plugins.html +share/doc/slurm-${PKGVERSION}/html/hdf5_job_outline.png +share/doc/slurm-${PKGVERSION}/html/hdf5_profile_user_guide.html +share/doc/slurm-${PKGVERSION}/html/hdf5_task_attr.png +share/doc/slurm-${PKGVERSION}/html/heterogeneous_jobs.html +share/doc/slurm-${PKGVERSION}/html/high_throughput.html +share/doc/slurm-${PKGVERSION}/html/ibm-pe.html +share/doc/slurm-${PKGVERSION}/html/ibm_pe_fig1.png +share/doc/slurm-${PKGVERSION}/html/ibm_pe_fig2.png +share/doc/slurm-${PKGVERSION}/html/intel_knl.html +share/doc/slurm-${PKGVERSION}/html/job_array.html +share/doc/slurm-${PKGVERSION}/html/job_container_plugins.html +share/doc/slurm-${PKGVERSION}/html/job_exit_code.html +share/doc/slurm-${PKGVERSION}/html/job_launch.html +share/doc/slurm-${PKGVERSION}/html/job_submit_plugins.html +share/doc/slurm-${PKGVERSION}/html/jobacct_gatherplugins.html +share/doc/slurm-${PKGVERSION}/html/jobcompplugins.html +share/doc/slurm-${PKGVERSION}/html/jquery.min.js +share/doc/slurm-${PKGVERSION}/html/k_function.gif +share/doc/slurm-${PKGVERSION}/html/knl.conf.html +share/doc/slurm-${PKGVERSION}/html/launch_plugins.html +share/doc/slurm-${PKGVERSION}/html/licenses.html +share/doc/slurm-${PKGVERSION}/html/mail.html +share/doc/slurm-${PKGVERSION}/html/man_index.html +share/doc/slurm-${PKGVERSION}/html/mc_support.gif +share/doc/slurm-${PKGVERSION}/html/mc_support.html +share/doc/slurm-${PKGVERSION}/html/mcs.html +share/doc/slurm-${PKGVERSION}/html/mcs_plugins.html +share/doc/slurm-${PKGVERSION}/html/meetings.html +share/doc/slurm-${PKGVERSION}/html/mpi_guide.html +share/doc/slurm-${PKGVERSION}/html/mpiplugins.html +share/doc/slurm-${PKGVERSION}/html/multi_cluster.html +share/doc/slurm-${PKGVERSION}/html/news.html +share/doc/slurm-${PKGVERSION}/html/node_features_plugins.html +share/doc/slurm-${PKGVERSION}/html/nonstop.conf.html +share/doc/slurm-${PKGVERSION}/html/overview.html +share/doc/slurm-${PKGVERSION}/html/pam_slurm_adopt.html +share/doc/slurm-${PKGVERSION}/html/plane_ex1.gif +share/doc/slurm-${PKGVERSION}/html/plane_ex2.gif +share/doc/slurm-${PKGVERSION}/html/plane_ex3.gif +share/doc/slurm-${PKGVERSION}/html/plane_ex4.gif +share/doc/slurm-${PKGVERSION}/html/plane_ex5.gif +share/doc/slurm-${PKGVERSION}/html/plane_ex6.gif +share/doc/slurm-${PKGVERSION}/html/plane_ex7.gif +share/doc/slurm-${PKGVERSION}/html/platforms.html +share/doc/slurm-${PKGVERSION}/html/plugins.html +share/doc/slurm-${PKGVERSION}/html/power_mgmt.html +share/doc/slurm-${PKGVERSION}/html/power_plugins.html +share/doc/slurm-${PKGVERSION}/html/power_save.html +share/doc/slurm-${PKGVERSION}/html/preempt.html +share/doc/slurm-${PKGVERSION}/html/preemption_plugins.html +share/doc/slurm-${PKGVERSION}/html/priority_multifactor.html +share/doc/slurm-${PKGVERSION}/html/priority_multifactor3.html +share/doc/slurm-${PKGVERSION}/html/priority_plugins.html +share/doc/slurm-${PKGVERSION}/html/proctrack_plugins.html +share/doc/slurm-${PKGVERSION}/html/programmer_guide.html +share/doc/slurm-${PKGVERSION}/html/prolog_epilog.html +share/doc/slurm-${PKGVERSION}/html/publications.html +share/doc/slurm-${PKGVERSION}/html/qos.html +share/doc/slurm-${PKGVERSION}/html/quickstart.html +share/doc/slurm-${PKGVERSION}/html/quickstart_admin.html +share/doc/slurm-${PKGVERSION}/html/reservations.html +share/doc/slurm-${PKGVERSION}/html/reset.css +share/doc/slurm-${PKGVERSION}/html/resource_limits.html +share/doc/slurm-${PKGVERSION}/html/rosetta.html +share/doc/slurm-${PKGVERSION}/html/route_plugin.html +share/doc/slurm-${PKGVERSION}/html/rpc.html +share/doc/slurm-${PKGVERSION}/html/sacct.html +share/doc/slurm-${PKGVERSION}/html/sacctmgr.html +share/doc/slurm-${PKGVERSION}/html/salloc.html +share/doc/slurm-${PKGVERSION}/html/sattach.html +share/doc/slurm-${PKGVERSION}/html/sbatch.html +share/doc/slurm-${PKGVERSION}/html/sbcast.html +share/doc/slurm-${PKGVERSION}/html/scancel.html +share/doc/slurm-${PKGVERSION}/html/sched_config.html +share/doc/slurm-${PKGVERSION}/html/schedmd.png +share/doc/slurm-${PKGVERSION}/html/schedplugins.html +share/doc/slurm-${PKGVERSION}/html/scontrol.html +share/doc/slurm-${PKGVERSION}/html/sdiag.html +share/doc/slurm-${PKGVERSION}/html/select_design.html +share/doc/slurm-${PKGVERSION}/html/selectplugins.html +share/doc/slurm-${PKGVERSION}/html/sh5util.html +share/doc/slurm-${PKGVERSION}/html/sinfo.html +share/doc/slurm-${PKGVERSION}/html/slurm.conf.html +share/doc/slurm-${PKGVERSION}/html/slurm.css +share/doc/slurm-${PKGVERSION}/html/slurm.html +share/doc/slurm-${PKGVERSION}/html/slurm_logo.png +share/doc/slurm-${PKGVERSION}/html/slurm_ug_agenda.html +share/doc/slurm-${PKGVERSION}/html/slurm_ug_cfp.html +share/doc/slurm-${PKGVERSION}/html/slurmctld.html +share/doc/slurm-${PKGVERSION}/html/slurmctld_plugstack.html +share/doc/slurm-${PKGVERSION}/html/slurmd.html +share/doc/slurm-${PKGVERSION}/html/slurmdbd.conf.html +share/doc/slurm-${PKGVERSION}/html/slurmdbd.html +share/doc/slurm-${PKGVERSION}/html/slurmstepd.html +share/doc/slurm-${PKGVERSION}/html/smap.html +share/doc/slurm-${PKGVERSION}/html/spank.html +share/doc/slurm-${PKGVERSION}/html/sprio.html +share/doc/slurm-${PKGVERSION}/html/squeue.html +share/doc/slurm-${PKGVERSION}/html/squeue_color.png +share/doc/slurm-${PKGVERSION}/html/sreport.html +share/doc/slurm-${PKGVERSION}/html/srun.html +share/doc/slurm-${PKGVERSION}/html/sshare.html +share/doc/slurm-${PKGVERSION}/html/sstat.html +share/doc/slurm-${PKGVERSION}/html/strigger.html +share/doc/slurm-${PKGVERSION}/html/style.css +share/doc/slurm-${PKGVERSION}/html/switchplugins.html +share/doc/slurm-${PKGVERSION}/html/taskplugins.html +share/doc/slurm-${PKGVERSION}/html/team.html +share/doc/slurm-${PKGVERSION}/html/testimonials.html +share/doc/slurm-${PKGVERSION}/html/topo_ex1.gif +share/doc/slurm-${PKGVERSION}/html/topo_ex2.gif +share/doc/slurm-${PKGVERSION}/html/topology.conf.html +share/doc/slurm-${PKGVERSION}/html/topology.html +share/doc/slurm-${PKGVERSION}/html/topology_plugin.html +share/doc/slurm-${PKGVERSION}/html/tres.html +share/doc/slurm-${PKGVERSION}/html/troubleshoot.html +share/doc/slurm-${PKGVERSION}/html/tutorial_intro_files.tar +share/doc/slurm-${PKGVERSION}/html/tutorials.html +share/doc/slurm-${PKGVERSION}/html/usage_pies.gif +share/doc/slurm-${PKGVERSION}/html/user_permissions.html +share/doc/slurm-${PKGVERSION}/html/wckey.html +share/examples/slurm/Makefile +share/examples/slurm/Makefile.am +share/examples/slurm/Makefile.in +share/examples/slurm/bluegene.conf.example +share/examples/slurm/cgroup.conf.example +share/examples/slurm/cgroup_allowed_devices_file.conf.example +share/examples/slurm/init.d.slurm +share/examples/slurm/init.d.slurm.in +share/examples/slurm/init.d.slurmdbd +share/examples/slurm/init.d.slurmdbd.in +share/examples/slurm/layouts.d.power.conf.example +share/examples/slurm/layouts.d.power_cpufreq.conf.example +share/examples/slurm/layouts.d.unit.conf.example +share/examples/slurm/slurm.conf.example +share/examples/slurm/slurm.epilog.clean +share/examples/slurm/slurmctld.service +share/examples/slurm/slurmctld.service.in +share/examples/slurm/slurmd.service +share/examples/slurm/slurmd.service.in +share/examples/slurm/slurmdbd.conf.example +share/examples/slurm/slurmdbd.service +share/examples/slurm/slurmdbd.service.in diff --git a/parallel/slurm-wlm/PLIST.Linux b/parallel/slurm-wlm/PLIST.Linux new file mode 100644 index 00000000000..96e5944ffcf --- /dev/null +++ b/parallel/slurm-wlm/PLIST.Linux @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST.Linux,v 1.1 2018/04/22 21:31:09 bacon Exp $ +lib/slurm/task_affinity.la diff --git a/parallel/slurm-wlm/distinfo b/parallel/slurm-wlm/distinfo new file mode 100644 index 00000000000..ea142e99872 --- /dev/null +++ b/parallel/slurm-wlm/distinfo @@ -0,0 +1,14 @@ +$NetBSD: distinfo,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +SHA1 (slurm-17.11.5.tar.bz2) = fe29758ca8d81492e18d59b84968cedf17a6161b +RMD160 (slurm-17.11.5.tar.bz2) = 8d393e7ddf545ac1e8c81e8ddd9160a5e76d9311 +SHA512 (slurm-17.11.5.tar.bz2) = cb82e192bf0ab57fbc810fc3c9b32e90d4c28926b4a959514e3df51b63556b13d01057938d73da5bc0bea157bbd7712b1aad0712a913ad912bd7e6089fc0bd21 +Size (slurm-17.11.5.tar.bz2) = 6248551 bytes +SHA1 (patch-etc_init.d.slurm.in) = beaedd5385b4aad04583d2bc5a23557519f74ec5 +SHA1 (patch-src_plugins_task_cgroup_task__cgroup__memory.c) = 1accc4ebb9456699db477557ddc783e136fdff00 +SHA1 (patch-src_slurmd_common_task__plugin.c) = 0d6680b10b45648703fe7a57411e605992fd9040 +SHA1 (patch-src_slurmd_common_task__plugin.h) = d4ad9f350efe1e873809adfe9dc4f559634e9ba2 +SHA1 (patch-src_slurmd_slurmd_slurmd.c) = 67cac6d8b4545c9053b655a4da77db63f5de7e63 +SHA1 (patch-src_slurmd_slurmd_slurmd.h) = a610b0bbe5b6b04be70eb2f8eac2a231139e6d1a +SHA1 (patch-src_slurmd_slurmstepd_io.c) = b56782887621edb539be70d53dff8029a89e90ed +SHA1 (patch-src_slurmd_slurmstepd_task.c) = 7948c76ce65b0e5211486d2e7b1901664c1f7016 diff --git a/parallel/slurm-wlm/files/linux-slurm-enable b/parallel/slurm-wlm/files/linux-slurm-enable new file mode 100644 index 00000000000..b162759003e --- /dev/null +++ b/parallel/slurm-wlm/files/linux-slurm-enable @@ -0,0 +1,64 @@ +#!/bin/sh -e + +########################################################################## +# Script description: +# +# Arguments: +# +# Returns: +# +# History: +# Date Name Modification +# 2013-12-26 root Begin +########################################################################## + +usage() +{ + printf "Usage: $0 node-type\n" + exit 1 +} + + +########################################################################## +# Main +########################################################################## + +if [ $# != 1 ]; then + usage +fi + +node_type=$1 +#./munge-enable $node_type + +case $node_type in +'head') + prefix='/usr/pkg-1' + ;; +'compute') + prefix='/sharedapps/pkg-1' + ;; +*) + printf "$0 is only for head and compute nodes.\n" + exit 1 + ;; +esac + +# slurm.conf +if [ ! -e $prefix/etc/slurm.conf ]; then + printf "Missing $prefix/etc/slurm.conf. Copy it from head node.\n" + exit 1 +fi + +# Init script +#if [ ! -e /etc/init.d/slurm ]; then + printf "exec_prefix=/$prefix\nprefix=$prefix\n\n" \ + > /etc/init.d/slurm + chmod 750 /etc/init.d/slurm + cat $prefix/share/examples/slurm/init.d.slurm >> /etc/init.d/slurm + chkconfig slurm on + service slurm restart +#fi + +mkdir -p /var/log/slurm +chown slurm:slurm /var/log/slurm + diff --git a/parallel/slurm-wlm/files/slurmctld.sh b/parallel/slurm-wlm/files/slurmctld.sh new file mode 100644 index 00000000000..00f68e08f2f --- /dev/null +++ b/parallel/slurm-wlm/files/slurmctld.sh @@ -0,0 +1,15 @@ +#!@RCD_SCRIPTS_SHELL@ +# $NetBSD: slurmctld.sh,v 1.1 2018/04/22 21:31:09 bacon Exp $ +# +# PROVIDE: slurmctld +# REQUIRE: DAEMON munge +# KEYWORD: shutdown + +. /etc/rc.subr + +name="slurmctld" +rcvar=${name} +command="@PREFIX@/sbin/slurmctld" + +load_rc_config $name +run_rc_command "$1" diff --git a/parallel/slurm-wlm/files/slurmd.sh b/parallel/slurm-wlm/files/slurmd.sh new file mode 100644 index 00000000000..8b2980a4c50 --- /dev/null +++ b/parallel/slurm-wlm/files/slurmd.sh @@ -0,0 +1,17 @@ +#!@RCD_SCRIPTS_SHELL@ +# $NetBSD: slurmd.sh,v 1.1 2018/04/22 21:31:09 bacon Exp $ +# +# PROVIDE: slurmd +# REQUIRE: DAEMON munge +# KEYWORD: shutdown + +. /etc/rc.subr + +name="slurmd" +rcvar=${name} +command="@PREFIX@/sbin/slurmd" + +slurmd_user="root" + +load_rc_config $name +run_rc_command "$1" diff --git a/parallel/slurm-wlm/patches/patch-etc_init.d.slurm.in b/parallel/slurm-wlm/patches/patch-etc_init.d.slurm.in new file mode 100644 index 00000000000..209e1dc20de --- /dev/null +++ b/parallel/slurm-wlm/patches/patch-etc_init.d.slurm.in @@ -0,0 +1,16 @@ +$NetBSD: patch-etc_init.d.slurm.in,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +# Provide something for SUBST to replace + +--- etc/init.d.slurm.in.orig 2015-03-19 19:38:01.000000000 +0000 ++++ etc/init.d.slurm.in +@@ -25,6 +25,9 @@ + # Description: Start slurm to provide resource management + ### END INIT INFO + ++exec_prefix= ++prefix= ++ + BINDIR="@bindir@" + CONFDIR="@sysconfdir@" + LIBDIR="@libdir@" diff --git a/parallel/slurm-wlm/patches/patch-src_plugins_task_cgroup_task__cgroup__memory.c b/parallel/slurm-wlm/patches/patch-src_plugins_task_cgroup_task__cgroup__memory.c new file mode 100644 index 00000000000..b9c49a0dfe5 --- /dev/null +++ b/parallel/slurm-wlm/patches/patch-src_plugins_task_cgroup_task__cgroup__memory.c @@ -0,0 +1,16 @@ +$NetBSD: patch-src_plugins_task_cgroup_task__cgroup__memory.c,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +# Guard Linuxism? +--- src/plugins/task/cgroup/task_cgroup_memory.c.orig 2018-03-15 18:57:29.000000000 +0000 ++++ src/plugins/task/cgroup/task_cgroup_memory.c +@@ -39,7 +39,10 @@ + #include <poll.h> + #include <signal.h> + #include <stdlib.h> /* getenv */ ++// Should this be defined(__Linux__)? ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + #include <sys/eventfd.h> ++#endif + #include <sys/types.h> + #include <unistd.h> + diff --git a/parallel/slurm-wlm/patches/patch-src_slurmd_common_task__plugin.c b/parallel/slurm-wlm/patches/patch-src_slurmd_common_task__plugin.c new file mode 100644 index 00000000000..d3c7e9d0d59 --- /dev/null +++ b/parallel/slurm-wlm/patches/patch-src_slurmd_common_task__plugin.c @@ -0,0 +1,30 @@ +$NetBSD: patch-src_slurmd_common_task__plugin.c,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +# cpuset functions not standardized across platforms + +--- src/slurmd/common/task_plugin.c.orig 2018-01-05 18:03:10.000000000 +0000 ++++ src/slurmd/common/task_plugin.c +@@ -542,7 +542,11 @@ extern void task_slurm_chkaffinity(cpu_s + int statval) + { + char *bind_type, *action, *status, *units; ++#ifdef __NetBSD__ ++ char mstr[1 + cpuset_size(mask) / 4]; ++#else + char mstr[1 + CPU_SETSIZE / 4]; ++#endif + int task_gid = job->envtp->procid; + int task_lid = job->envtp->localid; + pid_t mypid = job->envtp->task_pid; +@@ -609,7 +613,11 @@ extern char *task_cpuset_to_str(const cp + char *ptr = str; + char *ret = NULL; + ++#ifdef __NetBSD__ ++ for (base = cpuset_size(mask) - 4; base >= 0; base -= 4) { ++#else + for (base = CPU_SETSIZE - 4; base >= 0; base -= 4) { ++#endif + char val = 0; + if (CPU_ISSET(base, mask)) + val |= 1; diff --git a/parallel/slurm-wlm/patches/patch-src_slurmd_common_task__plugin.h b/parallel/slurm-wlm/patches/patch-src_slurmd_common_task__plugin.h new file mode 100644 index 00000000000..192a5f02f5c --- /dev/null +++ b/parallel/slurm-wlm/patches/patch-src_slurmd_common_task__plugin.h @@ -0,0 +1,23 @@ +$NetBSD: patch-src_slurmd_common_task__plugin.h,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +# cpuset functions not standardized across platforms + +--- src/slurmd/common/task_plugin.h.orig 2018-01-04 21:15:01.000000000 +0000 ++++ src/slurmd/common/task_plugin.h +@@ -42,6 +42,16 @@ + + #include "src/slurmd/slurmstepd/slurmstepd_job.h" + ++// Keep in sync with slurmd/slurmd.h ++#ifdef __NetBSD__ ++#define cpu_set_t cpuset_t ++#define CPU_ZERO(c) cpuset_zero((c)) ++#define CPU_SET(i,c) cpuset_set((i),(c)) ++#define CPU_ISSET(i,c) cpuset_isset((i),(c)) ++#define sched_getaffinity sched_getaffinity_np ++#define SCHED_GETAFFINITY_THREE_ARGS ++#endif ++ + /* + * Initialize the task plugin. + * diff --git a/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_slurmd.c b/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_slurmd.c new file mode 100644 index 00000000000..c2e3e316f1d --- /dev/null +++ b/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_slurmd.c @@ -0,0 +1,29 @@ +$NetBSD: patch-src_slurmd_slurmd_slurmd.c,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +# cpuset functions not standardized across platforms + +--- src/slurmd/slurmd/slurmd.c.orig 2018-01-04 21:15:01.000000000 +0000 ++++ src/slurmd/slurmd/slurmd.c +@@ -2067,7 +2067,13 @@ static int _core_spec_init(void) + uint32_t task_params; + bool slurmd_off_spec; + bitstr_t *res_mac_bitmap; ++#ifdef __NetBSD__ ++ cpuset_t *mask = cpuset_create(); ++#define CPU_SET_SIZE cpuset_size(mask) ++#else + cpu_set_t mask; ++#define CPU_SET_SIZE sizeof(cpu_set_t) ++#endif + + if ((conf->core_spec_cnt == 0) && (conf->cpu_spec_list == NULL)) { + debug("Resource spec: No specialized cores configured by " +@@ -2165,7 +2171,7 @@ static int _core_spec_init(void) + rval = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, + pid, sizeof(cpu_set_t), &mask); + #elif defined(SCHED_GETAFFINITY_THREE_ARGS) +- rval = sched_setaffinity(pid, sizeof(cpu_set_t), &mask); ++ rval = sched_setaffinity(pid, CPU_SET_SIZE, &mask); + #else + rval = sched_setaffinity(pid, &mask); + #endif diff --git a/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_slurmd.h b/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_slurmd.h new file mode 100644 index 00000000000..2efc576dae3 --- /dev/null +++ b/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_slurmd.h @@ -0,0 +1,23 @@ +$NetBSD: patch-src_slurmd_slurmd_slurmd.h,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +# cpuset functions not standardized across platforms + +--- src/slurmd/slurmd/slurmd.h.orig 2018-01-04 21:15:01.000000000 +0000 ++++ src/slurmd/slurmd/slurmd.h +@@ -48,6 +48,16 @@ + #include "src/common/slurm_protocol_api.h" + #include "src/common/slurm_cred.h" + ++// Keep in sync with common/task_plugin.h ++#ifdef __NetBSD__ ++#define CPU_ZERO(c) cpuset_zero((c)) ++#define CPU_SET(i,c) cpuset_set((i),(c)) ++#define CPU_ISSET(i,c) cpuset_isset((i),(c)) ++#define sched_getaffinity sched_getaffinity_np ++#define sched_setaffinity sched_setaffinity_np ++#define SCHED_GETAFFINITY_THREE_ARGS ++#endif ++ + #ifndef __USE_XOPEN_EXTENDED + extern pid_t getsid(pid_t pid); /* missing from <unistd.h> */ + extern pid_t getpgid(pid_t pid); diff --git a/parallel/slurm-wlm/patches/patch-src_slurmd_slurmstepd_io.c b/parallel/slurm-wlm/patches/patch-src_slurmd_slurmstepd_io.c new file mode 100644 index 00000000000..ce8fc0ad3eb --- /dev/null +++ b/parallel/slurm-wlm/patches/patch-src_slurmd_slurmstepd_io.c @@ -0,0 +1,14 @@ +$NetBSD: patch-src_slurmd_slurmstepd_io.c,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +# Portability + +--- src/slurmd/slurmstepd/io.c.orig 2018-01-05 23:43:03.000000000 +0000 ++++ src/slurmd/slurmstepd/io.c +@@ -45,6 +45,7 @@ + #endif + + #ifdef HAVE_UTMP_H ++# include <time.h> + # include <utmp.h> + #endif + diff --git a/parallel/slurm-wlm/patches/patch-src_slurmd_slurmstepd_task.c b/parallel/slurm-wlm/patches/patch-src_slurmd_slurmstepd_task.c new file mode 100644 index 00000000000..85a25355c09 --- /dev/null +++ b/parallel/slurm-wlm/patches/patch-src_slurmd_slurmstepd_task.c @@ -0,0 +1,25 @@ +$NetBSD: patch-src_slurmd_slurmstepd_task.c,v 1.1 2018/04/22 21:31:09 bacon Exp $ + +# Linux compat + +--- src/slurmd/slurmstepd/task.c.orig 2016-05-03 22:41:59.000000000 +0000 ++++ src/slurmd/slurmstepd/task.c +@@ -558,6 +558,18 @@ _make_tmpdir(stepd_step_rec_t *job) + * still work with older systems we include this check. + */ + ++/* FIXME: Come up with a real solution for EUID instead of substituting RUID */ ++#if defined(__NetBSD__) ++#define eaccess(p,m) (access((p),(m))) ++#define HAVE_EACCESS 1 ++#endif ++ ++// Unsure about the reason for this patch, but it dates back to SLURM 2.6.4 ++//#if defined(__FreeBSD__) || defined(__NetBSD__) ++//#define __GLIBC__ (1) ++//#define __GLIBC_PREREQ(a,b) (1) ++//#endif ++ + #if defined(HAVE_FACCESSAT) + else if (faccessat(AT_FDCWD, tmpdir, X_OK|W_OK, AT_EACCESS)) + #elif defined(HAVE_EACCESS) |