From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UDm2JGoT32bkKgEAe85BDQ:P1 (envelope-from ) for ; Mon, 09 Sep 2024 15:25:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UDm2JGoT32bkKgEAe85BDQ (envelope-from ) for ; Mon, 09 Sep 2024 17:25:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=qqMszIEK; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=VFxKJIEI; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=systemreboot.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725895530; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=A1OyTJf1wC2QLFcJWaJEmyZf9zngO8OPSrpqDdYgFuI=; b=UjB+jznv2/iuyGTjvbGV9NkxY/6Hl4511uiv+arBhuEwJwaIR9hlPl5aiZ1weDRVb0gut4 xaBwPOe3VO87hNGn1CHJacqAQPqksWrfaN7yOEk4rMNGOpNhTgeNfJfbkoaNPilLsVuJx4 7ZzQjc9/awDhFUmRXO2b64K8ASHOADY9Yt0Dcyr3wLvD8QaHvF2cE4kVaXfjWhd4c4uvei OGXoSnirO/xJ9zjKK+d+ExWKZzENg4JQ0siOh19goaU50y4DFATlv49PUZ6p9F92vIb/M5 8wKarbHkUbBBppoYi09KwykdnJ3ekWy9C2EXyxeuJq5k+wEEcI64J3g1MfMQBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=qqMszIEK; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=VFxKJIEI; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=systemreboot.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725895530; a=rsa-sha256; cv=none; b=rrUumFrqCJkJNiEQg/cJqSLYvKwphMkurP+txT+FhIJ/R++sugGkDRRVuv7WcUzng5cqa0 dK8/nNnyNrWa/j/8pNMAeM0SANd2qO3WMqP+ATMpEwpvpZHjLIlz48CROLMV93rAlmf6Qg zlVuYL9/mfG/pysbVwYrbqho/N9UrhhmqU+0KmM8SffKKI8ku6k5em16gMKgATpezV0B4A 8zfsAdJgxl/sBNxHRkr1be7JIjr+HCVykv21aLfTKSWbt7pLSOxpd0PwVG2AbIqfHxpecr PZ7BI9p4cKPhC+LRJY7EH+6fkbuMLsw5i70ijtrE4HMpSvzwAKKDyRCNL2PPnQ== 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 627F05FF40 for ; Mon, 09 Sep 2024 17:25:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sngGG-0005oi-RP; Mon, 09 Sep 2024 11:25:04 -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 1sngGC-0005Yj-R6 for guix-patches@gnu.org; Mon, 09 Sep 2024 11:25:01 -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 1sngGC-00020n-F0 for guix-patches@gnu.org; Mon, 09 Sep 2024 11:25:00 -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=A1OyTJf1wC2QLFcJWaJEmyZf9zngO8OPSrpqDdYgFuI=; b=qqMszIEKw6slRAg2NVgiG2nCi72PEImoByH1av+h4asZMJvSbKQeiL4dto7RLz1hKP85+A/ObUfvx3S9oHAfHGFH4hz/ZLDBTbwk4innOwPShuvj5kXrWIbn2PL34o5ROfxwgGbHmpWkwWMNA1YbGj7TMp9ic1wkViQzKmRh9GC/foBFCQ/o07WCLZWUGEZMpMmccqsIKGzBDh0hnXU1QoXcF3f1r/CcpfgzUmtr1PUgiNJ3U+4Cp5QYEiqpOyNemV5jJb7/7fZ/eJvMY2Rj1pAFUG7K/QJ+8k5AgeCxmC3ppmWU05mLlc0Hu4O6eo582rWsETmWsEl6tvpixbTphw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sngGF-00043H-4z; Mon, 09 Sep 2024 11:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72766] [PATCH v2 2/2] gnu: slurm: Enable REST API. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: arunisaac@systemreboot.net, ludovic.courtes@inria.fr, guix-patches@gnu.org Resent-Date: Mon, 09 Sep 2024 15:25:03 +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 , Arun Isaac , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Arun Isaac , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 72766-submit@debbugs.gnu.org id=B72766.172589549115527 (code B ref 72766); Mon, 09 Sep 2024 15:25:03 +0000 Received: (at 72766) by debbugs.gnu.org; 9 Sep 2024 15:24:51 +0000 Received: from localhost ([127.0.0.1]:33897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sngG3-00042M-3S for submit@debbugs.gnu.org; Mon, 09 Sep 2024 11:24:51 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:40294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sngFy-00041w-Fm for 72766@debbugs.gnu.org; Mon, 09 Sep 2024 11:24:48 -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=A1OyTJf1wC2QLFcJWaJEmyZf9zngO8OPSrpqDdYgFuI=; b=VFxKJIEIPljyxL+aBBU8eAtqHy 5xBQm3VQnX2UkpzIQlpRvw1zzRDDwm81gSfhgLmZtGE/Z09ehxoWS00BkKlNCluWJPcX+ybQlOlO2 uvl18ZCt5dSC3Dd01hC6IoP2z1TUhqqoRRNYej2nZpaUt4fFcpUZ2A4Zd0ZnrBiIQAhPedlXXN3RQ dJfGMN/PdkQ6xZcf3Q6R/R3NjsCFKC1ISZfzkUmNIdHzdzIwhmCdHyHAjGGCjwUlM2AXBDaonXdXo enfNnCt9N3z5VNkzxfKbbYv/T6YaLjFKj92I3qqyeyM/MmvrQJtaBMNnrZk2zYmfSzZvA235gtE2+ y+D7PsYQ==; Received: from [192.168.2.1] (port=43796 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 1sngAF-000000003Yy-3yWQ; Mon, 09 Sep 2024 16:18:52 +0100 From: Arun Isaac Date: Mon, 9 Sep 2024 16:24:20 +0100 Message-ID: <9399f4d210641ee73f9a620f56d20bd66aef65e8.1725895378.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> References: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 627F05FF40 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.42 X-Spam-Score: -9.42 X-TUID: Yn0V8jzGt9+N * gnu/packages/parallel.scm (slurm)[inputs]: Add dbus, http-parser, libjwt, librdkafka, libtaml and (mariadb "dev"). [arguments]: Add --enable-slurmrestd, --with-bpf, --with-http-parser, --with-rdkafka and --with-yaml to configure flags. Change-Id: Icddaa8f883754129d975e82fccd732a47a467517 --- gnu/packages/parallel.scm | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index d5a55a8641..5d7544783a 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)) @@ -224,12 +229,17 @@ (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-pam + `(,mariadb "dev") openpmix munge numactl @@ -239,13 +249,22 @@ (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=" + (dirname (dirname (search-input-directory + %build-inputs "include/linux")))) (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")) + (string-append "--with-yaml=" #$(this-package-input "libyaml")) ;; Use PMIx bundled with Open MPI (this is required for Open MPI 5.x). ;; Note: Older versions that inherit from this package lack the -- 2.45.2