Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2020 10:27:56 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r546150 - head/sysutils/slurm-wlm/files
Message-ID:  <202008251027.07PARuh6041225@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Tue Aug 25 10:27:55 2020
New Revision: 546150
URL: https://svnweb.freebsd.org/changeset/ports/546150

Log:
  sysutils/slurm-wlm: Fix build with -fno-common
  
  Add two patches based on upstream changes to fix the build of
  sysutils/slurm-wlm with -fno-common, which is the default with llvm 11.
  
  MFH:		2020Q3 (implicit, -fno-common fixes, ok by joenum)

Added:
  head/sysutils/slurm-wlm/files/patch-c8be6ceb.c   (contents, props changed)
  head/sysutils/slurm-wlm/files/patch-src_plugins_select_cons__tres_job__test.c   (contents, props changed)

Added: head/sysutils/slurm-wlm/files/patch-c8be6ceb.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/slurm-wlm/files/patch-c8be6ceb.c	Tue Aug 25 10:27:55 2020	(r546150)
@@ -0,0 +1,25 @@
+diff --git a/src/scancel/scancel.c b/src/scancel/scancel.c
+index 4448b75599..23594fe0bf 100644
+--- src/scancel/scancel.c
++++ src/scancel/scancel.c
+@@ -99,6 +99,7 @@ static	pthread_cond_t   num_active_threads_cond;
+ static	pthread_mutex_t  max_delay_lock;
+ static	uint32_t max_resp_time = 0;
+ static	int request_count = 0;
++opt_t opt;
+ 
+ int
+ main (int argc, char **argv)
+diff --git a/src/scancel/scancel.h b/src/scancel/scancel.h
+index a0c9d8a829..678bcd7616 100644
+--- src/scancel/scancel.h
++++ src/scancel/scancel.h
+@@ -75,7 +75,7 @@ typedef struct scancel_options {
+ 	bool *job_pend;		/* Set fi job is pending	*/
+ } opt_t;
+ 
+-opt_t opt;
++extern opt_t opt;
+ 
+ /* process options:
+  * 1. set defaults

Added: head/sysutils/slurm-wlm/files/patch-src_plugins_select_cons__tres_job__test.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/slurm-wlm/files/patch-src_plugins_select_cons__tres_job__test.c	Tue Aug 25 10:27:55 2020	(r546150)
@@ -0,0 +1,26 @@
+--- src/plugins/select/cons_tres/job_test.c.orig	2020-03-26 21:44:05 UTC
++++ src/plugins/select/cons_tres/job_test.c
+@@ -41,23 +41,6 @@
+ 
+ #define _DEBUG 0	/* Enables module specific debugging */
+ 
+-/*
+- * These symbols are defined here so when we link with something other
+- * than the slurmctld we will have these symbols defined. They will get
+- * overwritten when linking with the slurmctld.
+- */
+-#if defined (__APPLE__)
+-extern slurmctld_config_t slurmctld_config __attribute__((weak_import));
+-extern bitstr_t *idle_node_bitmap __attribute__((weak_import));
+-extern node_record_t *node_record_table_ptr __attribute__((weak_import));
+-extern List job_list __attribute__((weak_import));
+-#else
+-slurmctld_config_t slurmctld_config;
+-bitstr_t *idle_node_bitmap;
+-node_record_t *node_record_table_ptr;
+-List job_list;
+-#endif
+-
+ typedef struct node_weight_struct {
+ 	bitstr_t *node_bitmap;	/* bitmap of nodes with this weight */
+ 	uint32_t weight;	/* priority of node for scheduling work on */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008251027.07PARuh6041225>