From patchwork Thu Aug 22 23:36:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 67243 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AEC7827BBEA; Fri, 23 Aug 2024 00:38:33 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AD69F27BBE2 for ; Fri, 23 Aug 2024 00:38:32 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shHNj-00069W-GZ; Thu, 22 Aug 2024 19:38:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shHNg-000689-17 for guix-patches@gnu.org; Thu, 22 Aug 2024 19:38:16 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1shHNf-0006xi-NO for guix-patches@gnu.org; Thu, 22 Aug 2024 19:38:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=VN3YNf3Wlp8ql3HFGzM4oPBIzIPYsRpAuF5HIT5QSS8=; b=Owi7ySy1wLMpkik3eD9oL50IW5m1rKdox2LYmvtBThZf5FrSlbb12civ3DzdWuW8F0l9jOIujG+tx88PceZD0RAQuLKYtRWMtde6J18Lj3QxNrxXZECnebkuAAThP9Y5lK2eSiD6VlBPzZ8HHmjUnq5VlDKbFsqpqPmfJq6p7UnBi8Rf1cKkzuS+yigbU3gaFBz2tM5piDkLU7aWQ9tZ1HMgwxGHuINb0aX8Q83gCqIIWqoiPXWA0z289zgpSQyUp8TwodCe23Tv0fsnQO/aoFuZkpxAldB0vIQ9cpzhSKtSDu2wHpa36UlsfyXR1opfw7+pptT8j9df/nogbML2PA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1shHOQ-0002dK-1z for guix-patches@gnu.org; Thu, 22 Aug 2024 19:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72766] [PATCH 2/2] gnu: slurm: Enable REST API. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Aug 2024 23:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72766 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72766@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 72766-submit@debbugs.gnu.org id=B72766.172436989410055 (code B ref 72766); Thu, 22 Aug 2024 23:39:02 +0000 Received: (at 72766) by debbugs.gnu.org; 22 Aug 2024 23:38:14 +0000 Received: from localhost ([127.0.0.1]:38577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shHNe-0002c6-6k for submit@debbugs.gnu.org; Thu, 22 Aug 2024 19:38:14 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:39186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shHNZ-0002bh-4V for 72766@debbugs.gnu.org; Thu, 22 Aug 2024 19:38:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VN3YNf3Wlp8ql3HFGzM4oPBIzIPYsRpAuF5HIT5QSS8=; b=CtNvJJpbgtaDMh0cbt7jBnCpYW DUg63WOmjIw3+ZIuBQdL4LRtCHLPLMwxpUAckni54FrKjaq6qKstjRHrks/CyFbiZ463l6PQ48V6f ITKRNb5DNAoIsimiYTWzUxHKhfWGbdIT2oWP48rcq7XS+qrNcESegtSMwooSnO+zfAp5P5+bpYLSv tyToNgnJXIKRlWpwzuui9dn8uh5AZmojfBNjjuvuv4JdbK0rP/fK3PW69cUxPopddk2tJpjuCBw32 1h7C6Jqt42GkWLx6QeurMMgBeaqZuXZA/ZrPynrvw69NYIm0KnbYQK/gT8fW0P3ytUGUh8eJgEwmv eK0KL4iw==; Received: from [192.168.2.1] (port=58412 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1shHHp-000000007H1-3PCC; Fri, 23 Aug 2024 00:32:14 +0100 From: Arun Isaac Date: Fri, 23 Aug 2024 00:36:31 +0100 Message-ID: <3f45eba5ce4b94bcf046b1f9368336ad236a74e3.1724369334.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/parallel.scm (slurm)[inputs]: Add dbus, http-parser, libjwt, librdkafka, libtaml, linux-libre-headers and (mariadb "dev"). [arguments]: Add --enable-slurmrestd, --with-bpf, --with-http-parser and --with-rdkafka to configure flags. Change-Id: Icddaa8f883754129d975e82fccd732a47a467517 --- gnu/packages/parallel.scm | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index e75e902a68..21c945382f 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024 David Elsing ;;; Copyright © 2024 Romain Garbage +;;; Copyright © 2024 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,13 +50,16 @@ (define-module (gnu packages parallel) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages check) + #:use-module (gnu packages databases) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages freeipmi) + #:use-module (gnu packages glib) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) + #:use-module (gnu packages networking) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -63,6 +67,7 @@ (define-module (gnu packages parallel) #:use-module (gnu packages python-science) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages serialization) #:use-module (gnu packages tcl) #:use-module (gnu packages tls) #:use-module (gnu packages web)) @@ -223,12 +228,18 @@ (define-public slurm (mkdir "contribs") (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 + ;; FIXME: More optional inputs (for example, gtk+) could be added. + (inputs (list dbus + freeipmi + http-parser `(,hwloc-2 "lib") json-c + libjwt + librdkafka + libyaml + linux-libre-headers linux-pam + `(,mariadb "dev") openpmix munge numactl @@ -238,13 +249,20 @@ (define-public slurm (build-system gnu-build-system) (arguments (list #:configure-flags - #~(list "--enable-pam" "--sysconfdir=/etc/slurm" + #~(list "--enable-pam" + "--enable-slurmrestd" + "--sysconfdir=/etc/slurm" "--disable-static" + (string-append "--with-bpf=" + #$(this-package-input "linux-libre-headers")) (string-append "--with-freeipmi=" #$(this-package-input "freeipmi")) + (string-append "--with-http-parser=" + #$(this-package-input "http-parser")) (string-append "--with-hwloc=" (ungexp (this-package-input "hwloc") "lib")) (string-append "--with-json=" #$(this-package-input "json-c")) (string-append "--with-munge=" #$(this-package-input "munge")) + (string-append "--with-rdkafka=" #$(this-package-input "librdkafka")) ;; Use PMIx bundled with Open MPI (this is required for Open MPI 5.x). ;; Note: Older versions that inherit from this package lack the