From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6OIwGDOxB2OVlwAAbAwnHQ (envelope-from ) for ; Thu, 25 Aug 2022 19:28:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qF1HFzOxB2NoJQAAG6o9tA (envelope-from ) for ; Thu, 25 Aug 2022 19:28:19 +0200 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 0CAD33014 for ; Thu, 25 Aug 2022 19:28:19 +0200 (CEST) Received: from localhost ([::1]:38892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRGeQ-00063R-2j for larch@yhetil.org; Thu, 25 Aug 2022 13:28:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRGeA-000630-DS for guix-patches@gnu.org; Thu, 25 Aug 2022 13:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRGeA-0000Of-4w for guix-patches@gnu.org; Thu, 25 Aug 2022 13:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRGe9-0006el-UA for guix-patches@gnu.org; Thu, 25 Aug 2022 13:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57410] [PATCH] gnu: Add ecbuild. References: <20220825172227.1110221-1-antero@mailbox.org> In-Reply-To: <20220825172227.1110221-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Aug 2022 17:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57410 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57410@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 57410-submit@debbugs.gnu.org id=B57410.166144844825541 (code B ref 57410); Thu, 25 Aug 2022 17:28:01 +0000 Received: (at 57410) by debbugs.gnu.org; 25 Aug 2022 17:27:28 +0000 Received: from localhost ([127.0.0.1]:51182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRGdb-0006dt-T4 for submit@debbugs.gnu.org; Thu, 25 Aug 2022 13:27:28 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:46986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRGdX-0006db-M5 for 57410@debbugs.gnu.org; Thu, 25 Aug 2022 13:27:26 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4MD8zS4Qkhz9sV6 for <57410@debbugs.gnu.org>; Thu, 25 Aug 2022 19:27:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1661448436; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=t9NgK1rVe9WEm2D4bCFJNhE/Zkx9S1H7dRPEVqOyqd0=; b=cbyLaMZP1kpJAMUaxPs0iv2deD9B5Fi6DB0Exzrrh1Lha/wZU1CKEPRH3hoFZ/wV0+AJ3m XRQuK15b4gS5RyD1ELAW59CIjVFfRXJO5zb2TLciqWlNa5CPO/CpI0MDGFGCoBhV88uO4n OYHqSQaWfhm8oUtzo9t0Lu5D2b5GEIhjAHJlzSFflbOHXpJ3Ni/xHJMKLyzfdXzH4p61lD 0DBpj+VcTIYb7CkMcB3/t0QVtuideWZTEixf1y/CL//pZSYgf07SQDOzmwcw8M4aYN+JPq EjpqomGF8cD67xd9r4C5S1mEOkTg8HfUGfS7yCiG9AV7vwz6oYEu/p9bA6i8Zg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1661448434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=t9NgK1rVe9WEm2D4bCFJNhE/Zkx9S1H7dRPEVqOyqd0=; b=H9dAhugfMvyvXwWnEANCtt/2vPs8R6C3hX9RKBbSALkiTf+jbjouQlX6gCz7ImpwCaA/BT p2tbhDN/jwc9vPfT4vhN4IIS3aohh5qGw68zHBwxvp5GyQ+NMusRG2GtTXf/+xzAz2YGgT q4dlUHAUIg9L0ccvRqr/Ug5Bqca94bl8as0M4sOkSfgsT26x+QtjeUtUDFjabM7tE5XViU j+FlBYwztaVreVk5/+mhIDKBOb8QZ/rYK+UO8L0HfcmlqO/Cq3TqqVmfd89bM64za7l/ZA GGQcbf4TIBLUhEHn4MORG8uYMFmOeXg5qpmg4TzF+VrS71yv9h4C9Wisa/ts8A== Date: Thu, 25 Aug 2022 13:27:02 -0400 Message-Id: <20220825172702.1111386-1-antero@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-META: x34s7a1rm1dq5m8hmt1zdygqhgcu1ro6 X-MBO-RS-ID: 1a93c208ab01aa5c983 X-Rspamd-Queue-Id: 4MD8zS4Qkhz9sV6 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" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via 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=1661448499; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=t9NgK1rVe9WEm2D4bCFJNhE/Zkx9S1H7dRPEVqOyqd0=; b=aaEIlfxDxeaOXz4STykr3s2mraNdXEGGo2lyhVdTM6POCKGDaouwF5/AOukhNwwe9pxu8R GnYlshbTvYXGix3773ZoKO5jMZQnfZ7GRXYZvvgJtt/2Dgl4WRzlGvTH6h2EkIrtKdWYaH E4xL/0OxDxpS+zDZkTT1s/tQKW94gceXcFFqAgDmzi8FCbp7Jwj8dJzURSavMMiZ62L1U/ +XBJtRN8dNQZ/fSyehQX437l5pCosI+Q4QKgB5dsIXSD26QVM24N2gJYLuLeHy60ihfAiP YlRzrnGjf+/kvtRWkbZVgblh6fDDA4VdsUijPCv/YE/oTg65mLSL+8U0wogcBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661448499; a=rsa-sha256; cv=none; b=FNfsNrVp9x8ogfpurR0jbUbAHEB3sbnvBgRKWYVbOcv+fSthnOj7j2FymZ8oTG7PHT9W33 ANxBQxNxrLXAhHCdVdYdUIh6i0oEVNmjFPn/5XRA7jvvCBCnLRQQTO2YDEf9gbULAVG0xE ZAsstF7eI4qxiei+US39iQDqKX1fh1u7bylwGyuA6EI1O0gWbMTtamiFCIx3n2ANqWfWm1 oNTkyqn0qprRACJ9rWDtqb2PUXr/NKWKB6b+J3l1LwbZEz4ZLZnRFDUoZ+/hM/kG/nIZsx 1iu86SOwW+6ip6UFgibb6F5BJCLR0SFLHTTLru8DJUdkzn7gMxn5JtwS8hbXFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=cbyLaMZP; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=H9dAhugf; 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: -3.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=cbyLaMZP; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=H9dAhugf; 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: 0CAD33014 X-Spam-Score: -3.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: simN6YdZPPr3 * gnu/packages/cmake.scm (ecbuild): New variable. --- gnu/packages/cmake.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm index cf930c57fc..aa89d4815c 100644 --- a/gnu/packages/cmake.scm +++ b/gnu/packages/cmake.scm @@ -32,6 +32,7 @@ (define-module (gnu packages cmake) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix deprecation) @@ -49,6 +50,7 @@ (define-module (gnu packages cmake) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages libevent) #:use-module (gnu packages ncurses) + #:use-module (gnu packages perl) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) #:use-module (gnu packages texinfo) @@ -406,3 +408,33 @@ (define-public emacs-cmake-mode (description "@code{cmakeos-mode} provides an Emacs major mode for editing Cmake files. It supports syntax highlighting, indenting and refilling of comments."))) + +(define-public ecbuild + ;; when using set the configure flag "-DECBUILD_DISABLE_NEW_DTAGS=OFF" + ;; otherwise validate-runpath build step will fail when building Guix packages + (package + (name "ecbuild") + (version "3.7.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ecmwf/ecbuild") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1mcjdqwvkzli7xj2wlnr4hshfh3wi5rs585f9nvqjfpgwvn0ym14")) + (modules '((guix build utils))) + (snippet #~(substitute* "bin/ecbuild" + (("cmake=\\$\\{cmakebin:=cmake\\}") + (string-append "cmake=${cmakebin:=" + #$cmake-minimal "/bin/cmake}")))))) + (build-system cmake-build-system) + (native-inputs (list perl)) + (inputs (list cmake-minimal)) + (home-page "https://ecbuild.readthedocs.io/en/latest/") + (synopsis "CMake wrapper and collection of macros") + (description "ecBuild is built on top of CMake and consists of a set of +macros as well as a wrapper around CMake. Calling @code{ecbuild $SRC_DIR} is +equivalent to @code{cmake -DCMAKE_MODULE_PATH=$ECBUILD_DIR/cmake $SRC_DIR}.") + (license license:asl2.0))) -- 2.37.2