From patchwork Thu Mar 28 14:17:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 62332 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 9823F27BBE2; Thu, 28 Mar 2024 14:21:30 +0000 (GMT) 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,WEIRD_PORT 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 E114A27BBE9 for ; Thu, 28 Mar 2024 14:21:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpqcq-0007Pq-MA; Thu, 28 Mar 2024 10:21: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 1rpqco-0007PN-Pg for guix-patches@gnu.org; Thu, 28 Mar 2024 10:21:02 -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 1rpqco-0007ay-Gu for guix-patches@gnu.org; Thu, 28 Mar 2024 10:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpqco-0005B7-Qo for guix-patches@gnu.org; Thu, 28 Mar 2024 10:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70056] [RFC PATCH] draft: gnu: Add mfem. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Mar 2024 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70056 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70056@debbugs.gnu.org Cc: "Paul A. Patience" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171163562719719 (code B ref -1); Thu, 28 Mar 2024 14:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Mar 2024 14:20:27 +0000 Received: from localhost ([127.0.0.1]:40879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpqcE-00057u-JB for submit@debbugs.gnu.org; Thu, 28 Mar 2024 10:20:27 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45922) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpqcB-000578-P8 for submit@debbugs.gnu.org; Thu, 28 Mar 2024 10:20:25 -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 1rpqc1-0007Ii-Aa for guix-patches@gnu.org; Thu, 28 Mar 2024 10:20:15 -0400 Received: from mail-4022.proton.ch ([185.70.40.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpqbw-0007HK-Aw for guix-patches@gnu.org; Thu, 28 Mar 2024 10:20:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail3; t=1711635597; x=1711894797; bh=MZ9Jo0Gl+rmJ72HTCtCfkYe3fxSnX8RlGjNSaddl7TI=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=nomtVW0l10a4ZF0qPR/GiGqN7NGJk9wsCm5nBu5VjJLjh+FsjR0d4XAcj8XXg+7E3 lMnEivqKJ1nz+l2uhhgHyDkqPqvQMBi/kPtCX9HSOewRfS2gtS6Lgr71gLYLBJpG9y XVWPoNvrST8Ximncc1uhYX3RgqpJ3lYkwfsz6l9LG6oQvQs7gE11nmMjL3P792GIQB RdmGcnMBbZlgQZxP/esQqfshgC0kP8RbUHdiGJ7ecVgTsI7s6F1aZvT167YX+88v6k uCdLLGqiCa6Z5T2T5vwlXpxiKRWBV20agXkg+uWOxxQxOzBrG3Fu2Iae0Zhii0+U51 AFeQRXGPnWb/w== Date: Thu, 28 Mar 2024 14:17:39 +0000 From: "Paul A. Patience" Message-ID: Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.22; envelope-from=paul@apatience.com; helo=mail-4022.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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/maths.scm (mfem): New variable. Change-Id: Ida81f2b081a016e91426b68437909653020976f5 --- Hi, I'm trying to package MFEM, but I get the following error while building: --8<---------------cut here---------------start------------->8--- The following derivations will be built: /gnu/store/ibv1qjm24b2z4qsfhsw7q4izalcbb7rd-mfem-4.6.drv /gnu/store/l0df6d28w16dhnnpcr1qg26xvpmyrkqa-mfem-4.6-checkout.drv building /gnu/store/l0df6d28w16dhnnpcr1qg26xvpmyrkqa-mfem-4.6-checkout.drv... Initialized empty Git repository in /gnu/store/dc5fx7xfg67fsvl5brdxnbgkirirqxd0-mfem-4.6-checkout/.git/ From https://github.com/mfem/mfem * tag v4.6 -> FETCH_HEAD warning: unable to access '//.config/git/ignore': Permission denied warning: unable to access '//.config/git/attributes': Permission denied warning: unable to access '//.config/git/ignore': Permission denied Note: switching to 'FETCH_HEAD'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 69fbae7 Merge pull request #3841 from mfem/mfem-4.6-dev suspicious ownership or permission on `/gnu/store/dc5fx7xfg67fsvl5brdxnbgkirirqxd0-mfem-4.6-checkout'; rejecting this build output build of /gnu/store/l0df6d28w16dhnnpcr1qg26xvpmyrkqa-mfem-4.6-checkout.drv failed View build log at '/var/log/guix/drvs/l0/df6d28w16dhnnpcr1qg26xvpmyrkqa-mfem-4.6-checkout.drv.gz'. cannot build derivation `/gnu/store/ibv1qjm24b2z4qsfhsw7q4izalcbb7rd-mfem-4.6.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/ibv1qjm24b2z4qsfhsw7q4izalcbb7rd-mfem-4.6.drv' failed --8<---------------cut here---------------end--------------->8--- Basically it complains of suspicious ownership or permission. I looked at the permissions of the contents of the repository when cloning it manually, and nothing seems to be world-writable, as nix/libstore/build.cc:2373 seems to be trying to protect against. Regarding the Git warning at the top, I looked in the repository for any references to Git attributes and ignore files, but did not find any. I suspect it is looking for the .config directory in $HOME, but the variable is unset, of course. What's more, I tried with url-fetch, and it also results in suspicious ownership or permission. I'm at a loss as to what to do. Can someone give me a hand? Thanks, Paul gnu/packages/maths.scm | 48 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) base-commit: fb9549164520ad993c2fbbaedc899844d57baabc diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1b4d325649..5e81225947 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -151,6 +151,7 @@ (define-module (gnu packages maths) #:use-module (gnu packages xorg) #:use-module (gnu packages gl) #:use-module (gnu packages imagemagick) + #:use-module (gnu packages libunwind) #:use-module (gnu packages m4) #:use-module (gnu packages mpi) #:use-module (gnu packages multiprecision) @@ -6890,6 +6891,53 @@ (define-public dealii-openmpi (delete 'unset-cpath))))) (synopsis "Finite element library (with MPI support)"))) +(define-public mfem + (package + (name "mfem") + (version "4.6") + (source + (origin + ;; (method url-fetch) + ;; (uri (string-append "https://github.com/mfem/mfem/archive/refs/tags/v" + ;; version ".tar.gz")) + ;; (file-name (string-append name "-" version ".tar.gz")) + (method git-fetch) + (uri (git-reference + (url "https://github.com/mfem/mfem") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0m57j5kd7glc8lfp5bdmmx4az4fs6lkqjwd970w4fx8gylxff3n9")))) + (build-system cmake-build-system) + (native-inputs + (list graphviz doxygen perl)) ; documentation + (inputs + (list gfortran + gnutls + lapack + libunwind + metis + mpfr + netcdf + suitesparse-amd + suitesparse-btf + suitesparse-camd + suitesparse-ccolamd + suitesparse-cholmod + suitesparse-colamd + suitesparse-config + suitesparse-klu + suitesparse-umfpack + sundials + zlib)) + (home-page "https://mfem.org/") + (synopsis "Finite element library") + (description "MFEM is a modular parallel C++ library for finite element +methods. Its goal is to enable high-performance scalable finite element +discretization research and application development on a wide variety of +platforms, ranging from laptops to supercomputers.") + (license license:bsd-3))) + (define-public flann (package (name "flann")