From patchwork Sat Jun 25 10:18:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Roman Scherer X-Patchwork-Id: 40320 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 A711F27BBEA; Sat, 25 Jun 2022 11:27:21 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 198B927BBE9 for ; Sat, 25 Jun 2022 11:27:21 +0100 (BST) Received: from localhost ([::1]:34974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o530a-0007zU-8u for patchwork@mira.cbaines.net; Sat, 25 Jun 2022 06:27:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o530I-0007wj-RG for guix-patches@gnu.org; Sat, 25 Jun 2022 06:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o530I-0006ZP-IU for guix-patches@gnu.org; Sat, 25 Jun 2022 06:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o530I-0008An-FQ for guix-patches@gnu.org; Sat, 25 Jun 2022 06:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56193] [PATCH] Add Climate Data Operators package References: <87a6a26sai.fsf@burningswell.com> In-Reply-To: <87a6a26sai.fsf@burningswell.com> Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Jun 2022 10:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56193 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 56193@debbugs.gnu.org Received: via spool by 56193-submit@debbugs.gnu.org id=B56193.165615277531330 (code B ref 56193); Sat, 25 Jun 2022 10:27:02 +0000 Received: (at 56193) by debbugs.gnu.org; 25 Jun 2022 10:26:15 +0000 Received: from localhost ([127.0.0.1]:44178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o52zW-00089G-Ot for submit@debbugs.gnu.org; Sat, 25 Jun 2022 06:26:15 -0400 Received: from mail-ej1-f42.google.com ([209.85.218.42]:37704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o52zS-00088z-F5 for 56193@debbugs.gnu.org; Sat, 25 Jun 2022 06:26:13 -0400 Received: by mail-ej1-f42.google.com with SMTP id lw20so9492459ejb.4 for <56193@debbugs.gnu.org>; Sat, 25 Jun 2022 03:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20210112.gappssmtp.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=S0TNF9L0UoaB1MdPGlYDLgevY85BpUnPzAU7ePtJluU=; b=2UlE0pqm96uliagXYQgmdGrooZtwnz3rX9EI/oHAHHqb/ygUOP9dNzoAt+o+DjPAsH nPPdvF052iBbaQ72aGlOQx0LiglTJIgaww60jEDmGjOCyi7dnMxxfLue9Peqom/dYHek +g58ANeaWP1CJSQrl+1PHsy6R0bsHe2a2dUQ2Xzm9mhnPqwPi9ksRfIjmelTTm0oI34E r4BZtPiWmCZ4rLoRrBlt3CLOKcJbZ4isfd+fSvlVQt7c3b6LNUk95/nICeTQf+UUOoWq rUhNlKQlzbR1o0JQ+tsbaA6ZNr2marpAlJCMgHOrWF40if7Dk3UvYomeEQcjkmljlXc7 ijsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=S0TNF9L0UoaB1MdPGlYDLgevY85BpUnPzAU7ePtJluU=; b=62aK4nLQ/+mQV0WOp5UOPyd/WrG6piuC63ZQ3SZ17J6SLSZECyAfmnC6BGt4yyyJjC 8CoKnjX9NYxMHzDGum0mJ7YWF44NRLykEcx7W9SGc4QSUNSfCZYvtjM6ygxcaWcNmN9n 4xZXnY+uqGcpnQh26Mni83Pa89L0TAi7S7Wpu/ikkuj+DcUG4MkPe0mQEM3gTkaY/O8g 3FylxVinkXE4eEmKKqICoqGNKpE7itqmchswS/CK8mubPitM6BaTDca4DD+Ggw+LZ6bP KRvHI0Dn36zVH0Sa+GfNeBWFop2Zi6plhL82wG9kGS4j8iVRncB++XEoUGtimovz616R x9hQ== X-Gm-Message-State: AJIora9QBllHeV8gC+hTBjKgPpbWmxDSnbbps1i8u6dzP/uVeqmjvQP8 cDDWtto6rbxP6ya7udlRcg1gqi1ieJpc0V7w X-Google-Smtp-Source: AGRyM1sYzvMhF1q7oDBP1QSCuNz42noAlq8LEh63b9R82kXbyCBUcr1IKP8Up/OCcBPNxTtUUF+aag== X-Received: by 2002:a17:906:530b:b0:715:7867:1033 with SMTP id h11-20020a170906530b00b0071578671033mr3014414ejo.683.1656152763985; Sat, 25 Jun 2022 03:26:03 -0700 (PDT) Received: from thinkpad (tmo-117-18.customers.d1-online.com. [80.187.117.18]) by smtp.gmail.com with ESMTPSA id j7-20020a17090643c700b00722e0b1fa8esm2432763ejn.164.2022.06.25.03.26.02 for <56193@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 03:26:03 -0700 (PDT) User-agent: mu4e 1.6.11; emacs 28.1.50 From: Roman Scherer Date: Sat, 25 Jun 2022 12:18:24 +0200 Message-ID: <87mte1vy30.fsf@burningswell.com> 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" X-getmail-retrieved-from-mailbox: Patches Hi Antero, thanks for your review! Here's an updated version of the patch. I added --with-netcdf to the configure flags, removed the build utils, added spaces between sentences and don't use a list for the licence field anymore. Could you have another look please? I'm not sure if I addressed all lint issues, since this command is failing on my machine recently. Any idea what this could be? Here's the backtrace of the lint command: ``` [roman@thinkpad guix]$ ./pre-inst-env guix lint cdo ;;; note: source file /home/roman/workspace/guix/gnu/packages/geo.scm ;;; newer than compiled /home/roman/workspace/guix/gnu/packages/geo.go ;;; note: source file /home/roman/workspace/guix/gnu/packages/geo.scm ;;; newer than compiled /home/roman/.cache/guile/ccache/3.0-LE-8-4.5/home/roman/workspace/guix/gnu/packages/geo.scm.go ;;; Failed to autoload html->sxml in (htmlprag): ;;; no code for module (htmlprag) Backtrace: In ice-9/boot-9.scm: 1752:10 18 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 17 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 16 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 15 (_ #(#(#))) In guix/ui.scm: 2238:7 14 (run-guix . _) 2201:10 13 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 12 (with-exception-handler _ _ #:unwind? _ # _) 1752:10 11 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 659:37 10 (thunk) In srfi/srfi-1.scm: 634:9 9 (for-each # …) In guix/scripts/lint.scm: 65:4 8 (run-checkers _ _ #:store _) In srfi/srfi-1.scm: 634:9 7 (for-each # …) In guix/scripts/lint.scm: 74:21 6 (_ _) In guix/lint.scm: 1476:5 5 (check-for-updates #) 811:2 4 (call-with-networking-fail-safe _ _ _) In ice-9/boot-9.scm: 1752:10 3 (with-exception-handler _ _ #:unwind? _ # _) 1685:16 2 (raise-exception _ #:continuable? _) 1683:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: error: html->sxml: unbound variable ``` Thanks, Roman. From d003fb5a519341a23973e8565ac7bc3195742808 Mon Sep 17 00:00:00 2001 From: r0man Date: Sat, 25 Jun 2022 12:10:00 +0200 Subject: [PATCH] Add Climate Data Operators package This patch adds CDO, a collection of command line Operators to manipulate and analyse Climate and NWP model Data to Guix's geo module. --- gnu/packages/geo.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 7b29c55088..7ce1d2bda2 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -119,6 +119,33 @@ (define-module (gnu packages geo) #:use-module (gnu packages xml) #:use-module (gnu packages xorg)) +(define-public cdo + (package + (name "cdo") + (version "2.0.5") + (source (origin + (method url-fetch) + (uri (string-append + "https://code.mpimet.mpg.de/attachments/download/26823/cdo-" + version ".tar.gz")) + (sha256 + (base32 + "1khdbd5cmnn7qm6hcqg4md5wbq14fs6brrns8b3g18diqgqvpvpd")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (list (string-append "--with-netcdf=" (assoc-ref %build-inputs "netcdf"))))) + (inputs + (list netcdf)) + (native-inputs + (list pkg-config)) + (home-page "https://code.mpimet.mpg.de/projects/cdo") + (synopsis "Climate Data Operators") + (description "CDO is a collection of command line Operators to manipulate and analyse +Climate and NWP model Data. Supported data formats are GRIB 1/2, netCDF 3/4, +SERVICE, EXTRA and IEG. There are more than 600 operators available.") + (license license:bsd-3))) + (define-public memphis (package (name "memphis") -- 2.36.1