diff options
author | Jason W. Bacon <jwb@FreeBSD.org> | 2020-12-09 13:44:59 +0000 |
---|---|---|
committer | Jason W. Bacon <jwb@FreeBSD.org> | 2020-12-09 13:44:59 +0000 |
commit | 1366853366e3327ac6a063a756d624af18044a53 (patch) | |
tree | 8a304e8550cace59ede5db24ffe96b503c5e05ec | |
parent | 3c3c1ec25d27b790f1b460ce09ea23a053aa91c0 (diff) | |
download | ports-1366853366e3327ac6a063a756d624af18044a53.tar.gz ports-1366853366e3327ac6a063a756d624af18044a53.zip |
MFH: r556796 r557295
sysutils/slurm-wlm: Patch in lua 5.4 support
PR opened upstream
Make sure patch files have meaningful names
PR: 251471
Reported by: greg@unrelenting.technology
sysutils/slurm-wlm: Back out -fno-common patches, add -fcommon flag
Fixes runtime regression caused by r546150
Reported by: jrm
Approved by: blanket bug fix
Notes
Notes:
svn path=/branches/2020Q4/; revision=557373
-rw-r--r-- | sysutils/slurm-wlm/Makefile | 6 | ||||
-rw-r--r-- | sysutils/slurm-wlm/files/patch-c8be6ceb.c | 25 | ||||
-rw-r--r-- | sysutils/slurm-wlm/files/patch-configure | 38 | ||||
-rw-r--r-- | sysutils/slurm-wlm/files/patch-src_plugins_select_cons__tres_job__test.c | 26 |
4 files changed, 41 insertions, 54 deletions
diff --git a/sysutils/slurm-wlm/Makefile b/sysutils/slurm-wlm/Makefile index ed853220a67a..cbfa24ea9d21 100644 --- a/sysutils/slurm-wlm/Makefile +++ b/sysutils/slurm-wlm/Makefile @@ -2,7 +2,7 @@ PORTNAME= slurm DISTVERSION= 20.02.1 -PORTREVISION= 2 +PORTREVISION= 4 CATEGORIES= sysutils python MASTER_SITES= https://download.schedmd.com/slurm/ PKGNAMESUFFIX= -wlm @@ -82,8 +82,8 @@ RRD_CONFIGURE_WITH= rrdtool CONFIGURE_ARGS= --without-ofed DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${DISTVERSION} -CFLAGS+= -I${WRKSRC}/slurm -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -lsysinfo -lprocstat +CFLAGS+= -I${WRKSRC}/slurm -I${LOCALBASE}/include -fcommon +LDFLAGS+= -L${LOCALBASE}/lib -lsysinfo -lprocstat -fcommon # Hack around nonfunctional --disable-gtktest flag pre-configure-GUI-off: diff --git a/sysutils/slurm-wlm/files/patch-c8be6ceb.c b/sysutils/slurm-wlm/files/patch-c8be6ceb.c deleted file mode 100644 index 645ab28d0c54..000000000000 --- a/sysutils/slurm-wlm/files/patch-c8be6ceb.c +++ /dev/null @@ -1,25 +0,0 @@ -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 diff --git a/sysutils/slurm-wlm/files/patch-configure b/sysutils/slurm-wlm/files/patch-configure new file mode 100644 index 000000000000..5fb3c989de75 --- /dev/null +++ b/sysutils/slurm-wlm/files/patch-configure @@ -0,0 +1,38 @@ +--- configure.orig 2020-11-30 15:56:36 UTC ++++ configure +@@ -24075,8 +24075,24 @@ fi + + + x_ac_lua_pkg_name="lua" +- #check for 5.3 then 5.2 then 5.1 +- if test -n "$PKG_CONFIG" && \ ++ #check for 5.4 then 5.3 then 5.2 then 5.1 ++if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.4\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "lua5.4") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ x_ac_lua_pkg_name=lua5.4 ++else ++ if test -n "$PKG_CONFIG" && \ ++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.4\""; } >&5 ++ ($PKG_CONFIG --exists --print-errors "lua-5.4") 2>&5 ++ ac_status=$? ++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 ++ test $ac_status = 0; }; then ++ x_ac_lua_pkg_name=lua-5.4 ++else ++ if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5 + ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5 + ac_status=$? +@@ -24125,6 +24141,8 @@ else + x_ac_lua_pkg_name=lua-5.1 + else + x_ac_lua_pkg_name="lua >= 5.1" ++fi ++fi + fi + fi + fi diff --git a/sysutils/slurm-wlm/files/patch-src_plugins_select_cons__tres_job__test.c b/sysutils/slurm-wlm/files/patch-src_plugins_select_cons__tres_job__test.c deleted file mode 100644 index 95640af1ae59..000000000000 --- a/sysutils/slurm-wlm/files/patch-src_plugins_select_cons__tres_job__test.c +++ /dev/null @@ -1,26 +0,0 @@ ---- 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 */ |