pkgsrc-Changes archive

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

CVS commit: pkgsrc/parallel/slurm-wlm



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Jan  7 18:30:08 UTC 2026

Modified Files:
        pkgsrc/parallel/slurm-wlm: Makefile PLIST distinfo
        pkgsrc/parallel/slurm-wlm/patches: patch-src_plugins_task_Makefile.in
Added Files:
        pkgsrc/parallel/slurm-wlm/patches: patch-configure
            patch-src_common_net.c patch-src_common_run__command.c
            patch-src_common_xsched.c patch-src_common_xsched.h
            patch-src_conmgr_workers.c patch-src_slurmctld_trigger__mgr.c
            patch-src_slurmd_slurmd_req.c
Removed Files:
        pkgsrc/parallel/slurm-wlm/patches: patch-src_common_gres.c

Log Message:
slurm-wlm: updated to 25.11.1

Changes in 25.11.1

* data_parser/v0.0.41 - Prevent memory leaks when freeing parsed lists.
* data_parser/v0.0.42 - Prevent memory leaks when freeing parsed lists.
* data_parser/v0.0.43 - Prevent memory leaks when freeing parsed lists.
* data_parser/v0.0.44 - Prevent memory leaks when freeing parsed lists.
* slurmctld - Prevent a fatal when min_exempt_priority is not the last option listed in PreemptParameters.
* Updating a job's qos will always replace the previous timelimit with the new qos' timelimit, unless another time limit is explicitly specified in the update command.
* When debugflags=script is set in slurm.conf, Lua runtime error message will be logged with backtrace.
* slurmctld - Prevent memory corruption when fanning out messages to the slurmds if TreeWidth is more then or equal to 46341 and the number of nodes in the cluster is more then or equal to (TreeWidth 
+ 1).
* When GrpTRES and MaxTRESPU are set on different QOSes and both QOSes are applied to a job, ensure that both limits are honored.
* Fix issue where a cli command or process could get stuck indefinitely when trying to retrieve a slurm.conf from slurmctld.
* Fix slurmctld potential deadlock when trying to schedule jobs starting many years in the future. Slurm only supports one year time limits.
* Fix pam_slurm_adopt when using namespace/linux plugin.
* topology/tree - Prevent overflow error when calculating fanout depth.
* The state string for nodes in the MIXED+FAIL state will now appear as "FAILING" rather than just "FAIL", similar to what is already done for nodes in the ALLOCATED+FAIL state.
* slurmctld - Prevent a divide by zero crash by fataling if the following SlurmctldParameters have a value of less than or equal to 0: rl_table_size, rl_bucket_size, rl_refill_rate, and 
rl_refill_period.
* Fix missing updates to reservation TRES and accounting when node(s) replaced due to REPLACE or REPLACE_DOWN flags.
* slurmctld - Cancel interactive job if prolog RPC never reaches its receiver.
* slurmctld - Cancel interactive jobs that never ran the prolog in the purge jobs logic.
* Fix accounting for memory on steps without pids, like the extern step, which caused them to be killed if OvermemoryKill was set.
* NO_NORMAL_ALL will only be printed if all NO_NORMAL_* flags are set.
* slurmctld - Prevent the controller from believing it has a job's federation cluster lock when it does not.
* Fix jobs incorrectly stuck waiting for resources when launched with specific client flag combinations containing "--hint=nomultithread".
* Fix allocated licenses still showing after removing all allocated licenses.
* accounting_storage/mysql - Disallow creating users if requested user list is empty or usernames are empty strings.
* slurmrestd - Revert tagging `.script` field as deprecated in 'POST /slurm/v0.0.42/job/submit'.
* slurmrestd - Revert tagging `.script` field as deprecated in 'POST /slurm/v0.0.43/job/submit'.
* slurmrestd - Revert tagging `.script` field as deprecated in 'POST /slurm/v0.0.44/job/submit'.
* slurmrestd - Revert regression that changed the error from "Authentication failure" to "Authentication does not apply to request" when a HTTP request lacks any authentication credentials.
* When a job requests multiple partitions and cannot run in one of them due to topology, allow the main scheduler to evaluate jobs in the other requested partitions.
* slurmctld - Acquire the node write lock instead of the node read lock when querying 'GET /metrics/nodes' and 'GET /metrics/partitions' endpoints.
* slurmctld - Fixed segfault when running configless and a malformed REQUEST_CONFIG RPC is received.
* Remove error output for missing optional spank plugin.
* slurmctld - when unable to schedule a job with preferred node features, don't exclude the partition from further scheduling attempts in the same iteration.
* Fix issue with RestrictedCoresPerGPU with shared gres.
* Fix rpmbuild --with libcurl option.
* Add new JobAcctGatherParams=no_file_cache to change how memory usage (RSS) is reported when using cgroup/v2. With this flag set we will subtract active_file and inactive_file from the value 
reported in memory.current to avoid counting the file cache. memory.peak will then not be used to get the MaxRSS and getting memory spikes will depend on the JobAcctGatherFrequency parameter.
* namespace/linux - fix bug that could leave defunct processes in the jobs namespace.
* namespace/linux - kill and reap the namespace process during job teardown.
* namespace/linux - Fix issue with user_ns_script that may result in STDIN closing, which may result in 'Unable to receive "ok ack"' error on slurmstepd or other undefined behavior.
* Fix error reading /proc/0/* when calling the api outside the step namespace.
* slurmctld - Fixed segfault when using newly added remote licenses.
* Fix SIGCHLD not being sent to tasks.
* bitmap2node_name() is not cleaned up properly when reservation logging is enabled.
* Fix issue with jobs running on slurmd's with version 25.05.x or older getting aborted when slurmd re-registers with slurmctld.
* Fix memory leak on slurmctld for jobs that use --exclusive=topo
* Prevent jobs that cannot fit in the reservation's time limit from being attracted to a magnetic reservation.
* Fix slurmstepd segfault for older versioned batch jobs (25.05 and older) submitted without using -o/--output on submission.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 pkgsrc/parallel/slurm-wlm/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/parallel/slurm-wlm/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/parallel/slurm-wlm/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/parallel/slurm-wlm/patches/patch-configure \
    pkgsrc/parallel/slurm-wlm/patches/patch-src_common_net.c \
    pkgsrc/parallel/slurm-wlm/patches/patch-src_common_run__command.c \
    pkgsrc/parallel/slurm-wlm/patches/patch-src_common_xsched.c \
    pkgsrc/parallel/slurm-wlm/patches/patch-src_common_xsched.h \
    pkgsrc/parallel/slurm-wlm/patches/patch-src_conmgr_workers.c \
    pkgsrc/parallel/slurm-wlm/patches/patch-src_slurmctld_trigger__mgr.c \
    pkgsrc/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_req.c
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/parallel/slurm-wlm/patches/patch-src_common_gres.c
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/parallel/slurm-wlm/patches/patch-src_plugins_task_Makefile.in

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-wlm/Makefile
diff -u pkgsrc/parallel/slurm-wlm/Makefile:1.49 pkgsrc/parallel/slurm-wlm/Makefile:1.50
--- pkgsrc/parallel/slurm-wlm/Makefile:1.49     Wed Jan  7 08:48:32 2026
+++ pkgsrc/parallel/slurm-wlm/Makefile  Wed Jan  7 18:30:07 2026
@@ -1,11 +1,9 @@
-# $NetBSD: Makefile,v 1.49 2026/01/07 08:48:32 wiz Exp $
+# $NetBSD: Makefile,v 1.50 2026/01/07 18:30:07 adam Exp $
 
-DISTNAME=      slurm-20.11.9
+DISTNAME=      slurm-25.11.1
 PKGNAME=       ${DISTNAME:S/-/-wlm-/}
-PKGREVISION=   4
 CATEGORIES=    parallel
 MASTER_SITES=  https://download.schedmd.com/slurm/
-MASTER_SITES+= http://www.schedmd.com/download/latest/
 EXTRACT_SUFX=  .tar.bz2
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -20,6 +18,7 @@ USE_LANGUAGES=        c c++
 USE_LIBTOOL=   yes
 USE_TOOLS+=    bash gmake perl pkg-config
 GNU_CONFIGURE= yes
+TEST_TARGET=   check
 
 CONFIG_SHELL=          bash
 CONFIGURE_ARGS+=       --bindir=${PREFIX}/bin
@@ -27,7 +26,6 @@ CONFIGURE_ARGS+=      --disable-debug
 CONFIGURE_ARGS+=       --htmldir=${PREFIX}/share/doc/${PKGNAME_NOREV}/html
 CONFIGURE_ARGS+=       --with-hwloc=${PREFIX}
 CONFIGURE_ARGS+=       --with-json=${PREFIX}
-CONFIGURE_ARGS+=       --with-libssh2=${PREFIX}
 CONFIGURE_ARGS+=       --with-munge=${BUILDLINK_PREFIX.munge}
 
 REPLACE_PYTHON=                doc/html/shtml2html.py
@@ -87,9 +85,10 @@ post-install:
 .include "../../security/munge/buildlink3.mk" # optional
 .include "../../security/openssl/buildlink3.mk"
 .include "../../textproc/json-c/buildlink3.mk"
+.include "../../textproc/libyaml/buildlink3.mk"
 .include "../../www/curl/buildlink3.mk"
-.include "../../mk/dlopen.buildlink3.mk"
 .include "../../mk/curses.buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
 .include "../../mk/mysql.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/parallel/slurm-wlm/PLIST
diff -u pkgsrc/parallel/slurm-wlm/PLIST:1.3 pkgsrc/parallel/slurm-wlm/PLIST:1.4
--- pkgsrc/parallel/slurm-wlm/PLIST:1.3 Wed Mar 12 18:54:23 2025
+++ pkgsrc/parallel/slurm-wlm/PLIST     Wed Jan  7 18:30:07 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2025/03/12 18:54:23 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2026/01/07 18:30:07 adam Exp $
 bin/sacct
 bin/sacctmgr
 bin/salloc
@@ -21,45 +21,46 @@ bin/strigger
 include/slurm/pmi.h
 include/slurm/slurm.h
 include/slurm/slurm_errno.h
+include/slurm/slurm_version.h
 include/slurm/slurmdb.h
-include/slurm/smd_ns.h
 include/slurm/spank.h
 lib/libslurm.la
+lib/slurm/accounting_storage_ctld_relay.la
 lib/slurm/accounting_storage_mysql.la
-lib/slurm/accounting_storage_none.la
 lib/slurm/accounting_storage_slurmdbd.la
+lib/slurm/acct_gather_energy_gpu.la
 lib/slurm/acct_gather_energy_ibmaem.la
-lib/slurm/acct_gather_energy_none.la
 lib/slurm/acct_gather_energy_pm_counters.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_interconnect_sysfs.la
 lib/slurm/acct_gather_profile_hdf5.la
 lib/slurm/acct_gather_profile_influxdb.la
-lib/slurm/acct_gather_profile_none.la
 lib/slurm/auth_munge.la
 lib/slurm/auth_none.la
 lib/slurm/burst_buffer_datawarp.la
-lib/slurm/burst_buffer_generic.la
+lib/slurm/burst_buffer_lua.la
+lib/slurm/certgen_script.la
+lib/slurm/certmgr_script.la
 lib/slurm/cli_filter_lua.la
-lib/slurm/cli_filter_none.la
 lib/slurm/cli_filter_syslog.la
 lib/slurm/cli_filter_user_defaults.la
-lib/slurm/core_spec_cray_aries.la
-lib/slurm/core_spec_none.la
 lib/slurm/cred_munge.la
 lib/slurm/cred_none.la
-lib/slurm/ext_sensors_none.la
+lib/slurm/data_parser_v0_0_41.la
+lib/slurm/data_parser_v0_0_42.la
+lib/slurm/data_parser_v0_0_43.la
+lib/slurm/data_parser_v0_0_44.la
 lib/slurm/gpu_generic.la
+lib/slurm/gpu_nrt.la
+lib/slurm/gpu_nvidia.la
 lib/slurm/gres_gpu.la
-lib/slurm/gres_mic.la
 lib/slurm/gres_mps.la
 lib/slurm/gres_nic.la
-lib/slurm/job_container_cncu.la
-lib/slurm/job_container_none.la
+lib/slurm/gres_shard.la
+lib/slurm/hash_k12.la
+lib/slurm/hash_sha3.la
 lib/slurm/job_submit_all_partitions.la
-lib/slurm/job_submit_cray_aries.la
 lib/slurm/job_submit_defaults.la
 lib/slurm/job_submit_logging.la
 lib/slurm/job_submit_lua.la
@@ -68,28 +69,21 @@ lib/slurm/job_submit_pbs.la
 lib/slurm/job_submit_require_timelimit.la
 lib/slurm/job_submit_throttle.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_lua.la
 lib/slurm/jobcomp_mysql.la
-lib/slurm/jobcomp_none.la
 lib/slurm/jobcomp_script.la
-lib/slurm/launch_slurm.la
 lib/slurm/libslurm_pmi.la
 lib/slurm/libslurmfull.la
 lib/slurm/mcs_account.la
 lib/slurm/mcs_group.la
-lib/slurm/mcs_none.la
+lib/slurm/mcs_label.la
 lib/slurm/mcs_user.la
+lib/slurm/metrics_openmetrics.la
 lib/slurm/mpi_cray_shasta.la
-lib/slurm/mpi_none.la
 lib/slurm/mpi_pmi2.la
-lib/slurm/node_features_knl_cray.la
-lib/slurm/node_features_knl_generic.la
-lib/slurm/power_cray_aries.la
-lib/slurm/power_none.la
-lib/slurm/preempt_none.la
+lib/slurm/node_features_helpers.la
 lib/slurm/preempt_partition_prio.la
 lib/slurm/preempt_qos.la
 lib/slurm/prep_script.la
@@ -97,26 +91,20 @@ lib/slurm/priority_basic.la
 lib/slurm/priority_multifactor.la
 lib/slurm/proctrack_linuxproc.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_cons_res.la
 lib/slurm/select_cons_tres.la
-lib/slurm/select_cray_aries.la
 lib/slurm/select_linear.la
-lib/slurm/site_factor_none.la
-lib/slurm/slurmctld_nonstop.la
+lib/slurm/serializer_json.la
+lib/slurm/serializer_url_encoded.la
+lib/slurm/serializer_yaml.la
+lib/slurm/site_factor_example.la
 lib/slurm/spank_pbs.la
 lib/slurm/src/sattach/sattach.wrapper.c
 lib/slurm/src/srun/srun.wrapper.c
-lib/slurm/switch_none.la
-lib/slurm/task_cray_aries.la
-lib/slurm/task_none.la
-lib/slurm/topology_3d_torus.la
-lib/slurm/topology_hypercube.la
-lib/slurm/topology_none.la
+lib/slurm/tls_none.la
+lib/slurm/topology_block.la
+lib/slurm/topology_flat.la
 lib/slurm/topology_tree.la
 man/man1/sacct.1
 man/man1/sacctmgr.1
@@ -127,6 +115,7 @@ man/man1/sbcast.1
 man/man1/scancel.1
 man/man1/scontrol.1
 man/man1/scrontab.1
+man/man1/scrun.1
 man/man1/sdiag.1
 man/man1/sh5util.1
 man/man1/sinfo.1
@@ -138,199 +127,65 @@ man/man1/srun.1
 man/man1/sshare.1
 man/man1/sstat.1
 man/man1/strigger.1
-man/man3/slurm_allocate_het_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_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_triggers.3
-man/man3/slurm_het_job_lookup.3
-man/man3/slurm_het_job_will_run.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_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/burst_buffer.conf.5
 man/man5/cgroup.conf.5
-man/man5/ext_sensors.conf.5
 man/man5/gres.conf.5
+man/man5/helpers.conf.5
 man/man5/job_container.conf.5
-man/man5/knl.conf.5
-man/man5/nonstop.conf.5
+man/man5/mpi.conf.5
+man/man5/namespace.yaml.5
+man/man5/oci.conf.5
+man/man5/resources.yaml.5
 man/man5/slurm.conf.5
 man/man5/slurmdbd.conf.5
 man/man5/topology.conf.5
+man/man5/topology.yaml.5
+man/man8/sackd.8
 man/man8/slurmctld.8
 man/man8/slurmd.8
 man/man8/slurmdbd.8
 man/man8/slurmrestd.8
 man/man8/slurmstepd.8
 man/man8/spank.8
+sbin/sackd
 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/authentication.html
 share/doc/slurm-${PKGVERSION}/html/big_sys.html
 share/doc/slurm-${PKGVERSION}/html/burst_buffer.conf.html
 share/doc/slurm-${PKGVERSION}/html/burst_buffer.html
+share/doc/slurm-${PKGVERSION}/html/certmgr.html
+share/doc/slurm-${PKGVERSION}/html/cg_hierarchy.jpg
 share/doc/slurm-${PKGVERSION}/html/cgroup.conf.html
+share/doc/slurm-${PKGVERSION}/html/cgroup_v2.html
 share/doc/slurm-${PKGVERSION}/html/cgroups.html
 share/doc/slurm-${PKGVERSION}/html/classic_fair_share.html
 share/doc/slurm-${PKGVERSION}/html/cli_filter_plugins.html
-share/doc/slurm-${PKGVERSION}/html/coding_style.pdf
 share/doc/slurm-${PKGVERSION}/html/configless_slurm.html
 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/cons_tres.html
+share/doc/slurm-${PKGVERSION}/html/cons_tres_share.html
 share/doc/slurm-${PKGVERSION}/html/containers.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.html
-share/doc/slurm-${PKGVERSION}/html/cred_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/dynamic_nodes.html
 share/doc/slurm-${PKGVERSION}/html/elasticsearch.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/extra_constraints.html
 share/doc/slurm-${PKGVERSION}/html/fair_tree.html
 share/doc/slurm-${PKGVERSION}/html/faq.html
 share/doc/slurm-${PKGVERSION}/html/federation.html
@@ -340,50 +195,51 @@ share/doc/slurm-${PKGVERSION}/html/gang_
 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/helpers.conf.html
 share/doc/slurm-${PKGVERSION}/html/heterogeneous_jobs.html
 share/doc/slurm-${PKGVERSION}/html/high_throughput.html
+share/doc/slurm-${PKGVERSION}/html/hres.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.conf.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_reason_codes.html
+share/doc/slurm-${PKGVERSION}/html/job_state_codes.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/jobcomp_kafka.html
+share/doc/slurm-${PKGVERSION}/html/jobcomp_kafka_fig1.png
 share/doc/slurm-${PKGVERSION}/html/jquery.min.js
 share/doc/slurm-${PKGVERSION}/html/jwt.html
 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/kubernetes.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/metrics.html
+share/doc/slurm-${PKGVERSION}/html/mpi.conf.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/namespace.html
+share/doc/slurm-${PKGVERSION}/html/namespace.yaml.html
 share/doc/slurm-${PKGVERSION}/html/network.html
 share/doc/slurm-${PKGVERSION}/html/network_failover.gif
 share/doc/slurm-${PKGVERSION}/html/network_federation.gif
 share/doc/slurm-${PKGVERSION}/html/network_multi_cluster.gif
 share/doc/slurm-${PKGVERSION}/html/network_srun.gif
 share/doc/slurm-${PKGVERSION}/html/network_standard.gif
-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/node_lifecycle.png
 share/doc/slurm-${PKGVERSION}/html/nss_slurm.html
+share/doc/slurm-${PKGVERSION}/html/oci.conf.html
 share/doc/slurm-${PKGVERSION}/html/openapi.css
+share/doc/slurm-${PKGVERSION}/html/openapi_release_notes.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
@@ -395,32 +251,31 @@ share/doc/slurm-${PKGVERSION}/html/plane
 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/prep_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/related_software.html
+share/doc/slurm-${PKGVERSION}/html/release_notes.html
 share/doc/slurm-${PKGVERSION}/html/reservations.html
 share/doc/slurm-${PKGVERSION}/html/reset.css
 share/doc/slurm-${PKGVERSION}/html/resource_binding.html
 share/doc/slurm-${PKGVERSION}/html/resource_limits.html
+share/doc/slurm-${PKGVERSION}/html/resources.yaml.html
 share/doc/slurm-${PKGVERSION}/html/rest.html
 share/doc/slurm-${PKGVERSION}/html/rest_api.html
+share/doc/slurm-${PKGVERSION}/html/rest_clients.html
+share/doc/slurm-${PKGVERSION}/html/rest_quickstart.html
 share/doc/slurm-${PKGVERSION}/html/rosetta.html
-share/doc/slurm-${PKGVERSION}/html/route_plugin.html
 share/doc/slurm-${PKGVERSION}/html/sacct.html
 share/doc/slurm-${PKGVERSION}/html/sacctmgr.html
+share/doc/slurm-${PKGVERSION}/html/sackd.html
 share/doc/slurm-${PKGVERSION}/html/salloc.html
 share/doc/slurm-${PKGVERSION}/html/sattach.html
 share/doc/slurm-${PKGVERSION}/html/sbatch.html
@@ -428,22 +283,21 @@ share/doc/slurm-${PKGVERSION}/html/sbcas
 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/scrontab.html
+share/doc/slurm-${PKGVERSION}/html/scrun.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/selinux.html
 share/doc/slurm-${PKGVERSION}/html/sh5util.html
 share/doc/slurm-${PKGVERSION}/html/sinfo.html
 share/doc/slurm-${PKGVERSION}/html/site_factor.html
+share/doc/slurm-${PKGVERSION}/html/slinky.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/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
@@ -459,25 +313,23 @@ share/doc/slurm-${PKGVERSION}/html/sshar
 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/tls.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/topology.yaml.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/upgrades.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/MailProg.example
 share/examples/slurm/Makefile
 share/examples/slurm/Makefile.am
 share/examples/slurm/Makefile.in
+share/examples/slurm/burst_buffer.lua.example
 share/examples/slurm/cgroup.conf.example
 share/examples/slurm/cli_filter.lua.example
 share/examples/slurm/init.d.slurm
@@ -486,7 +338,11 @@ share/examples/slurm/init.d.slurmdbd
 share/examples/slurm/init.d.slurmdbd.in
 share/examples/slurm/job_submit.lua.example
 share/examples/slurm/prolog.example
+share/examples/slurm/sackd.service
+share/examples/slurm/sackd.service.in
 share/examples/slurm/slurm.conf.example
+share/examples/slurm/slurm.pc
+share/examples/slurm/slurm.pc.in
 share/examples/slurm/slurmctld.service
 share/examples/slurm/slurmctld.service.in
 share/examples/slurm/slurmd.service

Index: pkgsrc/parallel/slurm-wlm/distinfo
diff -u pkgsrc/parallel/slurm-wlm/distinfo:1.5 pkgsrc/parallel/slurm-wlm/distinfo:1.6
--- pkgsrc/parallel/slurm-wlm/distinfo:1.5      Wed Mar 12 18:54:23 2025
+++ pkgsrc/parallel/slurm-wlm/distinfo  Wed Jan  7 18:30:07 2026
@@ -1,14 +1,18 @@
-$NetBSD: distinfo,v 1.5 2025/03/12 18:54:23 adam Exp $
+$NetBSD: distinfo,v 1.6 2026/01/07 18:30:07 adam Exp $
 
-BLAKE2s (slurm-20.11.9.tar.bz2) = 724b8a5aa9e7437e5d56e3e87e918ddd70bce418ce83c4e283d77a29eea1e6a2
-SHA512 (slurm-20.11.9.tar.bz2) = 5f54f61eebcf8acad073d6d46b019db00c431f35a5f945bbb35ee593fa90348af06383370c17fc3b9cf4c1bf838502abe9910fca05f508100e14703af7f36e21
-Size (slurm-20.11.9.tar.bz2) = 6629247 bytes
+BLAKE2s (slurm-25.11.1.tar.bz2) = d905b951c3798d3c66f8e7a34b25758b06171f73a8e1de6425565486697c0512
+SHA512 (slurm-25.11.1.tar.bz2) = 248219a2519d3cb05a87241d878eb775315054fd93287f38bc9600c45dabb6138a75dc6e041894459ee104b0b80fdbf68e08287337c8ea5553438ced30fc0217
+Size (slurm-25.11.1.tar.bz2) = 6724619 bytes
+SHA1 (patch-configure) = 6aae1ee7b5c041a1be978bd20b5502b78ad1b390
 SHA1 (patch-etc_init.d.slurm.in) = beaedd5385b4aad04583d2bc5a23557519f74ec5
-SHA1 (patch-src_common_gres.c) = 5eb64fa3567efe42e763801002fa4a4d185f4fa3
-SHA1 (patch-src_plugins_job__container_Makefile.in) = bc356f74093cee425937524cafd38626602e787f
-SHA1 (patch-src_plugins_task_Makefile.in) = 5d16e430bfc8b1a06347299aa2166e0a3d45a255
-SHA1 (patch-src_slurmd_common_task__plugin.h) = 4a651116b7941fb1287636a5878b49a78ca1c433
+SHA1 (patch-src_common_net.c) = ddf8ee8b3606df1c016c3e11f80173979e229525
+SHA1 (patch-src_common_run__command.c) = fd6886dc71c35d7bc6dee6339cf6fa504b1c0abf
+SHA1 (patch-src_common_xsched.c) = b0e96e4b6b098961e90c3d3e1ea33ed8c6fbe1a1
+SHA1 (patch-src_common_xsched.h) = b777c2460d21ed5ae8f5a31068521d5c134f42b5
+SHA1 (patch-src_conmgr_workers.c) = d31479b6609fcbd3d995a48aab9853313fdcb5c5
+SHA1 (patch-src_plugins_task_Makefile.in) = 6aefcbcef2f9a31941dcbe6488ec4ee0a57f5f02
+SHA1 (patch-src_slurmctld_trigger__mgr.c) = b15af6e486a0857530edb20908bcc46f6005103d
+SHA1 (patch-src_slurmd_slurmd_req.c) = b86087999264b1b224bfadea8afe998768ccf1ad
 SHA1 (patch-src_slurmd_slurmd_slurmd.c) = 512d7871b343327798922d6a23af24ccdfec5c77
-SHA1 (patch-src_slurmd_slurmd_slurmd.h) = a610b0bbe5b6b04be70eb2f8eac2a231139e6d1a
 SHA1 (patch-src_slurmd_slurmstepd_io.c) = b56782887621edb539be70d53dff8029a89e90ed
 SHA1 (patch-src_slurmd_slurmstepd_task.c) = 756dd8eb7201d003a6a7f01aa84b699f9a3ce11b

Index: pkgsrc/parallel/slurm-wlm/patches/patch-src_plugins_task_Makefile.in
diff -u pkgsrc/parallel/slurm-wlm/patches/patch-src_plugins_task_Makefile.in:1.1 pkgsrc/parallel/slurm-wlm/patches/patch-src_plugins_task_Makefile.in:1.2
--- pkgsrc/parallel/slurm-wlm/patches/patch-src_plugins_task_Makefile.in:1.1    Wed Mar 12 18:54:23 2025
+++ pkgsrc/parallel/slurm-wlm/patches/patch-src_plugins_task_Makefile.in        Wed Jan  7 18:30:07 2026
@@ -1,15 +1,15 @@
-$NetBSD: patch-src_plugins_task_Makefile.in,v 1.1 2025/03/12 18:54:23 adam Exp $
+$NetBSD: patch-src_plugins_task_Makefile.in,v 1.2 2026/01/07 18:30:07 adam Exp $
 
 affinity is not portable.
 
---- src/plugins/task/Makefile.in.orig  2025-03-12 16:04:58.510187749 +0000
+--- src/plugins/task/Makefile.in.orig  2026-01-07 14:13:02.105589124 +0000
 +++ src/plugins/task/Makefile.in
-@@ -456,7 +456,7 @@ target_vendor = @target_vendor@
+@@ -467,7 +467,7 @@ target_vendor = @target_vendor@
  top_build_prefix = @top_build_prefix@
  top_builddir = @top_builddir@
  top_srcdir = @top_srcdir@
--SUBDIRS = affinity cray_aries none $(am__append_1)
-+SUBDIRS = cray_aries none $(am__append_1)
+-SUBDIRS = affinity $(am__append_1)
++SUBDIRS = $(am__append_1)
  all: all-recursive
  
  .SUFFIXES:

Added files:

Index: pkgsrc/parallel/slurm-wlm/patches/patch-configure
diff -u /dev/null pkgsrc/parallel/slurm-wlm/patches/patch-configure:1.1
--- /dev/null   Wed Jan  7 18:30:08 2026
+++ pkgsrc/parallel/slurm-wlm/patches/patch-configure   Wed Jan  7 18:30:07 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2026/01/07 18:30:07 adam Exp $
+
+Portability fix.
+
+--- configure.orig     2026-01-07 10:56:18.048097221 +0000
++++ configure
+@@ -27622,7 +27622,7 @@ printf "%s\n" "doh!" >&6; }
+ fi
+ 
+ 
+-  if test "x$x_ac_sview" == "xno"; then
++  if test "x$x_ac_sview" = "xno"; then
+     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: sview is disabled" >&5
+ printf "%s\n" "$as_me: sview is disabled" >&6;}
+   else
Index: pkgsrc/parallel/slurm-wlm/patches/patch-src_common_net.c
diff -u /dev/null pkgsrc/parallel/slurm-wlm/patches/patch-src_common_net.c:1.1
--- /dev/null   Wed Jan  7 18:30:08 2026
+++ pkgsrc/parallel/slurm-wlm/patches/patch-src_common_net.c    Wed Jan  7 18:30:07 2026
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_common_net.c,v 1.1 2026/01/07 18:30:07 adam Exp $
+
+Support NetBSD.
+
+--- src/common/net.c.orig      2026-01-07 12:14:11.246444708 +0000
++++ src/common/net.c
+@@ -547,6 +547,11 @@ extern int net_get_peer(int fd, uid_t *c
+       *cred_uid = cred.uid;
+       *cred_gid = cred.gid;
+       *cred_pid = cred.pid;
++#elif defined(__NetBSD__)
++      struct uucred cred = {
++              .cr_uid = SLURM_AUTH_NOBODY,
++              .cr_groups = { SLURM_AUTH_NOBODY, },
++      };
+ #else
+       struct xucred cred = {
+               .cr_uid = SLURM_AUTH_NOBODY,
Index: pkgsrc/parallel/slurm-wlm/patches/patch-src_common_run__command.c
diff -u /dev/null pkgsrc/parallel/slurm-wlm/patches/patch-src_common_run__command.c:1.1
--- /dev/null   Wed Jan  7 18:30:08 2026
+++ pkgsrc/parallel/slurm-wlm/patches/patch-src_common_run__command.c   Wed Jan  7 18:30:07 2026
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_common_run__command.c,v 1.1 2026/01/07 18:30:07 adam Exp $
+
+NetBSD doesn't have setresgid().
+
+--- src/common/run_command.c.orig      2026-01-07 12:29:48.333473416 +0000
++++ src/common/run_command.c
+@@ -328,6 +328,7 @@ static void _run_command_child_pre_exec(
+        * sync euid -> ruid, egid -> rgid to avoid issues with fork'd
+        * processes using access() or similar calls.
+        */
++#if !defined(__APPLE__) && !defined(__NetBSD__)
+       if (setresgid(getegid(), getegid(), -1)) {
+               error("%s: Unable to setresgid()", __func__);
+               _exit(127);
+@@ -336,6 +337,7 @@ static void _run_command_child_pre_exec(
+               error("%s: Unable to setresuid()", __func__);
+               _exit(127);
+       }
++#endif
+ }
+ 
+ extern void run_command_launcher(int argc, char **argv)
Index: pkgsrc/parallel/slurm-wlm/patches/patch-src_common_xsched.c
diff -u /dev/null pkgsrc/parallel/slurm-wlm/patches/patch-src_common_xsched.c:1.1
--- /dev/null   Wed Jan  7 18:30:08 2026
+++ pkgsrc/parallel/slurm-wlm/patches/patch-src_common_xsched.c Wed Jan  7 18:30:07 2026
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_common_xsched.c,v 1.1 2026/01/07 18:30:07 adam Exp $
+
+Support NetBSD.
+
+--- src/common/xsched.c.orig   2026-01-07 12:43:55.096159624 +0000
++++ src/common/xsched.c
+@@ -120,7 +120,11 @@ extern int task_str_to_cpuset(cpu_set_t 
+ #endif
+ }
+ 
++#ifdef __NetBSD__
++extern int slurm_setaffinity(pid_t pid, size_t size, cpu_set_t *mask)
++#else
+ extern int slurm_setaffinity(pid_t pid, size_t size, const cpu_set_t *mask)
++#endif
+ {
+       int rval;
+       char mstr[CPU_SET_HEX_STR_SIZE];
Index: pkgsrc/parallel/slurm-wlm/patches/patch-src_common_xsched.h
diff -u /dev/null pkgsrc/parallel/slurm-wlm/patches/patch-src_common_xsched.h:1.1
--- /dev/null   Wed Jan  7 18:30:08 2026
+++ pkgsrc/parallel/slurm-wlm/patches/patch-src_common_xsched.h Wed Jan  7 18:30:07 2026
@@ -0,0 +1,35 @@
+$NetBSD: patch-src_common_xsched.h,v 1.1 2026/01/07 18:30:07 adam Exp $
+
+Correct NetBSD support.
+
+--- src/common/xsched.h.orig   2026-01-07 12:05:38.129491083 +0000
++++ src/common/xsched.h
+@@ -43,9 +43,14 @@ typedef cpuset_t cpu_set_t;
+ #endif
+ 
+ #ifdef __NetBSD__
+-#define CPU_ZERO(c) cpuset_zero(*(c))
+-#define CPU_ISSET(i, c) cpuset_isset((i), *(c))
++#define CPU_ZERO(c) cpuset_zero((c))
++#define CPU_ISSET(i, c) cpuset_isset((i), (c))
+ #define sched_getaffinity sched_getaffinity_np
++#define sched_setaffinity sched_setaffinity_np
++#define cpu_set_t cpuset_t
++#define CPU_SETSIZE MAXCPUS
++#define CPU_SET(i,c) cpuset_set((i), (c))
++#define CPU_COUNT(c) 256
+ #endif
+ 
+ #include <sched.h>
+@@ -76,7 +81,11 @@ extern char *task_cpuset_to_str(const cp
+ extern int task_str_to_cpuset(cpu_set_t *mask, const char *str);
+ 
+ /* Wrapper for sched_setaffinity() */
++#ifdef __NetBSD__
++extern int slurm_setaffinity(pid_t pid, size_t size, cpu_set_t *mask);
++#else
+ extern int slurm_setaffinity(pid_t pid, size_t size, const cpu_set_t *mask);
++#endif
+ 
+ /* Wrapper for sched_getaffinity() */
+ extern int slurm_getaffinity(pid_t pid, size_t size, cpu_set_t *mask);
Index: pkgsrc/parallel/slurm-wlm/patches/patch-src_conmgr_workers.c
diff -u /dev/null pkgsrc/parallel/slurm-wlm/patches/patch-src_conmgr_workers.c:1.1
--- /dev/null   Wed Jan  7 18:30:08 2026
+++ pkgsrc/parallel/slurm-wlm/patches/patch-src_conmgr_workers.c        Wed Jan  7 18:30:07 2026
@@ -0,0 +1,36 @@
+$NetBSD: patch-src_conmgr_workers.c,v 1.1 2026/01/07 18:30:07 adam Exp $
+
+Fix for NetBSD.
+
+--- src/conmgr/workers.c.orig  2026-01-07 12:09:10.586098624 +0000
++++ src/conmgr/workers.c
+@@ -121,16 +121,29 @@ static void _worker_delete(void *x)
+ 
+ static int _detect_cpu_count(void)
+ {
++#ifdef __NetBSD__
++      cpu_set_t *mask = cpuset_create();
++      cpuset_zero(mask);
++#else
+       cpu_set_t mask = { { 0 } };
++#endif
+       int rc = EINVAL, count = 0;
+ 
++#ifdef __NetBSD__
++      if ((rc = slurm_getaffinity(getpid(), sizeof(mask), mask))) {
++#else
+       if ((rc = slurm_getaffinity(getpid(), sizeof(mask), &mask))) {
++#endif
+               error("%s: Unable to query assigned CPU mask: %s",
+                     __func__, slurm_strerror(rc));
+               return 0;
+       }
+ 
++#ifdef __NetBSD__
++      if ((count = task_cpuset_get_assigned_count(sizeof(mask), mask)) < 0)
++#else
+       if ((count = task_cpuset_get_assigned_count(sizeof(mask), &mask)) < 0)
++#endif
+               return 0;
+ 
+       log_flag(CONMGR, "%s: detected %d CPUs available from kernel",
Index: pkgsrc/parallel/slurm-wlm/patches/patch-src_slurmctld_trigger__mgr.c
diff -u /dev/null pkgsrc/parallel/slurm-wlm/patches/patch-src_slurmctld_trigger__mgr.c:1.1
--- /dev/null   Wed Jan  7 18:30:08 2026
+++ pkgsrc/parallel/slurm-wlm/patches/patch-src_slurmctld_trigger__mgr.c        Wed Jan  7 18:30:07 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_slurmctld_trigger__mgr.c,v 1.1 2026/01/07 18:30:07 adam Exp $
+
+NetBSD doesn't have setresuid().
+
+--- src/slurmctld/trigger_mgr.c.orig   2026-01-07 14:14:39.292864749 +0000
++++ src/slurmctld/trigger_mgr.c
+@@ -1350,10 +1350,12 @@ static void _trigger_run_program(trig_mg
+                       error("trigger: setgid: %m");
+                       exit(1);
+               }
++#if !defined(__APPLE__) && !defined(__NetBSD__)
+               if ((setresuid(uid, uid, -1) == -1) && !run_as_self) {
+                       error("trigger: setresuid: %m");
+                       exit(1);
+               }
++#endif
+               execv(program, args);
+               exit(1);
+       } else {
Index: pkgsrc/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_req.c
diff -u /dev/null pkgsrc/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_req.c:1.1
--- /dev/null   Wed Jan  7 18:30:08 2026
+++ pkgsrc/parallel/slurm-wlm/patches/patch-src_slurmd_slurmd_req.c     Wed Jan  7 18:30:08 2026
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_slurmd_slurmd_req.c,v 1.1 2026/01/07 18:30:08 adam Exp $
+
+NetBSD doesn't have setresuid().
+
+--- src/slurmd/slurmd/req.c.orig       2026-01-07 14:15:52.102451833 +0000
++++ src/slurmd/slurmd/req.c
+@@ -1578,10 +1578,12 @@ static int _open_as_other(char *path_nam
+               error("%s: uid:%u setgid(%u): %m", __func__, uid, gid);
+               _exit(errno);
+       }
++#if !defined(__APPLE__) && !defined(__NetBSD__)
+       if (setresuid(uid, uid, -1) < 0) {
+               error("%s: setresuid(%u, %u, %d): %m", __func__, uid, uid, -1);
+               _exit(errno);
+       }
++#endif
+ 
+       if (make_dir) {
+               if (force &&



Home | Main Index | Thread Index | Old Index