From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cV7HBj2PPGL4AAEAgWs5BA (envelope-from ) for ; Thu, 24 Mar 2022 16:33:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ABwTAz2PPGJsNAAA9RJhRA (envelope-from ) for ; Thu, 24 Mar 2022 16:33:17 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 801193767B for ; Thu, 24 Mar 2022 16:33:16 +0100 (CET) Received: from localhost ([::1]:40932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXPSc-0003gI-NO for larch@yhetil.org; Thu, 24 Mar 2022 11:33:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXPSR-0003ft-4Y for guix-patches@gnu.org; Thu, 24 Mar 2022 11:33:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXPSQ-0003aV-QK for guix-patches@gnu.org; Thu, 24 Mar 2022 11:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nXPSQ-0007OZ-5M; Thu, 24 Mar 2022 11:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54547] [PATCH] gnu: slurm: Install libpmi2. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: philippe.swartvagher@inria.fr, guix-patches@gnu.org Resent-Date: Thu, 24 Mar 2022 15:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54547 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54547@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Philippe Swartvagher X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Philippe Swartvagher Received: via spool by submit@debbugs.gnu.org id=B.164813592628333 (code B ref -1); Thu, 24 Mar 2022 15:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Mar 2022 15:32:06 +0000 Received: from localhost ([127.0.0.1]:49204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXPRR-0007MN-Hh for submit@debbugs.gnu.org; Thu, 24 Mar 2022 11:32:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:38764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nXPRO-0007M7-Mn for submit@debbugs.gnu.org; Thu, 24 Mar 2022 11:32:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXPRN-0003bo-TQ for guix-patches@gnu.org; Thu, 24 Mar 2022 11:31:58 -0400 Received: from [2001:470:142:3::e] (port=58910 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXPRM-0003J2-2F; Thu, 24 Mar 2022 11:31:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=E9HbFo5eCEfdeS2Xsnt5Ad8j+/nRROhdDeBww4CAN/0=; b=hhkbkTHIG95G/w WDjHjggLxLpcgwr04QSSMOE6NG5xqQLnUW05ZmZ6iOnXloBHlUUsSScwro7WVYp6Of81bfQOiWONs qYKEbY5ztCnyVpt822/SyQ1Q+twS/QGpb0hPGq55qtENJHJs/CRt5L9ICVXkl6K+Lr8Ay/Ybo7Z3k yiAZmBDsTY8UGEeIDnr8rsIjFYwYWy5os0xpjJb6iqPQDFxJ4DuMFMgPt9Ru+Eg+cGzIlDHtWnU5d Kq8L9K42jhfMjym84hz0MbAJSBHM6KNsjYJAv8KfhZlGgZCaFcSgP3FKfvr0yNc6MjySIpLE776eH zZo2WyvZk50h97lXCVpQ==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=38660 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nXPM2-0000ga-0p; Thu, 24 Mar 2022 11:26:26 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 24 Mar 2022 16:26:15 +0100 Message-Id: <20220324152615.30374-1-ludo@gnu.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648135996; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=E9HbFo5eCEfdeS2Xsnt5Ad8j+/nRROhdDeBww4CAN/0=; b=qa6FypB5sIUWsBrranXeqQJ90f4hJHZ+xDMj+wNBTW867SuHbwPH5+bxXGHM6GcUfKo0c5 Vsnc8qpAKa90rM7b+zeAI4j68IEnaxFQ2yCkEuJdfOIpcMwg3BtGt2D8PmnwL83b+vCwXy X0ovBqQ6rGTc2aRcK88eGg1ErXOm5bZ9SgwYNPyetJL5x5n0QZnwLULy67jWdhZrVVGfRL 09Ct2f+TNzmbQoR1nbPhwjnbB8d2qb3RgHvpYtrOCqcrQgvSULeSKJD0DfeIbbLxSZtffp pDRSzsFDU09axuhm/PVx+IvJPsHdd0h1l5/vlkm2IGFYUF1zUiaejTYpR5GBYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648135996; a=rsa-sha256; cv=none; b=jUlQUVXSzeWCGDDnrtnlliE6PzYUKUP31ADNJcWqPimQaC098MfawkHj0Hg6pi1FNBfXSA vkjX0YMvq/MCxK7Obh2Kv7FRZDRe+fw2HKOaZULoYOOZdb9SoX1Hp7uMDRx060lx0L7oao bFOMfIy1tAIJBsj8K1ZLsBcSLqpdPj40NaaiDIvK5P6MRle2TRDs4i2bCHk8p7kFoLo3Ml wNojd/w/OMgWiHbQBX/1ZU5gnVhBXZEDswdlmInI+1gEeT2p5R1uBlVMbGLdRryDza+ram LwlVcaEAWElT4/UxZlj9Et9ihr4Uk/pzuwUbFxgzYLSJdIaNV+BsZuSGF7NUeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hhkbkTHI; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=hhkbkTHI; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 801193767B X-Spam-Score: -2.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: sYUiI+vMuz5m From: Ludovic Courtès * gnu/packages/parallel.scm (slurm)[source](snippet): Let PMI2 through. [arguments]: In phase 'install-libpmi', install "contribs/pmi2". [license]: Add 'non-copyleft'. --- gnu/packages/parallel.scm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) Hi! Previously, we were erroneously excluding libpmi2. It’s actually free, under a lax non-copyleft license (full text below): https://github.com/SchedMD/slurm/blob/master/contribs/pmi2/COPYRIGHT That library is in Debian: https://packages.debian.org/sid/libpmi2-0-dev Tested with slurm 20.11, 20.02, 19, and 18 as currently available. Objections? Thanks, Ludo’. Full license text: --8<---------------cut here---------------start------------->8--- COPYRIGHT The following is a notice of limited availability of the code, and disclaimer which must be included in the prologue of the code and in all source listings of the code. Copyright Notice + 2002 University of Chicago Permission is hereby granted to use, reproduce, prepare derivative works, and to redistribute to others. This software was authored by: Mathematics and Computer Science Division Argonne National Laboratory, Argonne IL 60439 (and) Department of Computer Science University of Illinois at Urbana-Champaign GOVERNMENT LICENSE Portions of this material resulted from work developed under a U.S. Government Contract and are subject to the following license: the Government is granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable worldwide license in this computer software to reproduce, prepare derivative works, and perform publicly and display publicly. DISCLAIMER This computer code material was prepared, in part, as an account of work sponsored by an agency of the United States Government. Neither the United States, nor the University of Chicago, nor any of their employees, makes any warranty express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. --8<---------------cut here---------------end--------------->8--- diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 5f84fb6777..d7c3586606 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -182,19 +182,20 @@ (define-public slurm ;; ;; there are non-free bits under contribs/, though it's not ;; clear which ones. libpmi is clearly free (it used to be - ;; under src/api/), so remove all of contribs/ except - ;; contribs/pmi/. + ;; under src/api/) and so is pmi2 (lax non-copyleft + ;; license), so remove all of contribs/ except pmi and pmi2. (substitute* "configure.ac" (("^[[:space:]]+contribs/(.*)$" all directory) - (if (and (string-prefix? "pmi" directory) - (not (string-prefix? "pmi2" directory))) + (if (string-prefix? "pmi" directory) all ""))) (rename-file "contribs/pmi" "tmp-pmi") + (rename-file "contribs/pmi2" "tmp-pmi2") (delete-file-recursively "contribs") (mkdir "contribs") - (rename-file "tmp-pmi" "contribs/pmi"))))) + (rename-file "tmp-pmi" "contribs/pmi") + (rename-file "tmp-pmi2" "contribs/pmi2"))))) ;; FIXME: More optional inputs could be added, ;; in particular mysql and gtk+. (inputs (list freeipmi @@ -231,7 +232,10 @@ (define-public slurm (add-after 'install 'install-libpmi (lambda _ ;; Open MPI expects libpmi to be provided by Slurm so install it. - (invoke "make" "install" "-C" "contribs/pmi")))))) + (invoke "make" "install" "-C" "contribs/pmi") + + ;; Others expect pmi2. + (invoke "make" "install" "-C" "contribs/pmi2")))))) (home-page "https://slurm.schedmd.com/") (synopsis "Workload manager for cluster computing") (description @@ -246,6 +250,8 @@ (define-public slurm license:isc ; src/common/strlcpy.c license:lgpl2.1+ ; hilbert.[ch], src/common/slurm_time.h license:zlib ; src/common/strnatcmp.c + (license:non-copyleft ;contribs/pmi2, Argonne Natl. Lab. + "https://github.com/SchedMD/slurm/blob/master/contribs/pmi2/COPYRIGHT") license:gpl2+)))) ; the rest, often with OpenSSL exception ;; The SLURM client/daemon protocol and file format changes from time to time -- 2.34.0