From unknown Sun Jun 22 08:03:25 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#74675] [PATCH 0/1] Possibly build hypre without doxygen and LaTeX doc Resent-From: Luca Cirrottola Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 Dec 2024 20:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74675 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74675@debbugs.gnu.org Cc: Luca Cirrottola X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17332570055892 (code B ref -1); Tue, 03 Dec 2024 20:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Dec 2024 20:16:45 +0000 Received: from localhost ([127.0.0.1]:33058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIZK8-0001Wy-RS for submit@debbugs.gnu.org; Tue, 03 Dec 2024 15:16:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:42266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIZK6-0001Wo-Ma for submit@debbugs.gnu.org; Tue, 03 Dec 2024 15:16:43 -0500 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 1tIZK5-000372-RC for guix-patches@gnu.org; Tue, 03 Dec 2024 15:16:42 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIZK3-000505-J8 for guix-patches@gnu.org; Tue, 03 Dec 2024 15:16:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=j3/ORAX7dyitCcJtXHZ+6R1KRA2fR00d3qvLbJJr18M=; b=lJIxZNX4EPB71IsqZb0xWz3EZocgNaO2LXETXvboaLU4rrWhLWIG2EXl jAdKnc0A6rPheBtPc7vlNn1N2va3Ao22vc0KX+/294dT4ZcD5YMNSl5S/ WbmItOXQtjxd+uPZLezxCgTCV8sVSV0pIZjlaouyv3M4jzGhWmcR6KMQW g=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=luca.cirrottola@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.12,206,1728943200"; d="scan'208";a="103339774" Received: from 167.152.65.81.rev.sfr.net (HELO canard..) ([81.65.152.167]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2024 21:16:35 +0100 From: Luca Cirrottola Date: Tue, 3 Dec 2024 21:16:18 +0100 Message-Id: <20241203201618.5533-1-luca.cirrottola@inria.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=192.134.164.104; envelope-from=luca.cirrottola@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, The hypre package builds its "doc" output by default, bringing texlive into the dependency graph of packages using hypre, and possibly breaking their compilation due to errors in building the hypre documentation (see bug 74672). I would like to also have the possibility to build hypre without doxygen and latex documentation. This patch is an attempt to solve my problem by splitting the package into two variants, one without documentation ("hypre-sans-doc") and one with ("hypre"). Also, a "hypre-openmpi-sans-doc" is added besides "hypre-openmpi". Thus, two new packages are introduced ("hypre-sans-doc" and "hypre-openmpi-sans-doc") without modifying the expected behaviour of the original "hypre" and "hypre-openmpi" packages. I would have loved to simply generate the "hypre-openmpi-sans-doc" package by modifying the "inherit" field of "hypre-openmpi", but I have not been able to do it with package transformation options. I would be grateful for any suggestion to reduce code redundancy in my patch, as well as for any better solution that could achieve the same objective (the possibility to build hypre without doc). Luca Cirrottola (1): Add a hypre-sans-doc package, make hypre inherit from it, and add a variant hypre-openmpi-sans-doc. gnu/packages/maths.scm | 131 ++++++++++++++++++++++++++--------------- 1 file changed, 85 insertions(+), 46 deletions(-) -- 2.34.1 From unknown Sun Jun 22 08:03:25 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#74675] [PATCH 1/1] Add a hypre-sans-doc package, make hypre inherit from it, and add a variant hypre-openmpi-sans-doc. References: <20241203201618.5533-1-luca.cirrottola@inria.fr> In-Reply-To: <20241203201618.5533-1-luca.cirrottola@inria.fr> Resent-From: Luca Cirrottola Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 Dec 2024 20:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74675 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74675@debbugs.gnu.org Cc: Luca Cirrottola Received: via spool by 74675-submit@debbugs.gnu.org id=B74675.17332572356670 (code B ref 74675); Tue, 03 Dec 2024 20:21:01 +0000 Received: (at 74675) by debbugs.gnu.org; 3 Dec 2024 20:20:35 +0000 Received: from localhost ([127.0.0.1]:33067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIZNq-0001jW-G8 for submit@debbugs.gnu.org; Tue, 03 Dec 2024 15:20:35 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:59228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIZNn-0001jD-LS for 74675@debbugs.gnu.org; Tue, 03 Dec 2024 15:20:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=A0ZJsTsO/nbtTQW79iDUq7wl6guFqJvM7qKHD/EK3w4=; b=csUk/zkAFKDUN6oltWQr5rorkazTU93UciD/MvDh10NB5Gf/h0D6IhgN p1qqXeHPAzHZFmTA/7hyF2ZOuQ9sQT72bpIQdLf+D581h2MyOW0r0wVNl 3mTFcsnM/hnRpS/9YIGxBhrx6kuHH/aUzKu2GWU0OiOqexS3k7/nHiLgp U=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=luca.cirrottola@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.12,206,1728943200"; d="scan'208";a="103339927" Received: from 167.152.65.81.rev.sfr.net (HELO canard..) ([81.65.152.167]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2024 21:20:26 +0100 From: Luca Cirrottola Date: Tue, 3 Dec 2024 21:20:13 +0100 Message-Id: <20241203202013.5739-1-luca.cirrottola@inria.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --- gnu/packages/maths.scm | 131 ++++++++++++++++++++++++++--------------- 1 file changed, 85 insertions(+), 46 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 893877a5e5..bbc307c286 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -7291,9 +7291,9 @@ (define-public xaos (home-page "https://xaos-project.github.io/") (license license:gpl2+))) -(define-public hypre +(define-public hypre-sans-doc (package - (name "hypre") + (name "hypre-sans-doc") (version "2.20.0") (source (origin @@ -7305,6 +7305,63 @@ (define-public hypre (sha256 (base32 "14iqjwg5sv1qjn7c2cfv0xxmn9rwamjrhh9hgs8fjbywcbvrkjdi")))) (build-system gnu-build-system) + (inputs + (list openblas)) + (arguments + (list #:modules `((srfi srfi-1) + ,@%default-gnu-modules) + #:configure-flags #~'("--enable-shared" + "--disable-fortran" + "--without-MPI" + "--with-openmp" + "--with-fei" + "--with-lapack" + "--with-blas") + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'chdir-src + (lambda _ + (chdir "src"))) + (replace 'configure + (lambda* (#:key build target configure-flags + #:allow-other-keys #:rest args) + (let* ((configure (assoc-ref %standard-phases 'configure))) + (apply configure + (append args + (list #:configure-flags + (cons (string-append "--host=" + (or target build)) + configure-flags))))))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "LD_LIBRARY_PATH" + (string-append (getcwd) "/hypre/lib")) + (setenv "PATH" + (string-append "." ":" (getenv "PATH"))) + (invoke "make" "check" "CHECKRUN=") + (for-each (lambda (filename) + (let ((size (stat:size (stat filename)))) + (when (positive? size) + (error (format #f + "~a size ~d; error indication~%" + filename size))))) + (find-files "test" ".*\\.err$")))))))) + (home-page "https://computing.llnl.gov/projects\ +/hypre-scalable-linear-solvers-multigrid-methods") + (synopsis "Library of solvers and preconditioners for linear equations") + (description + "HYPRE is a software library of high performance preconditioners and +solvers for the solution of large, sparse linear systems of equations. It +features multigrid solvers for both structured and unstructured grid +problems.") + (properties '((tunable? . #t))) + (license license:lgpl2.1))) + +(define-public hypre + (package + (inherit hypre-sans-doc) + (name "hypre") (outputs '("out" ;5.3 MiB of headers and libraries "doc")) ;12 MiB of documentation (native-inputs @@ -7352,57 +7409,18 @@ (define-public hypre texlive-wrapfig texlive-xcolor texlive-xypic)))) - (inputs - (list openblas)) (arguments - (list #:modules `((srfi srfi-1) - ,@%default-gnu-modules) - #:configure-flags #~'("--enable-shared" - "--disable-fortran" - "--without-MPI" - "--with-openmp" - "--with-fei" - "--with-lapack" - "--with-blas") - #:phases - #~(modify-phases %standard-phases - (add-before 'configure 'chdir-src - (lambda _ - (chdir "src"))) - (replace 'configure - (lambda* (#:key build target configure-flags - #:allow-other-keys #:rest args) - (let* ((configure (assoc-ref %standard-phases 'configure))) - (apply configure - (append args - (list #:configure-flags - (cons (string-append "--host=" - (or target build)) - configure-flags))))))) + (substitute-keyword-arguments (package-arguments hypre-sans-doc) + ((#:phases phases) + #~(modify-phases #$phases (add-after 'build 'build-docs (lambda _ (invoke "make" "-C" "docs"))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (setenv "LD_LIBRARY_PATH" - (string-append (getcwd) "/hypre/lib")) - (setenv "PATH" - (string-append "." ":" (getenv "PATH"))) - (invoke "make" "check" "CHECKRUN=") - (for-each (lambda (filename) - (let ((size (stat:size (stat filename)))) - (when (positive? size) - (error (format #f - "~a size ~d; error indication~%" - filename size))))) - (find-files "test" ".*\\.err$"))))) (add-after 'install 'install-docs (lambda* (#:key outputs #:allow-other-keys) ;; Custom install because docs/Makefile doesn't honor ${docdir}. (let* ((doc (assoc-ref outputs "doc")) - (docdir (string-append doc "/share/doc/hypre-" - #$version))) + (docdir (string-append doc "/share/doc/hypre"))) (with-directory-excursion "docs" (for-each (lambda (base) (install-file (string-append base @@ -7411,7 +7429,7 @@ (define-public hypre "-html") (string-append docdir "/" base))) - '("usr-manual" "ref-manual"))))))))) + '("usr-manual" "ref-manual")))))))))) (home-page "https://computing.llnl.gov/projects\ /hypre-scalable-linear-solvers-multigrid-methods") (synopsis "Library of solvers and preconditioners for linear equations") @@ -7444,6 +7462,27 @@ (define-public hypre-openmpi parallel computers. It features parallel multigrid solvers for both structured and unstructured grid problems."))) +(define-public hypre-openmpi-sans-doc + (package + (inherit hypre-sans-doc) + (name "hypre-openmpi-sans-doc") + (inputs (modify-inputs (package-inputs hypre-sans-doc) + (prepend openmpi))) + (arguments + (substitute-keyword-arguments (package-arguments hypre-sans-doc) + ((#:configure-flags flags) + #~`("--with-MPI" ,@(delete "--without-MPI" #$flags))) + ((#:phases phases) + #~(modify-phases #$phases + (add-before 'check 'mpi-setup + #$%openmpi-setup))))) + (synopsis "Parallel solvers and preconditioners for linear equations") + (description + "HYPRE is a software library of high performance preconditioners and +solvers for the solution of large, sparse linear systems of equations on +parallel computers. It features parallel multigrid solvers for both +structured and unstructured grid problems."))) + (define-public matio (package (name "matio") -- 2.34.1 From unknown Sun Jun 22 08:03:25 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#74675] [PATCH 0/1] Possibly build hypre without doxygen and LaTeX doc Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 26 Mar 2025 09:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74675 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Luca Cirrottola Cc: 74675@debbugs.gnu.org, Sharlatan Hellseher , Eric Bavier Received: via spool by 74675-submit@debbugs.gnu.org id=B74675.174298071528357 (code B ref 74675); Wed, 26 Mar 2025 09:19:02 +0000 Received: (at 74675) by debbugs.gnu.org; 26 Mar 2025 09:18:35 +0000 Received: from localhost ([127.0.0.1]:41362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1txMuA-0007NI-UR for submit@debbugs.gnu.org; Wed, 26 Mar 2025 05:18:35 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:51646) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1txMu8-0007N0-47 for 74675@debbugs.gnu.org; Wed, 26 Mar 2025 05:18:32 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 54660D28; Wed, 26 Mar 2025 10:18:25 +0100 (CET) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id UFo4wJZIChJJ; Wed, 26 Mar 2025 10:18:24 +0100 (CET) Received: from jurong (176-179-191-150.abo.bbox.fr [176.179.191.150]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DAFD8176; Wed, 26 Mar 2025 10:18:23 +0100 (CET) Date: Wed, 26 Mar 2025 10:18:22 +0100 From: Andreas Enge Message-ID: References: <20241203201618.5533-1-luca.cirrottola@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241203201618.5533-1-luca.cirrottola@inria.fr> X-Rspamd-Queue-Id: 54660D28 X-Spamd-Result: default: False [-5.60 / 15.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM(-3.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_CC(0.00)[debbugs.gnu.org,posteo.net,gmail.com] X-Rspamd-Action: no action X-Spamd-Bar: ----- X-Rspamd-Server: hera X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Luca, Am Tue, Dec 03, 2024 at 09:16:18PM +0100 schrieb Luca Cirrottola: > The hypre package builds its "doc" output by default, bringing texlive > into the dependency graph of packages using hypre, and possibly breaking > their compilation due to errors in building the hypre documentation (see > bug 74672). I would like to also have the possibility to build hypre > without doxygen and latex documentation. > > This patch is an attempt to solve my problem by splitting the package > into two variants, one without documentation ("hypre-sans-doc") and one > with ("hypre"). Also, a "hypre-openmpi-sans-doc" is added besides > "hypre-openmpi". I am sceptical of adding too many variants of packages, especially with and without documentation; it is not something we tend to do in Guix. If the size of the package is a problem, we could move the documentation to a separate output. Actually, I realise this is already the case! And I do not see the problem with texlive dependencies, as these are only native-inputs. So people using binary substitutes will not download or even see these dependencies. If documentation building is broken, we should fix it; as said in the other issue you cite, I cannot reproduce the problem, however. Andreas From unknown Sun Jun 22 08:03:25 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#74675] [PATCH 0/1] Possibly build hypre without doxygen and LaTeX doc Resent-From: Luca Cirrottola Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 26 Mar 2025 18:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74675 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andreas Enge Cc: 74675@debbugs.gnu.org, Sharlatan Hellseher , Eric Bavier Received: via spool by 74675-submit@debbugs.gnu.org id=B74675.174301313719671 (code B ref 74675); Wed, 26 Mar 2025 18:19:02 +0000 Received: (at 74675) by debbugs.gnu.org; 26 Mar 2025 18:18:57 +0000 Received: from localhost ([127.0.0.1]:44349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1txVL7-00057C-1E for submit@debbugs.gnu.org; Wed, 26 Mar 2025 14:18:57 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:21650) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1txVL3-00056k-3H for 74675@debbugs.gnu.org; Wed, 26 Mar 2025 14:18:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:message-id:in-reply-to:references: subject:mime-version:content-transfer-encoding; bh=rZw+RVzqQ5VDzhFGXHJBw5Lg6GXIbzKEXO8IQJVZFWE=; b=aAmC8uvBg2b37GVcfXWGrK890eVhqpXmU4U9ZLLoh30HoU08oqLRpAOE H8v+FmU1TqjNsba+aWJDiuaDvHH8/rb+SUDdDjYfz7OiRUCczbvAzLbx3 m7LlOI008VkQfLQt9tjuC0udY+jBVBHfA9lAn2E84VvPywCjXCdkhU/oV s=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=luca.cirrottola@inria.fr; spf=None smtp.helo=postmaster@zcs2-store1.inria.fr Received-SPF: Pass (mail2-relais-roc.national.inria.fr: domain of luca.cirrottola@inria.fr designates 128.93.142.3 as permitted sender) identity=mailfrom; client-ip=128.93.142.3; receiver=mail2-relais-roc.national.inria.fr; envelope-from="luca.cirrottola@inria.fr"; x-sender="luca.cirrottola@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 include:mailout.safebrands.com a:basic-mail.safebrands.com a:basic-mail01.safebrands.com a:basic-mail02.safebrands.com ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:128.93.162.3 ip4:128.93.162.88 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@zcs2-store1.inria.fr) identity=helo; client-ip=128.93.142.3; receiver=mail2-relais-roc.national.inria.fr; envelope-from="luca.cirrottola@inria.fr"; x-sender="postmaster@zcs2-store1.inria.fr"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.14,278,1736809200"; d="scan'208";a="214939159" X-MGA-submission: MDFFn0F89IT9gdMMljf4rMKHZMIh42vye+xhcv9NhbZWRSQ4fw0PsTulQGVY7Iov6lclbbj52knNcPehwkV4O3AuoWZTkJ/8ROiSglnRarwtcTX+5SuJbez/TpP8ZHwCuxrboF0IcYcJFciDTWHcRXg1fnR5d/i4CKK5vUdigQOnEw== Received: from zcs2-store1.inria.fr ([128.93.142.3]) by mail2-relais-roc.national.inria.fr with ESMTP; 26 Mar 2025 19:18:46 +0100 Date: Wed, 26 Mar 2025 19:18:46 +0100 (CET) From: Luca Cirrottola Message-ID: <1641840793.57981.1743013125999.JavaMail.zimbra@inria.fr> In-Reply-To: References: <20241203201618.5533-1-luca.cirrottola@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Originating-IP: [193.50.110.93] X-Mailer: Zimbra 10.1.6_GA_4744 (ZimbraWebClient - FF136 (Linux)/10.1.6_GA_4744) Thread-Topic: Possibly build hypre without doxygen and LaTeX doc Thread-Index: SXtrfh/ZX95VNyIxKyPnNRuoMQT9pg== X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Andreas, The problem arose because some of my software ecosystem lives in a time-machine where some variants and package-input-rewriting goes on, so substitutes are not always available and a lot of recompilation goes on sometimes. I understand this is not the mainstream usage and that we should try to rely more on substitutes, instead of skipping some compilation. My bad. Feel free to close this issue, since we are also discussing how to fix the package (the right way) in the other issue (74672). Thanks, Luca From unknown Sun Jun 22 08:03:25 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Luca Cirrottola Subject: bug#74675: closed (Re: [PATCH 0/1] Possibly build hypre without doxygen and LaTeX doc) Message-ID: References: <20241203201618.5533-1-luca.cirrottola@inria.fr> X-Gnu-PR-Message: they-closed 74675 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 74675@debbugs.gnu.org Date: Wed, 26 Mar 2025 20:54:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1743022442-22320-1" This is a multi-part message in MIME format... ------------=_1743022442-22320-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #74675: [PATCH 0/1] Possibly build hypre without doxygen and LaTeX doc which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 74675@debbugs.gnu.org. --=20 74675: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74675 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1743022442-22320-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 74675-done) by debbugs.gnu.org; 26 Mar 2025 20:53:10 +0000 Received: from localhost ([127.0.0.1]:44541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1txXkM-0005lt-2h for submit@debbugs.gnu.org; Wed, 26 Mar 2025 16:53:10 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:44472) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1txXkH-0005l2-Qd for 74675-done@debbugs.gnu.org; Wed, 26 Mar 2025 16:53:06 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 020406C9; Wed, 26 Mar 2025 21:52:58 +0100 (CET) Authentication-Results: hera.aquilenet.fr; none X-Virus-Scanned: Debian amavis at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavis, port 10024) with ESMTP id aAIN8h9WDA32; Wed, 26 Mar 2025 21:52:57 +0100 (CET) Received: from jurong (176-179-191-150.abo.bbox.fr [176.179.191.150]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 77A7C65B; Wed, 26 Mar 2025 21:52:55 +0100 (CET) Date: Wed, 26 Mar 2025 21:52:53 +0100 From: Andreas Enge To: Luca Cirrottola Subject: Re: [PATCH 0/1] Possibly build hypre without doxygen and LaTeX doc Message-ID: References: <20241203201618.5533-1-luca.cirrottola@inria.fr> <1641840793.57981.1743013125999.JavaMail.zimbra@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1641840793.57981.1743013125999.JavaMail.zimbra@inria.fr> X-Rspamd-Queue-Id: 020406C9 X-Spamd-Result: default: False [-5.60 / 15.00]; NEURAL_HAM(-3.00)[-1.000]; BAYES_HAM(-3.00)[99.99%]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_CC(0.00)[debbugs.gnu.org,posteo.net,gmail.com] X-Rspamd-Action: no action X-Spamd-Bar: ----- X-Rspamd-Server: hera X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74675-done Cc: 74675-done@debbugs.gnu.org, Sharlatan Hellseher , Eric Bavier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi again, Am Wed, Mar 26, 2025 at 07:18:46PM +0100 schrieb Luca Cirrottola: > The problem arose because some of my software ecosystem lives in a time-machine where some variants and package-input-rewriting goes on, so substitutes are not always available and a lot of recompilation goes on sometimes. I understand this is not the mainstream usage and that we should try to rely more on substitutes, instead of skipping some compilation. My bad. > Feel free to close this issue, since we are also discussing how to fix the package (the right way) in the other issue (74672). okay, so I am closing this. As said in the other issue, I have not really understood the problem, so if you could give more detailed explanations there, we will get closer to a solution. Andreas ------------=_1743022442-22320-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Dec 2024 20:16:45 +0000 Received: from localhost ([127.0.0.1]:33058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIZK8-0001Wy-RS for submit@debbugs.gnu.org; Tue, 03 Dec 2024 15:16:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:42266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIZK6-0001Wo-Ma for submit@debbugs.gnu.org; Tue, 03 Dec 2024 15:16:43 -0500 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 1tIZK5-000372-RC for guix-patches@gnu.org; Tue, 03 Dec 2024 15:16:42 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIZK3-000505-J8 for guix-patches@gnu.org; Tue, 03 Dec 2024 15:16:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=j3/ORAX7dyitCcJtXHZ+6R1KRA2fR00d3qvLbJJr18M=; b=lJIxZNX4EPB71IsqZb0xWz3EZocgNaO2LXETXvboaLU4rrWhLWIG2EXl jAdKnc0A6rPheBtPc7vlNn1N2va3Ao22vc0KX+/294dT4ZcD5YMNSl5S/ WbmItOXQtjxd+uPZLezxCgTCV8sVSV0pIZjlaouyv3M4jzGhWmcR6KMQW g=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=luca.cirrottola@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.12,206,1728943200"; d="scan'208";a="103339774" Received: from 167.152.65.81.rev.sfr.net (HELO canard..) ([81.65.152.167]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2024 21:16:35 +0100 From: Luca Cirrottola To: guix-patches@gnu.org Subject: [PATCH 0/1] Possibly build hypre without doxygen and LaTeX doc Date: Tue, 3 Dec 2024 21:16:18 +0100 Message-Id: <20241203201618.5533-1-luca.cirrottola@inria.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=192.134.164.104; envelope-from=luca.cirrottola@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Luca Cirrottola X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello, The hypre package builds its "doc" output by default, bringing texlive into the dependency graph of packages using hypre, and possibly breaking their compilation due to errors in building the hypre documentation (see bug 74672). I would like to also have the possibility to build hypre without doxygen and latex documentation. This patch is an attempt to solve my problem by splitting the package into two variants, one without documentation ("hypre-sans-doc") and one with ("hypre"). Also, a "hypre-openmpi-sans-doc" is added besides "hypre-openmpi". Thus, two new packages are introduced ("hypre-sans-doc" and "hypre-openmpi-sans-doc") without modifying the expected behaviour of the original "hypre" and "hypre-openmpi" packages. I would have loved to simply generate the "hypre-openmpi-sans-doc" package by modifying the "inherit" field of "hypre-openmpi", but I have not been able to do it with package transformation options. I would be grateful for any suggestion to reduce code redundancy in my patch, as well as for any better solution that could achieve the same objective (the possibility to build hypre without doc). Luca Cirrottola (1): Add a hypre-sans-doc package, make hypre inherit from it, and add a variant hypre-openmpi-sans-doc. gnu/packages/maths.scm | 131 ++++++++++++++++++++++++++--------------- 1 file changed, 85 insertions(+), 46 deletions(-) -- 2.34.1 ------------=_1743022442-22320-1--