pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/parallel/slurm



Module Name:    pkgsrc
Committed By:   bacon
Date:           Sun Mar 25 14:55:30 UTC 2018

Modified Files:
        pkgsrc/parallel/slurm: DESCR Makefile PLIST distinfo
        pkgsrc/parallel/slurm/files: slurmctld.sh slurmd.sh
        pkgsrc/parallel/slurm/patches: patch-src_slurmd_slurmstepd_task.c
Added Files:
        pkgsrc/parallel/slurm: PLIST.Linux
        pkgsrc/parallel/slurm/files: linux-slurm-enable
        pkgsrc/parallel/slurm/patches: patch-etc_init.d.slurm.in
            patch-src_plugins_task_cgroup_task__cgroup__memory.c
            patch-src_slurmd_common_task__plugin.c
            patch-src_slurmd_common_task__plugin.h
            patch-src_slurmd_slurmd_slurmd.c patch-src_slurmd_slurmd_slurmd.h
            patch-src_slurmd_slurmstepd_io.c
Removed Files:
        pkgsrc/parallel/slurm/patches: patch-doc_html_Makefile.am
            patch-doc_html_Makefile.in patch-doc_man_man1_Makefile.am
            patch-doc_man_man1_Makefile.in patch-doc_man_man5_Makefile.am
            patch-doc_man_man5_Makefile.in patch-doc_man_man8_Makefile.am
            patch-doc_man_man8_Makefile.in patch-src_common_net.c
            patch-src_common_slurm__jobacct__gather.c
            patch-src_common_xcgroup.c patch-src_common_xcgroup.h
            patch-src_plugins_acct__gather__filesystem_lustre_acct__gather__filesystem__lustre.c
            patch-src_slurmctld_reservation.c
            patch-src_slurmd_common_setproctitle.c
            patch-src_srun_libsrun_debugger.c patch-src_srun_libsrun_launch.c

Log Message:
parallel/slurm: Update to 17.11.5

Changes since 2.6.4:

Adds additional capabilities such as SQL accounting and job profiling
Change maintainer to bacon%NetBSD.org@localhost
Install example Linux init scripts


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/parallel/slurm/DESCR
cvs rdiff -u -r1.23 -r1.24 pkgsrc/parallel/slurm/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/parallel/slurm/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/parallel/slurm/PLIST.Linux
cvs rdiff -u -r1.5 -r1.6 pkgsrc/parallel/slurm/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/parallel/slurm/files/linux-slurm-enable
cvs rdiff -u -r1.1 -r1.2 pkgsrc/parallel/slurm/files/slurmctld.sh \
    pkgsrc/parallel/slurm/files/slurmd.sh
cvs rdiff -u -r1.2 -r0 \
    pkgsrc/parallel/slurm/patches/patch-doc_html_Makefile.am \
    pkgsrc/parallel/slurm/patches/patch-doc_html_Makefile.in \
    pkgsrc/parallel/slurm/patches/patch-doc_man_man1_Makefile.am \
    pkgsrc/parallel/slurm/patches/patch-doc_man_man1_Makefile.in \
    pkgsrc/parallel/slurm/patches/patch-doc_man_man5_Makefile.am \
    pkgsrc/parallel/slurm/patches/patch-doc_man_man5_Makefile.in \
    pkgsrc/parallel/slurm/patches/patch-doc_man_man8_Makefile.am \
    pkgsrc/parallel/slurm/patches/patch-doc_man_man8_Makefile.in \
    pkgsrc/parallel/slurm/patches/patch-src_plugins_acct__gather__filesystem_lustre_acct__gather__filesystem__lustre.c
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/parallel/slurm/patches/patch-etc_init.d.slurm.in \
    pkgsrc/parallel/slurm/patches/patch-src_plugins_task_cgroup_task__cgroup__memory.c \
    pkgsrc/parallel/slurm/patches/patch-src_slurmd_common_task__plugin.c \
    pkgsrc/parallel/slurm/patches/patch-src_slurmd_common_task__plugin.h \
    pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmd_slurmd.c \
    pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmd_slurmd.h \
    pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_io.c
cvs rdiff -u -r1.1 -r0 pkgsrc/parallel/slurm/patches/patch-src_common_net.c \
    pkgsrc/parallel/slurm/patches/patch-src_common_slurm__jobacct__gather.c \
    pkgsrc/parallel/slurm/patches/patch-src_common_xcgroup.c \
    pkgsrc/parallel/slurm/patches/patch-src_common_xcgroup.h \
    pkgsrc/parallel/slurm/patches/patch-src_slurmctld_reservation.c \
    pkgsrc/parallel/slurm/patches/patch-src_slurmd_common_setproctitle.c \
    pkgsrc/parallel/slurm/patches/patch-src_srun_libsrun_debugger.c \
    pkgsrc/parallel/slurm/patches/patch-src_srun_libsrun_launch.c
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_task.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/parallel/slurm/DESCR
diff -u pkgsrc/parallel/slurm/DESCR:1.1.1.1 pkgsrc/parallel/slurm/DESCR:1.2
--- pkgsrc/parallel/slurm/DESCR:1.1.1.1 Tue Mar 20 14:52:15 2012
+++ pkgsrc/parallel/slurm/DESCR Sun Mar 25 14:55:29 2018
@@ -1,8 +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.
+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.

Index: pkgsrc/parallel/slurm/Makefile
diff -u pkgsrc/parallel/slurm/Makefile:1.23 pkgsrc/parallel/slurm/Makefile:1.24
--- pkgsrc/parallel/slurm/Makefile:1.23 Mon Jan  1 18:16:38 2018
+++ pkgsrc/parallel/slurm/Makefile      Sun Mar 25 14:55:29 2018
@@ -1,28 +1,41 @@
-# $NetBSD: Makefile,v 1.23 2018/01/01 18:16:38 rillig Exp $
+# $NetBSD: Makefile,v 1.24 2018/03/25 14:55:29 bacon Exp $
 
-DISTNAME=      slurm-2.6.4
-PKGREVISION=   9
+DISTNAME=      slurm-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=    asau%inbox.ru@localhost
+MAINTAINER=    bacon%NetBSD.org@localhost
 HOMEPAGE=      http://www.schedmd.com/
 COMMENT=       Simple Linux Utility for Resource Management
 
-USE_LANGUAGES= c c++
+LICENSE=       gnu-gpl-v2
+
+BUILD_DEPENDS+=        libtool-base-[0-9]*:../../devel/libtool-base
+BUILD_DEPENDS+=        man2html-[0-9]*:../../textproc/man2html
 
 GNU_CONFIGURE= yes
-USE_TOOLS=     perl pkg-config
+USE_LANGUAGES= c c++
 USE_LIBTOOL=   yes
+USE_TOOLS+=    bash perl pkg-config
 
-CONFIGURE_ARGS+=       --with-hdf5=no
-# Fix installation:
+CONFIG_SHELL=          bash
+CONFIGURE_ARGS+=       --bindir=${PREFIX}/bin
 CONFIGURE_ARGS+=       --htmldir=${PREFIX}/share/doc/${PKGNAME_NOREV}/html
-
-REPLACE_PYTHON=        doc/html/shtml2html.py
+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
@@ -30,20 +43,49 @@ PKG_USERS=          slurm:slurm
 PKG_GECOS.slurm=       SLURM user
 PKG_SHELL.slurm=       ${NOLOGIN}
 
-RCD_SCRIPTS+=  slurmd slurmctld
+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/${PKGBASE}
 
 post-install:
-       ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
-       ${INSTALL_DATA} ${WRKSRC}/etc/* ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}/
+       ${RM} -f ${WRKSRC}/etc/init.d.slurm.in.orig
+       ${INSTALL_DATA} ${WRKSRC}/etc/* \
+               ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}/
 
-PYTHON_FOR_BUILD_ONLY= yes
+.include "../../www/curl/buildlink3.mk"
 .include "../../lang/python/tool.mk"
-
-CONFIGURE_ARGS+=       --with-munge=${BUILDLINK_PREFIX.munge:Q}
 .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/pam.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/parallel/slurm/PLIST
diff -u pkgsrc/parallel/slurm/PLIST:1.3 pkgsrc/parallel/slurm/PLIST:1.4
--- pkgsrc/parallel/slurm/PLIST:1.3     Fri Dec  6 06:05:30 2013
+++ pkgsrc/parallel/slurm/PLIST Sun Mar 25 14:55:29 2018
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2013/12/06 06:05:30 asau Exp $
+@comment $NetBSD: PLIST,v 1.4 2018/03/25 14:55:29 bacon Exp $
 bin/sacct
 bin/sacctmgr
 bin/salloc
@@ -8,6 +8,7 @@ bin/sbcast
 bin/scancel
 bin/scontrol
 bin/sdiag
+bin/sh5util
 bin/sinfo
 bin/smap
 bin/sprio
@@ -21,53 +22,74 @@ 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_infiniband_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_cnode.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/jobacct_gather_aix.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/mpi_lam.la
-lib/slurm/mpi_mpich1_p4.la
-lib/slurm/mpi_mpich1_shmem.la
-lib/slurm/mpi_mpichgm.la
-lib/slurm/mpi_mpichmx.la
-lib/slurm/mpi_mvapich.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
@@ -75,23 +97,30 @@ 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/sched_wiki.la
-lib/slurm/sched_wiki2.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
@@ -112,15 +141,13 @@ man/man1/sprio.1
 man/man1/squeue.1
 man/man1/sreport.1
 man/man1/srun.1
-man/man1/srun_cr.1
 man/man1/sshare.1
 man/man1/sstat.1
 man/man1/strigger.1
-man/man1/sview.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_lookup_lite.3
 man/man3/slurm_allocation_msg_thr_create.3
 man/man3/slurm_allocation_msg_thr_destroy.3
 man/man3/slurm_api_version.3
@@ -146,6 +173,7 @@ 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
@@ -181,6 +209,7 @@ 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
@@ -195,6 +224,8 @@ 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
@@ -215,7 +246,9 @@ 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
@@ -242,25 +275,29 @@ 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/man5/wiki.conf.5
 man/man8/slurmctld.8
 man/man8/slurmd.8
 man/man8/slurmdbd.8
@@ -274,6 +311,7 @@ share/doc/${PKGNAME}/html/Slurm_Entity.p
 share/doc/${PKGNAME}/html/Slurm_Individual.pdf
 share/doc/${PKGNAME}/html/accounting.html
 share/doc/${PKGNAME}/html/accounting_storageplugins.html
+share/doc/${PKGNAME}/html/acct_gather.conf.html
 share/doc/${PKGNAME}/html/acct_gather_energy_plugins.html
 share/doc/${PKGNAME}/html/acct_gather_profile_plugins.html
 share/doc/${PKGNAME}/html/add.html
@@ -281,9 +319,13 @@ share/doc/${PKGNAME}/html/allocation_pie
 share/doc/${PKGNAME}/html/api.html
 share/doc/${PKGNAME}/html/arch.gif
 share/doc/${PKGNAME}/html/authplugins.html
+share/doc/${PKGNAME}/html/bb_plugins.html
 share/doc/${PKGNAME}/html/big_sys.html
+share/doc/${PKGNAME}/html/bluegene.conf.html
 share/doc/${PKGNAME}/html/bluegene.html
-share/doc/${PKGNAME}/html/bull.jpg
+share/doc/${PKGNAME}/html/burst_buffer.conf.html
+share/doc/${PKGNAME}/html/burst_buffer.html
+share/doc/${PKGNAME}/html/cgroup.conf.html
 share/doc/${PKGNAME}/html/cgroups.html
 share/doc/${PKGNAME}/html/checkpoint_blcr.html
 share/doc/${PKGNAME}/html/checkpoint_plugins.html
@@ -293,53 +335,68 @@ share/doc/${PKGNAME}/html/configurator.h
 share/doc/${PKGNAME}/html/cons_res.html
 share/doc/${PKGNAME}/html/cons_res_share.html
 share/doc/${PKGNAME}/html/contributor.html
+share/doc/${PKGNAME}/html/core_spec.html
+share/doc/${PKGNAME}/html/core_spec_plugins.html
 share/doc/${PKGNAME}/html/cpu_management.html
+share/doc/${PKGNAME}/html/cray.conf.html
 share/doc/${PKGNAME}/html/cray.html
+share/doc/${PKGNAME}/html/cray_alps.html
 share/doc/${PKGNAME}/html/crypto_plugins.html
 share/doc/${PKGNAME}/html/disclaimer.html
 share/doc/${PKGNAME}/html/dist_plane.html
 share/doc/${PKGNAME}/html/documentation.html
 share/doc/${PKGNAME}/html/download.html
-share/doc/${PKGNAME}/html/dynalloc.html
 share/doc/${PKGNAME}/html/elastic_computing.html
 share/doc/${PKGNAME}/html/entities.gif
 share/doc/${PKGNAME}/html/example_usage.gif
+share/doc/${PKGNAME}/html/ext_sensors.conf.html
 share/doc/${PKGNAME}/html/ext_sensorsplugins.html
+share/doc/${PKGNAME}/html/fair_tree.html
 share/doc/${PKGNAME}/html/faq.html
+share/doc/${PKGNAME}/html/federation.html
+share/doc/${PKGNAME}/html/fonts.css
+share/doc/${PKGNAME}/html/fonts.ttf
 share/doc/${PKGNAME}/html/gang_scheduling.html
+share/doc/${PKGNAME}/html/gres.conf.html
 share/doc/${PKGNAME}/html/gres.html
 share/doc/${PKGNAME}/html/gres_design.html
 share/doc/${PKGNAME}/html/gres_plugins.html
 share/doc/${PKGNAME}/html/hdf5_job_outline.png
 share/doc/${PKGNAME}/html/hdf5_profile_user_guide.html
 share/doc/${PKGNAME}/html/hdf5_task_attr.png
-share/doc/${PKGNAME}/html/help.html
+share/doc/${PKGNAME}/html/heterogeneous_jobs.html
 share/doc/${PKGNAME}/html/high_throughput.html
 share/doc/${PKGNAME}/html/ibm-pe.html
-share/doc/${PKGNAME}/html/ibm.html
 share/doc/${PKGNAME}/html/ibm_pe_fig1.png
 share/doc/${PKGNAME}/html/ibm_pe_fig2.png
+share/doc/${PKGNAME}/html/intel_knl.html
 share/doc/${PKGNAME}/html/job_array.html
+share/doc/${PKGNAME}/html/job_container_plugins.html
 share/doc/${PKGNAME}/html/job_exit_code.html
 share/doc/${PKGNAME}/html/job_launch.html
 share/doc/${PKGNAME}/html/job_submit_plugins.html
 share/doc/${PKGNAME}/html/jobacct_gatherplugins.html
 share/doc/${PKGNAME}/html/jobcompplugins.html
+share/doc/${PKGNAME}/html/jquery.min.js
+share/doc/${PKGNAME}/html/k_function.gif
+share/doc/${PKGNAME}/html/knl.conf.html
 share/doc/${PKGNAME}/html/launch_plugins.html
-share/doc/${PKGNAME}/html/linuxstyles.css
-share/doc/${PKGNAME}/html/lll.gif
+share/doc/${PKGNAME}/html/licenses.html
 share/doc/${PKGNAME}/html/mail.html
 share/doc/${PKGNAME}/html/man_index.html
-share/doc/${PKGNAME}/html/maui.html
 share/doc/${PKGNAME}/html/mc_support.gif
 share/doc/${PKGNAME}/html/mc_support.html
+share/doc/${PKGNAME}/html/mcs.html
+share/doc/${PKGNAME}/html/mcs_plugins.html
 share/doc/${PKGNAME}/html/meetings.html
-share/doc/${PKGNAME}/html/moab.html
 share/doc/${PKGNAME}/html/mpi_guide.html
 share/doc/${PKGNAME}/html/mpiplugins.html
 share/doc/${PKGNAME}/html/multi_cluster.html
 share/doc/${PKGNAME}/html/news.html
+share/doc/${PKGNAME}/html/node_features_plugins.html
+share/doc/${PKGNAME}/html/nonstop.conf.html
 share/doc/${PKGNAME}/html/overview.html
+share/doc/${PKGNAME}/html/pam_slurm_adopt.html
 share/doc/${PKGNAME}/html/plane_ex1.gif
 share/doc/${PKGNAME}/html/plane_ex2.gif
 share/doc/${PKGNAME}/html/plane_ex3.gif
@@ -349,11 +406,13 @@ share/doc/${PKGNAME}/html/plane_ex6.gif
 share/doc/${PKGNAME}/html/plane_ex7.gif
 share/doc/${PKGNAME}/html/platforms.html
 share/doc/${PKGNAME}/html/plugins.html
+share/doc/${PKGNAME}/html/power_mgmt.html
+share/doc/${PKGNAME}/html/power_plugins.html
 share/doc/${PKGNAME}/html/power_save.html
 share/doc/${PKGNAME}/html/preempt.html
 share/doc/${PKGNAME}/html/preemption_plugins.html
 share/doc/${PKGNAME}/html/priority_multifactor.html
-share/doc/${PKGNAME}/html/priority_multifactor2.html
+share/doc/${PKGNAME}/html/priority_multifactor3.html
 share/doc/${PKGNAME}/html/priority_plugins.html
 share/doc/${PKGNAME}/html/proctrack_plugins.html
 share/doc/${PKGNAME}/html/programmer_guide.html
@@ -363,42 +422,85 @@ share/doc/${PKGNAME}/html/qos.html
 share/doc/${PKGNAME}/html/quickstart.html
 share/doc/${PKGNAME}/html/quickstart_admin.html
 share/doc/${PKGNAME}/html/reservations.html
+share/doc/${PKGNAME}/html/reset.css
 share/doc/${PKGNAME}/html/resource_limits.html
 share/doc/${PKGNAME}/html/rosetta.html
+share/doc/${PKGNAME}/html/route_plugin.html
+share/doc/${PKGNAME}/html/rpc.html
+share/doc/${PKGNAME}/html/sacct.html
+share/doc/${PKGNAME}/html/sacctmgr.html
+share/doc/${PKGNAME}/html/salloc.html
+share/doc/${PKGNAME}/html/sattach.html
+share/doc/${PKGNAME}/html/sbatch.html
+share/doc/${PKGNAME}/html/sbcast.html
+share/doc/${PKGNAME}/html/scancel.html
+share/doc/${PKGNAME}/html/sched_config.html
 share/doc/${PKGNAME}/html/schedmd.png
 share/doc/${PKGNAME}/html/schedplugins.html
+share/doc/${PKGNAME}/html/scontrol.html
+share/doc/${PKGNAME}/html/sdiag.html
 share/doc/${PKGNAME}/html/select_design.html
 share/doc/${PKGNAME}/html/selectplugins.html
+share/doc/${PKGNAME}/html/sh5util.html
+share/doc/${PKGNAME}/html/sinfo.html
+share/doc/${PKGNAME}/html/slurm.conf.html
+share/doc/${PKGNAME}/html/slurm.css
 share/doc/${PKGNAME}/html/slurm.html
-share/doc/${PKGNAME}/html/slurm_design.pdf
 share/doc/${PKGNAME}/html/slurm_logo.png
 share/doc/${PKGNAME}/html/slurm_ug_agenda.html
 share/doc/${PKGNAME}/html/slurm_ug_cfp.html
-share/doc/${PKGNAME}/html/slurm_ug_registration.html
+share/doc/${PKGNAME}/html/slurmctld.html
 share/doc/${PKGNAME}/html/slurmctld_plugstack.html
-share/doc/${PKGNAME}/html/slurmstyles.css
-share/doc/${PKGNAME}/html/sponsors.gif
-share/doc/${PKGNAME}/html/sun_const.html
+share/doc/${PKGNAME}/html/slurmd.html
+share/doc/${PKGNAME}/html/slurmdbd.conf.html
+share/doc/${PKGNAME}/html/slurmdbd.html
+share/doc/${PKGNAME}/html/slurmstepd.html
+share/doc/${PKGNAME}/html/smap.html
+share/doc/${PKGNAME}/html/spank.html
+share/doc/${PKGNAME}/html/sprio.html
+share/doc/${PKGNAME}/html/squeue.html
+share/doc/${PKGNAME}/html/squeue_color.png
+share/doc/${PKGNAME}/html/sreport.html
+share/doc/${PKGNAME}/html/srun.html
+share/doc/${PKGNAME}/html/sshare.html
+share/doc/${PKGNAME}/html/sstat.html
+share/doc/${PKGNAME}/html/strigger.html
+share/doc/${PKGNAME}/html/style.css
 share/doc/${PKGNAME}/html/switchplugins.html
 share/doc/${PKGNAME}/html/taskplugins.html
 share/doc/${PKGNAME}/html/team.html
 share/doc/${PKGNAME}/html/testimonials.html
 share/doc/${PKGNAME}/html/topo_ex1.gif
 share/doc/${PKGNAME}/html/topo_ex2.gif
+share/doc/${PKGNAME}/html/topology.conf.html
 share/doc/${PKGNAME}/html/topology.html
 share/doc/${PKGNAME}/html/topology_plugin.html
+share/doc/${PKGNAME}/html/tres.html
 share/doc/${PKGNAME}/html/troubleshoot.html
 share/doc/${PKGNAME}/html/tutorial_intro_files.tar
 share/doc/${PKGNAME}/html/tutorials.html
 share/doc/${PKGNAME}/html/usage_pies.gif
+share/doc/${PKGNAME}/html/user_permissions.html
+share/doc/${PKGNAME}/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.release_common.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

Index: pkgsrc/parallel/slurm/distinfo
diff -u pkgsrc/parallel/slurm/distinfo:1.5 pkgsrc/parallel/slurm/distinfo:1.6
--- pkgsrc/parallel/slurm/distinfo:1.5  Mon Nov  2 23:46:13 2015
+++ pkgsrc/parallel/slurm/distinfo      Sun Mar 25 14:55:29 2018
@@ -1,24 +1,14 @@
-$NetBSD: distinfo,v 1.5 2015/11/02 23:46:13 agc Exp $
+$NetBSD: distinfo,v 1.6 2018/03/25 14:55:29 bacon Exp $
 
-SHA1 (slurm-2.6.4.tar.bz2) = 6a5850b53201d506a86ab23d13318be34395d237
-RMD160 (slurm-2.6.4.tar.bz2) = a6b4ab6782b0db0822acb2fd7efe6c1464b8a87c
-SHA512 (slurm-2.6.4.tar.bz2) = 7aecf83350fddd1b6f6c901a133c30d7b27c3c548715583e6e9c4325c7d2deee883ff0f3806f67f098b4b85fdd86e5ccbf56959bb9377349582219ccbaa21e29
-Size (slurm-2.6.4.tar.bz2) = 5954130 bytes
-SHA1 (patch-doc_html_Makefile.am) = 9152b1c6d735fbd106a5b2841b09b0c0d5fdbf9e
-SHA1 (patch-doc_html_Makefile.in) = 237da04742791877d42d4b68805b2a513aab8f40
-SHA1 (patch-doc_man_man1_Makefile.am) = a131bb9ac16f2683dd0756fff4538a3213043503
-SHA1 (patch-doc_man_man1_Makefile.in) = 262ea869552b7ebd44b63e3df11a40b7172d2425
-SHA1 (patch-doc_man_man5_Makefile.am) = b6918b7bf767b203841c8450bb6ab05b3339b08c
-SHA1 (patch-doc_man_man5_Makefile.in) = 6a6d6370c915041096a8b1784dc290f76cac6f1b
-SHA1 (patch-doc_man_man8_Makefile.am) = 1a5e7a1139688b0ce127a020deab04402599485e
-SHA1 (patch-doc_man_man8_Makefile.in) = 01efd7282aa9d1d011c283358cb4aa566f7c72d6
-SHA1 (patch-src_common_net.c) = 6a53ef7ef94afa1e48d929c635e900c9999e381b
-SHA1 (patch-src_common_slurm__jobacct__gather.c) = abcb7c117c3efa95509d047ff7243fc98cfc00b7
-SHA1 (patch-src_common_xcgroup.c) = fd49ee490fc663635b0b5a3ce54ede7e6166b897
-SHA1 (patch-src_common_xcgroup.h) = 78e9021a725692c8a980556c000c4501c8009a75
-SHA1 (patch-src_plugins_acct__gather__filesystem_lustre_acct__gather__filesystem__lustre.c) = 46cd8b130af2eb0c47de04ba2f24ffc1291c75ce
-SHA1 (patch-src_slurmctld_reservation.c) = c02eb31c2b9dee32e1b68bb9ecf63acd34a987ca
-SHA1 (patch-src_slurmd_common_setproctitle.c) = 1ac0cccd1f889a8a3e3d998bdb6392cfbca932e5
-SHA1 (patch-src_slurmd_slurmstepd_task.c) = b7afd7c2ed58b8423490e1117d6e82d7b0f3294b
-SHA1 (patch-src_srun_libsrun_debugger.c) = 1d10d883c2f9931af3166980c70730ab9fa1df96
-SHA1 (patch-src_srun_libsrun_launch.c) = ff3cbfced383206f86f33c3a511334b95da9edc7
+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

Index: pkgsrc/parallel/slurm/files/slurmctld.sh
diff -u pkgsrc/parallel/slurm/files/slurmctld.sh:1.1 pkgsrc/parallel/slurm/files/slurmctld.sh:1.2
--- pkgsrc/parallel/slurm/files/slurmctld.sh:1.1        Sat Sep 13 16:49:27 2014
+++ pkgsrc/parallel/slurm/files/slurmctld.sh    Sun Mar 25 14:55:30 2018
@@ -1,5 +1,5 @@
 #!@RCD_SCRIPTS_SHELL@
-# $NetBSD: slurmctld.sh,v 1.1 2014/09/13 16:49:27 asau Exp $
+# $NetBSD: slurmctld.sh,v 1.2 2018/03/25 14:55:30 bacon Exp $
 #
 # PROVIDE: slurmctld
 # REQUIRE: DAEMON munge
Index: pkgsrc/parallel/slurm/files/slurmd.sh
diff -u pkgsrc/parallel/slurm/files/slurmd.sh:1.1 pkgsrc/parallel/slurm/files/slurmd.sh:1.2
--- pkgsrc/parallel/slurm/files/slurmd.sh:1.1   Sat Sep 13 16:49:27 2014
+++ pkgsrc/parallel/slurm/files/slurmd.sh       Sun Mar 25 14:55:30 2018
@@ -1,5 +1,5 @@
 #!@RCD_SCRIPTS_SHELL@
-# $NetBSD: slurmd.sh,v 1.1 2014/09/13 16:49:27 asau Exp $
+# $NetBSD: slurmd.sh,v 1.2 2018/03/25 14:55:30 bacon Exp $
 #
 # PROVIDE: slurmd
 # REQUIRE: DAEMON munge
@@ -11,7 +11,7 @@ name="slurmd"
 rcvar=${name}
 command="@PREFIX@/sbin/slurmd"
 
-slurmd_user="slurm"
+slurmd_user="root"
 
 load_rc_config $name
 run_rc_command "$1"

Index: pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_task.c
diff -u pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_task.c:1.1 pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_task.c:1.2
--- pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_task.c:1.1        Fri Dec  6 06:05:30 2013
+++ pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_task.c    Sun Mar 25 14:55:30 2018
@@ -1,18 +1,25 @@
-$NetBSD: patch-src_slurmd_slurmstepd_task.c,v 1.1 2013/12/06 06:05:30 asau Exp $
+$NetBSD: patch-src_slurmd_slurmstepd_task.c,v 1.2 2018/03/25 14:55:30 bacon Exp $
 
---- src/slurmd/slurmstepd/task.c.orig  2013-11-04 21:19:15.000000000 +0000
+# Linux compat
+
+--- src/slurmd/slurmstepd/task.c.orig  2016-05-03 22:41:59.000000000 +0000
 +++ src/slurmd/slurmstepd/task.c
-@@ -501,7 +501,12 @@ _make_tmpdir(slurmd_job_t *job)
+@@ -558,6 +558,18 @@ _make_tmpdir(stepd_step_rec_t *job)
                 * still work with older systems we include this check.
                 */
  
--#if defined(__FreeBSD__)
 +/* 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(__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)

Added files:

Index: pkgsrc/parallel/slurm/PLIST.Linux
diff -u /dev/null pkgsrc/parallel/slurm/PLIST.Linux:1.1
--- /dev/null   Sun Mar 25 14:55:30 2018
+++ pkgsrc/parallel/slurm/PLIST.Linux   Sun Mar 25 14:55:29 2018
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2018/03/25 14:55:29 bacon Exp $
+lib/slurm/task_affinity.la

Index: pkgsrc/parallel/slurm/files/linux-slurm-enable
diff -u /dev/null pkgsrc/parallel/slurm/files/linux-slurm-enable:1.1
--- /dev/null   Sun Mar 25 14:55:30 2018
+++ pkgsrc/parallel/slurm/files/linux-slurm-enable      Sun Mar 25 14:55:30 2018
@@ -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
+

Index: pkgsrc/parallel/slurm/patches/patch-etc_init.d.slurm.in
diff -u /dev/null pkgsrc/parallel/slurm/patches/patch-etc_init.d.slurm.in:1.1
--- /dev/null   Sun Mar 25 14:55:30 2018
+++ pkgsrc/parallel/slurm/patches/patch-etc_init.d.slurm.in     Sun Mar 25 14:55:30 2018
@@ -0,0 +1,16 @@
+$NetBSD: patch-etc_init.d.slurm.in,v 1.1 2018/03/25 14:55:30 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@"
Index: pkgsrc/parallel/slurm/patches/patch-src_plugins_task_cgroup_task__cgroup__memory.c
diff -u /dev/null pkgsrc/parallel/slurm/patches/patch-src_plugins_task_cgroup_task__cgroup__memory.c:1.1
--- /dev/null   Sun Mar 25 14:55:30 2018
+++ pkgsrc/parallel/slurm/patches/patch-src_plugins_task_cgroup_task__cgroup__memory.c  Sun Mar 25 14:55:30 2018
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_plugins_task_cgroup_task__cgroup__memory.c,v 1.1 2018/03/25 14:55:30 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>
+ 
Index: pkgsrc/parallel/slurm/patches/patch-src_slurmd_common_task__plugin.c
diff -u /dev/null pkgsrc/parallel/slurm/patches/patch-src_slurmd_common_task__plugin.c:1.1
--- /dev/null   Sun Mar 25 14:55:30 2018
+++ pkgsrc/parallel/slurm/patches/patch-src_slurmd_common_task__plugin.c        Sun Mar 25 14:55:30 2018
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_slurmd_common_task__plugin.c,v 1.1 2018/03/25 14:55:30 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;
Index: pkgsrc/parallel/slurm/patches/patch-src_slurmd_common_task__plugin.h
diff -u /dev/null pkgsrc/parallel/slurm/patches/patch-src_slurmd_common_task__plugin.h:1.1
--- /dev/null   Sun Mar 25 14:55:30 2018
+++ pkgsrc/parallel/slurm/patches/patch-src_slurmd_common_task__plugin.h        Sun Mar 25 14:55:30 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_slurmd_common_task__plugin.h,v 1.1 2018/03/25 14:55:30 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.
+  *
Index: pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmd_slurmd.c
diff -u /dev/null pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmd_slurmd.c:1.1
--- /dev/null   Sun Mar 25 14:55:30 2018
+++ pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmd_slurmd.c      Sun Mar 25 14:55:30 2018
@@ -0,0 +1,29 @@
+$NetBSD: patch-src_slurmd_slurmd_slurmd.c,v 1.1 2018/03/25 14:55:30 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
Index: pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmd_slurmd.h
diff -u /dev/null pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmd_slurmd.h:1.1
--- /dev/null   Sun Mar 25 14:55:30 2018
+++ pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmd_slurmd.h      Sun Mar 25 14:55:30 2018
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_slurmd_slurmd_slurmd.h,v 1.1 2018/03/25 14:55:30 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);
Index: pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_io.c
diff -u /dev/null pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_io.c:1.1
--- /dev/null   Sun Mar 25 14:55:30 2018
+++ pkgsrc/parallel/slurm/patches/patch-src_slurmd_slurmstepd_io.c      Sun Mar 25 14:55:30 2018
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_slurmd_slurmstepd_io.c,v 1.1 2018/03/25 14:55:30 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
+ 



Home | Main Index | Thread Index | Old Index