diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2026-04-02 21:12:07 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-04-09 00:35:42 +0200 |
| commit | 4c88e99b03dcb0cecd748c6debc4d818386c2057 (patch) | |
| tree | fb5071c9894fbc9219764af91cb90f6d69f32b8f /gnu/packages | |
| parent | ba210393a1c00b99384fb080d331eb03a6ecac51 (diff) | |
gnu: prrte: Update to 4.1.0 and build from a Git checkout.
* gnu/packages/parallel.scm (prrte): Update to 4.1.0.
[source]: Switch to ‘git-fetch’.
[arguments]: Rewrite ‘remove-absolute-references’ phase to modify build
machinery. Replace ‘bootstrap’ phase.
[native-inputs]: Add autoconf, automake, libtool, flex, and python.
[outputs]: Remove since HTML documentation is not built.
Change-Id: I6d6b67d4b86e6490bd930f6b8c488e1a76b24c24
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/parallel.scm | 63 |
1 files changed, 44 insertions, 19 deletions
diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index d5472511e31..2edd4efe36d 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm | |||
| @@ -785,15 +785,23 @@ commonly needed services in distributed and parallel computing systems.") | |||
| 785 | (define-public prrte | 785 | (define-public prrte |
| 786 | (package | 786 | (package |
| 787 | (name "prrte") | 787 | (name "prrte") |
| 788 | (version "4.0.0") | 788 | (version "4.1.0") |
| 789 | (source (origin | 789 | (source (origin |
| 790 | (method url-fetch) | 790 | (method git-fetch) |
| 791 | (uri (string-append | 791 | (uri (git-reference |
| 792 | "https://github.com/openpmix/prrte/releases/download/v" | 792 | (url "https://github.com/openpmix/prrte") |
| 793 | version "/prrte-" version ".tar.bz2")) | 793 | (commit (string-append "v" version)) |
| 794 | (sha256 | 794 | (recursive? #t))) ;for the M4 macros in 'config/oac' |
| 795 | (base32 | 795 | (file-name (git-file-name name version)) |
| 796 | "1r2dxnv3spmfd3l5is8cly2mmmc98xgm9wvvih99j35sw1hwjbiw")))) | 796 | (sha256 |
| 797 | (base32 | ||
| 798 | "0f40hpppvfcc2ckryb1v6wckjqw6j0480dmixrf0ip69mcb9vv8l")) | ||
| 799 | (modules '((guix build utils))) | ||
| 800 | (snippet | ||
| 801 | ;; Prevent 'autogen.pl' from running 'git submodule'. | ||
| 802 | #~(substitute* "autogen.pl" | ||
| 803 | (("-f \".gitmodules\"") | ||
| 804 | "0"))))) | ||
| 797 | (build-system gnu-build-system) | 805 | (build-system gnu-build-system) |
| 798 | (arguments | 806 | (arguments |
| 799 | (list #:configure-flags | 807 | (list #:configure-flags |
| @@ -805,11 +813,26 @@ commonly needed services in distributed and parallel computing systems.") | |||
| 805 | (lambda _ | 813 | (lambda _ |
| 806 | ;; Remove references to GCC, the shell, etc. (shown by | 814 | ;; Remove references to GCC, the shell, etc. (shown by |
| 807 | ;; 'prte_info') to reduce the closure size. | 815 | ;; 'prte_info') to reduce the closure size. |
| 808 | (substitute* "src/tools/prte_info/param.c" | 816 | (substitute* "config/prte_setup_cc.m4" |
| 809 | (("_ABSOLUTE") | 817 | (("AC_SUBST\\(PRTE_CC_ABSOLUTE\\)") |
| 810 | "") | 818 | (string-append |
| 811 | (("PRTE_CONFIGURE_CLI") | 819 | "PRTE_CC_ABSOLUTE=\"$(basename $PRTE_CC_ABSOLUTE)\"\n" |
| 812 | "\"[elided to reduce closure]\"")))) | 820 | "AC_SUBST([PRTE_CC_ABSOLUTE])\n"))) |
| 821 | (substitute* "configure.ac" | ||
| 822 | (("PRTE_CAPTURE_CONFIGURE_CLI\\(\\[PRTE_CONFIGURE_CLI\\]\\)" | ||
| 823 | all) | ||
| 824 | (string-append | ||
| 825 | "dnl " all "\n" | ||
| 826 | "PRTE_CONFIGURE_CLI=\"[elided to reduce closure]\"\n" | ||
| 827 | "AC_SUBST([PRTE_CONFIGURE_CLI])\n" | ||
| 828 | "AC_DEFINE_UNQUOTED([PRTE_CONFIGURE_CLI]," | ||
| 829 | " [\"$PRTE_CONFIGURE_CLI\"]," | ||
| 830 | " [Capture the configure cmd line])\n"))))) | ||
| 831 | (replace 'bootstrap | ||
| 832 | (lambda _ | ||
| 833 | (for-each patch-shebang | ||
| 834 | (cons "autogen.pl" (find-files "config"))) | ||
| 835 | (invoke "./autogen.pl"))) | ||
| 813 | (add-after 'unpack 'patch-prted-reference | 836 | (add-after 'unpack 'patch-prted-reference |
| 814 | (lambda _ | 837 | (lambda _ |
| 815 | ;; Record the absolute file name of 'prted' instead of | 838 | ;; Record the absolute file name of 'prted' instead of |
| @@ -833,12 +856,14 @@ commonly needed services in distributed and parallel computing systems.") | |||
| 833 | `(,hwloc "lib") | 856 | `(,hwloc "lib") |
| 834 | openpmix | 857 | openpmix |
| 835 | libnl)) | 858 | libnl)) |
| 836 | (native-inputs (list pkg-config perl)) | 859 | (native-inputs |
| 837 | (outputs '("out" | 860 | (list autoconf |
| 838 | 861 | automake | |
| 839 | ;; Move ~5 MiB of HTML docs (including CSS, JS, and fonts!) to a | 862 | flex |
| 840 | ;; separate output. | 863 | libtool |
| 841 | "doc")) | 864 | perl |
| 865 | pkg-config | ||
| 866 | python)) ;for 'prte-convert-help.py' | ||
| 842 | (synopsis "PMIx Reference RunTime Environment (PRRTE)") | 867 | (synopsis "PMIx Reference RunTime Environment (PRRTE)") |
| 843 | (description | 868 | (description |
| 844 | "The PMIx Reference RunTime Environment is a runtime environment | 869 | "The PMIx Reference RunTime Environment is a runtime environment |
