From owner-svn-ports-head@freebsd.org Tue Aug 25 10:27:56 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B101F3C655B; Tue, 25 Aug 2020 10:27:56 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BbQDX4F7fz49Ff; Tue, 25 Aug 2020 10:27:56 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5A82028654; Tue, 25 Aug 2020 10:27:56 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 07PARuUc041226; Tue, 25 Aug 2020 10:27:56 GMT (envelope-from zeising@FreeBSD.org) Received: (from zeising@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07PARuh6041225; Tue, 25 Aug 2020 10:27:56 GMT (envelope-from zeising@FreeBSD.org) Message-Id: <202008251027.07PARuh6041225@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zeising set sender to zeising@FreeBSD.org using -f From: Niclas Zeising Date: Tue, 25 Aug 2020 10:27:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r546150 - head/sysutils/slurm-wlm/files X-SVN-Group: ports-head X-SVN-Commit-Author: zeising X-SVN-Commit-Paths: head/sysutils/slurm-wlm/files X-SVN-Commit-Revision: 546150 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2020 10:27:56 -0000 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 */