guix-devel
[Top][All Lists]
Advanced

[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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]