From patchwork Mon Sep 9 15:24:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 67819 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 BA01027BBEC; Mon, 9 Sep 2024 16:25:30 +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 3AFD927BBEB for ; Mon, 9 Sep 2024 16:25:30 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sngGF-0005hZ-4D; Mon, 09 Sep 2024 11:25:03 -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-0005Yf-Qp 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-00020m-Eu 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:Date:From:To:In-Reply-To:References:Subject; bh=wz1z1vnmTxyy5VHLzNllvYloaS/CanjTnscUDXemnUI=; b=sf8S8OJv9DNl0HEptnNjVIsXxm5Dscv0b60uUj6kJjF9xnwsFYIl6Qu0NRV6hC9MHBc8kxNnmYl58vWEdaiq9cuvE9VHaY91wwVGUt+3t72Jo1XBMsEM9fD4TRs3+74j93qabD2pyfzpKjUlEetZqOLl4d1YezTwQ8ND/JZTwiKG5qbirx6EUdXPVesElIJdQW2NXk7m2Sx1tQJke53ZjVUcIdTFh4F6FoocXbjz7uI8xMUrxhdLTzERQ4SDJ0ee+HSCE3wDVSrMBBrXru0QnuDi29ej4EWkAQLdjY1ChWYNu00lg414Fva7bVTnZFT1oAtRjgWdCOLAw37GAMZAIA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sngGE-00043B-Mi; Mon, 09 Sep 2024 11:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72766] [PATCH v2 1/2] gnu: Add libjwt. References: In-Reply-To: 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: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?= X-Debbugs-Original-Xcc: Arun Isaac , Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 72766-submit@debbugs.gnu.org id=B72766.172589548915517 (code B ref 72766); Mon, 09 Sep 2024 15:25:02 +0000 Received: (at 72766) by debbugs.gnu.org; 9 Sep 2024 15:24:49 +0000 Received: from localhost ([127.0.0.1]:33895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sngG0-00042C-Je for submit@debbugs.gnu.org; Mon, 09 Sep 2024 11:24:49 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:40286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sngFw-00041s-Ra for 72766@debbugs.gnu.org; Mon, 09 Sep 2024 11:24:46 -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: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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wz1z1vnmTxyy5VHLzNllvYloaS/CanjTnscUDXemnUI=; b=e5wxmyXs8uNSq3ZuXZZfiBNVV5 5NlS/ocTrluJLex4hqrYNC1Eh+LdOIGhyiUY5xNe7+D4g5yypku3WyJyH+WBODf/j5G11MyuP1S46 m16r2PuqDOKTfWlGyVlMpi+pynyU7pH/I2LF9Oc3B7ZEhgmj8RmtpC+Z5rYycchzvCYffkOfBY9LO bL8AAFMhLd9QD+8O3v6etWDcgtzQxiZCUHSFuXaDFQAdYnXBS63WxhIQSZq1k+Eef2IaYvSjqfJiH CdDbo2mzrxsvfzOLFQSnhleW+aGQ6OCR13NHk5f/QnyAZA+LwP/0TAdCujAtrzv+OqI/zW53CaBpc AxowEfiA==; 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 1sngAC-000000003Yy-3cRl; Mon, 09 Sep 2024 16:18:49 +0100 From: Arun Isaac Date: Mon, 9 Sep 2024 16:24:19 +0100 Message-ID: <8e66368abbacd373f187c412c8649b4f8616ac12.1725895378.git.arunisaac@systemreboot.net> X-Mailer: git-send-email 2.45.2 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/web.scm (libjwt): New variable. Change-Id: Ied516fb41a90de316588622b999b27f0f7ee8de3 --- gnu/packages/web.scm | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) base-commit: cc2619a7bd7542d834762de2430937a59d1f3a36 diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index c768874a4a..735cc5ce98 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2016 Ben Woodcroft ;;; Copyright © 2016, 2023 Clément Lassieur ;;; Copyright © 2016, 2017 Nikita -;;; Copyright © 2016–2023 Arun Isaac +;;; Copyright © 2016–2024 Arun Isaac ;;; Copyright © 2016–2022 Tobias Geerinckx-Rice ;;; Copyright © 2016 Bake Timmons ;;; Copyright © 2017 Thomas Danckaert @@ -1610,6 +1610,30 @@ (define-public rapidjson style API.") (license license:expat)))) +(define-public libjwt + (package + (name "libjwt") + (version "1.17.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/benmcollins/libjwt/releases/download/v" + version "/libjwt-" + version ".tar.bz2")) + (sha256 + (base32 + "1bpfaa0y8bccz5hr677lkrprs07akx02k0qbf82z2c8syr24a77i")))) + (build-system gnu-build-system) + (inputs + (list jansson openssl)) + (native-inputs + (list check pkg-config)) + (home-page "https://github.com/benmcollins/libjwt") + (synopsis "C @acronym{JWT, JSON Web Token} library") + (description "@code{libjwt} is a @acronym{JWT, JSON Web Token} library for +C.") + (license license:mpl2.0))) + (define-public yajl (package (name "yajl") From patchwork Mon Sep 9 15:24:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 67820 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 3564127BBEB; Mon, 9 Sep 2024 16:25:31 +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 29E7827BBE2 for ; Mon, 9 Sep 2024 16:25:30 +0100 (BST) 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 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 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