From: Eric Bavier <ericbavier@gmail.com>
To: Mark H Weaver <mhw@netris.org>
Cc: guix-devel@gnu.org
Subject: Re: Patches for midnight commander
Date: Wed, 26 Mar 2014 09:20:34 -0500 [thread overview]
Message-ID: <87d2h9ujm5.fsf@gmail.com> (raw)
In-Reply-To: <87ior1k9xo.fsf@yeeloong.lan> (Mark H. Weaver's message of "Tue, 25 Mar 2014 21:47:31 -0400")
Mark H Weaver <mhw@netris.org> writes:
> Eric Bavier <ericbavier@gmail.com> writes:
>
>> + #:phases
>> + (alist-replace
>> + 'configure
>> + (lambda* (#:key #:allow-other-keys #:rest args)
>> + (let ((configure (assoc-ref %standard-phases 'configure)))
>> + (substitute* "configure"
>> + (("/usr/bin/file") (which "file")))
>> + (apply configure args)))
>> + %standard-phases)))
>
> The complex 'lambda*' above could be replaced by "lambda args".
> However:
>
> Instead of replacing the 'configure' phase with a new one that ends by
> calling the standard 'configure' phase, why not just add a new phase
> before 'configure'? Something like this (untested):
>
> #:phases (alist-cons-before
> 'configure 'patch-configure
> (lambda _
> (substitute* "configure"
> (("/usr/bin/file") (which "file"))))
> %standard-phases)
I like this much better. I modelled my initial implementation off what
several other package definitions do. I might revisit those and propose
some patches.
--
`~Eric
next prev parent reply other threads:[~2014-03-26 14:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 21:09 Patches for midnight commander Eric Bavier
2014-03-25 22:41 ` Ludovic Courtès
2014-03-26 1:51 ` Mark H Weaver
2014-03-26 13:46 ` Ludovic Courtès
2014-03-26 1:47 ` Mark H Weaver
2014-03-26 14:20 ` Eric Bavier [this message]
2014-03-26 14:53 ` Andreas Enge
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=87d2h9ujm5.fsf@gmail.com \
--to=ericbavier@gmail.com \
--cc=guix-devel@gnu.org \
--cc=mhw@netris.org \
/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.