[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/22] gnu: parallel: Use full paths for executables.
From: |
Leo Famulari |
Subject: |
Re: [PATCH 01/22] gnu: parallel: Use full paths for executables. |
Date: |
Thu, 28 Jul 2016 18:31:14 -0400 |
User-agent: |
Mutt/1.6.0 (2016-04-01) |
On Wed, Jul 27, 2016 at 10:54:02PM +1000, Ben Woodcroft wrote:
> * gnu/packages/parallel.scm (parallel)[inputs]: Add procps.
> [arguments]: New field.
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (add-after 'unpack 'patch-bin-sh
> + (lambda _
> + (for-each
> + (lambda (file)
> + (substitute* file
> + ;; Patch hard coded '/bin/sh' in the lin ending in:
> + ;; $Global::shell = $ENV{'PARALLEL_SHELL'} ||
> + ;; parent_shell($$) || $ENV{'SHELL'} || "/bin/sh";
> + (("/bin/sh\\\";\n$") (string-append (which "sh") "\";\n"))
> + ;; Patch call to 'ps' and 'perl' commands.
> + ((" ps ") (string-append " " (which "ps") " "))
> + ((" perl -") (string-append " " (which "perl") " -"))))
> + (list "src/parallel" "src/sem"))))
> + (add-after 'install 'post-install-test
> + (lambda* (#:key outputs #:allow-other-keys)
> + (zero? (system* (string-append
> + (assoc-ref outputs "out") "/bin/parallel")
> + "echo"
> + ":::" "1" "2" "3")))))))
Do we need the 'post-install-test' phase, or was it left in by accident after
debugging?
- [PATCH 15/22] gnu: Add bpp-seq., (continued)
- [PATCH 15/22] gnu: Add bpp-seq., Ben Woodcroft, 2016/07/27
- [PATCH 16/22] gnu: Add bpp-phyl., Ben Woodcroft, 2016/07/27
- [PATCH 17/22] gnu: Add bpp-popgen., Ben Woodcroft, 2016/07/27
- [PATCH 18/22] gnu: Add bppsuite., Ben Woodcroft, 2016/07/27
- [PATCH 19/22] gnu: Add exonerate., Ben Woodcroft, 2016/07/27
- [PATCH 20/22] gnu: Add prank., Ben Woodcroft, 2016/07/27
- [PATCH 21/22] gnu: Add raxml., Ben Woodcroft, 2016/07/27
- [PATCH 22/22] gnu: Add roary., Ben Woodcroft, 2016/07/27
- Re: [PATCH 01/22] gnu: parallel: Use full paths for executables.,
Leo Famulari <=
- Re: PATCH [0/22]: Add roary., Ludovic Courtès, 2016/07/31