From: Marius Bakke <mbakke@fastmail.com>
To: Leo Famulari <leo@famulari.name>, guix-devel@gnu.org
Subject: Re: [PATCH 2/2] gnu: tcsh: Use modify-phases.
Date: Fri, 24 Feb 2017 11:46:27 +0100 [thread overview]
Message-ID: <8760jzhnng.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <4c58555031f1a1c287bed3cf4a06054075498017.1487923947.git.leo@famulari.name>
[-- Attachment #1: Type: text/plain, Size: 3357 bytes --]
Hi Leo, thanks for this update!
The patch looks good, but please add a #t at the end of the
'patch-test-scripts' and 'post-install' phases with the second commit.
Leo Famulari <leo@famulari.name> writes:
> * gnu/packages/shells.scm (tcsh)[arguments]: Use modify-phases.
> ---
> gnu/packages/shells.scm | 48 +++++++++++++++++++++++-------------------------
> 1 file changed, 23 insertions(+), 25 deletions(-)
>
> diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
> index d9e0f93a1..ef5ed8040 100644
> --- a/gnu/packages/shells.scm
> +++ b/gnu/packages/shells.scm
> @@ -240,32 +240,30 @@ written by Paul Haahr and Byron Rakitzis.")
> `(("ncurses" ,ncurses)))
> (arguments
> `(#:phases
> - (alist-cons-before
> - 'check 'patch-test-scripts
> - (lambda _
> - ;; Take care of pwd
> - (substitute* '("tests/commands.at" "tests/variables.at")
> - (("/bin/pwd") (which "pwd")))
> - ;; The .at files create shell scripts without shebangs. Erk.
> - (substitute* "tests/commands.at"
> - (("./output.sh") "/bin/sh output.sh"))
> - (substitute* "tests/syntax.at"
> - (("; other_script.csh") "; /bin/sh other_script.csh"))
> - ;; Now, let's generate the test suite and patch it
> - (system* "make" "tests/testsuite")
> + (modify-phases %standard-phases
> + (add-before 'check 'patch-test-scripts
> + (lambda _
> + ;; Take care of pwd
> + (substitute* '("tests/commands.at" "tests/variables.at")
> + (("/bin/pwd") (which "pwd")))
> + ;; The .at files create shell scripts without shebangs. Erk.
> + (substitute* "tests/commands.at"
> + (("./output.sh") "/bin/sh output.sh"))
> + (substitute* "tests/syntax.at"
> + (("; other_script.csh") "; /bin/sh other_script.csh"))
> + ;; Now, let's generate the test suite and patch it
> + (system* "make" "tests/testsuite")
>
> - ;; This file is ISO-8859-1 encoded.
> - (with-fluids ((%default-port-encoding #f))
> - (substitute* "tests/testsuite"
> - (("/bin/sh") (which "sh")))))
> - (alist-cons-after
> - 'install 'post-install
> - (lambda* (#:key inputs outputs #:allow-other-keys)
> - (let* ((out (assoc-ref %outputs "out"))
> - (bin (string-append out "/bin")))
> - (with-directory-excursion bin
> - (symlink "tcsh" "csh"))))
> - %standard-phases))))
> + ;; This file is ISO-8859-1 encoded.
> + (with-fluids ((%default-port-encoding #f))
> + (substitute* "tests/testsuite"
> + (("/bin/sh") (which "sh"))))))
> + (add-after 'install 'post-install
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + (let* ((out (assoc-ref %outputs "out"))
> + (bin (string-append out "/bin")))
> + (with-directory-excursion bin
> + (symlink "tcsh" "csh"))))))))
> (home-page "http://www.tcsh.org/")
> (synopsis "Unix shell based on csh")
> (description
> --
> 2.11.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2017-02-24 10:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 8:16 [PATCH 0/2] Tcsh update for core-updates Leo Famulari
2017-02-24 8:16 ` [PATCH 1/2] gnu: tcsh: Update to 6.20.00 Leo Famulari
2017-02-24 8:16 ` [PATCH 2/2] gnu: tcsh: Use modify-phases Leo Famulari
2017-02-24 10:46 ` Marius Bakke [this message]
2017-02-24 9:40 ` [PATCH 0/2] Tcsh update for core-updates ng0
2017-02-24 16:55 ` Leo Famulari
2017-02-24 17:28 ` ng0
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760jzhnng.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
--to=mbakke@fastmail.com \
--cc=guix-devel@gnu.org \
--cc=leo@famulari.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.