From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QGrQOfl3EmdHkgAAe85BDQ:P1 (envelope-from ) for ; Fri, 18 Oct 2024 15:00:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QGrQOfl3EmdHkgAAe85BDQ (envelope-from ) for ; Fri, 18 Oct 2024 17:00:10 +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=k5NDMpo6; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=oYxXm37A; 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=1729263609; 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=8Ju7K3FiSglYS8d6QRLlOgxeLEry4Uw1qoWTonVnvLM=; b=f/McRELQwBbyEWi1uiMa2Coe6QxPACbdQcvD6om73I7jgAKvd/I2juXCpTr36LQ2n14tVD YeDKV2rMNzRfGofvwVONnEMk94chVu9Ut9Df39RUPrs/Wh6rkBXhrpDQU08IO9SJYAQQFt 8+HVQPTeDY7Qbq6N0p/MobI0I3lbfP/UuO6cVwL2a9gxaFxbGMsFSfN6UVm89ScGDVEbOQ wL6OYqmZFcC7HDmnqIEwtMcxBg0BJBdWcSExElcVrv/3BDzNO+AMtpXLjreKSlr80ZWM0v chSvPfrWjARvZYSFm/TnSAQbfYCtO6rFKuD1OCu5xD15BuwZYqTSxRRjKX5GcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=k5NDMpo6; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=oYxXm37A; 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=1729263609; a=rsa-sha256; cv=none; b=VwKnKtcK7+tjs1dkyOGzoGTAXIQYYRtB3OzNIxX03L0KXZqHkdRDhBB5LTNcvV/Ghy2j9m foK6aeFiMqkSNIWCJdJhkM13V8p9sW4b2c04AaRA6V+0LkUM7Bni2Tm6hgxOeDjW04j/A1 iU8WN/MeC/wS7Sifc97M1Q5B3JRgxRW1dkwbZ7oRt3xqbxjwWLnEhZtRppuNxlz803LQx2 DAxYQv2BGBz6zq10D+oSHZDzlkzaxZ52X8k3ZBLeUgy4nEj47wz4fIX5Ql6E7CmSzCtKSR p5I0Ri4n+E7HUDukAP9xqG4C085++pF+Icj9YLyTJJZqSU/CfyS65Lur++5Biw== 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 2A569402CB for ; Fri, 18 Oct 2024 17:00:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1oSE-0006OD-Fr; Fri, 18 Oct 2024 10:59:52 -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 1t1oS6-0006ND-QJ for guix-patches@gnu.org; Fri, 18 Oct 2024 10:59:44 -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 1t1oS6-00046M-Bm; Fri, 18 Oct 2024 10:59:42 -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=8Ju7K3FiSglYS8d6QRLlOgxeLEry4Uw1qoWTonVnvLM=; b=k5NDMpo6pg5wiNAk5sSWOiJkfmtk9qFKv61Tn7vxgw/yZyi93/UqGf2RfQHlMT3qIBPoBkx2YFa06zIV1dSDpDIHZoxU/IJwvCZwySR+cwGNOiOSnjx3HL+Kb/OrO1yfpm1mDretX07cs/bypWdcOot4l0CnzuNtJrCi2k1avykC6laElrqAftXqhKbMJgu0EUE+zZh8CVo3bxAP9O9QtPjhC5iUmGWKriCjpr1Kpkn//CuB06h90QML9bkQ0VdwngmMmh+dQP5pNTTHlzR8T6Gxm1GS1dgCI9NUiw3i0cY9gOgMhlx5EfHbCLQqIFGaZD1Iuw2NiyfNfmVbwMRJDA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t1oSR-0004BJ-0x; Fri, 18 Oct 2024 11:00:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72766] [PATCH v3 1/2] gnu: slurm: Enable REST API. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: arunisaac@systemreboot.net, ludovic.courtes@inria.fr, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Fri, 18 Oct 2024 15:00: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 , Arun Isaac , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Arun Isaac , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 72766-submit@debbugs.gnu.org id=B72766.172926355115973 (code B ref 72766); Fri, 18 Oct 2024 15:00:02 +0000 Received: (at 72766) by debbugs.gnu.org; 18 Oct 2024 14:59:11 +0000 Received: from localhost ([127.0.0.1]:39705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1oRa-00049X-LA for submit@debbugs.gnu.org; Fri, 18 Oct 2024 10:59:11 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:60730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t1oRU-000496-QW for 72766@debbugs.gnu.org; Fri, 18 Oct 2024 10:59:09 -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=8Ju7K3FiSglYS8d6QRLlOgxeLEry4Uw1qoWTonVnvLM=; b=oYxXm37A6MJH05wQaKvTwqpSsx IFZ+W3Q32xdpjRJlhkwup1pLvLnlRkxmG1OrIl8tv0idjINcdO/n7VdJsKeMVmikf3B0eT8cqyta5 AX8OnjpzQgTIVG8qCsDgQsxoaG3RFJbSgTE/tgt2a+NnMAxzMvSkRueyF2V+SIPqwm8E3OFlwV+pf Q/8qd0ZftVwcwuvp/d+VxA0PFnUAvpMBEds5545y8TzAtv1p3FHytRR5Q3WPFItLKkYclK7EdbOez wpFjk3CXFSzuwQ9OBWOAHkK9yPcJxf6z9lKxJbT0fwjBuK3IoAGqrTTWyfeA5Yu6e1UJCy9GiTuGW 5/77gEfw==; Received: from [192.168.2.1] (port=47248 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 1t1oLB-000000002pT-3dN4; Fri, 18 Oct 2024 15:52:34 +0100 From: Arun Isaac Date: Fri, 18 Oct 2024 15:58:11 +0100 Message-ID: <7aaf17b37cbdfba71f428a24631a7e9e82ed8c0e.1729262403.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: 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-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 4.20 X-Spam-Score: 4.20 X-Migadu-Queue-Id: 2A569402CB X-TUID: 4FBZ0RsGYkwA * 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 fc96136065..522d326ef2 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,14 +50,17 @@ (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 gcc) + #: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) @@ -64,6 +68,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,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 @@ -238,13 +248,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