all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Eric Bavier <ericbavier@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [Patch] Remove unused lambda arguments and prefer separate phases over augmented phases.
Date: Mon, 31 Mar 2014 14:06:55 +0200	[thread overview]
Message-ID: <87lhvqh8rk.fsf@gnu.org> (raw)
In-Reply-To: <87ob0n6z3p.fsf@gmail.com> (Eric Bavier's message of "Sun, 30 Mar 2014 18:33:30 -0500")

Eric Bavier <ericbavier@gmail.com> skribis:

> My previous patch raised the question about whether it's wise to use
> something like::
>
> #:phases
> (alist-replace
>  'foo
>  (lambda* (#:key #:allow-other-keys #:rest args)
>    (let ((foo (assoc-ref 'foo %standard-phases)))
>     (frobnicate)
>     (apply foo args))))
>
> in recipe arguments, or to just add another phase before the foo phase.
>
> There was some concensus that adding another phase before or after was
> easier to understand (and less verbose), so I went ahead and tried to
> reformulate the package recipes that did such things.  Along the way I
> "cleaned up" some other things, mostly in the package arguments.
>
> I tried not to change anything semantically in the packate definitions,
> but I did verify that all packages build with these changes.

Nice, thanks for the taking the time to do that.

Mark and Andreas were fine with the idea, so OK to push, given that
you’ve already tested it.

> From d92b819c12b873fc3b99ec6771049a6bc4badbac Mon Sep 17 00:00:00 2001
> From: Eric Bavier <bavier@member.fsf.org>
> Date: Sun, 30 Mar 2014 18:09:10 -0500
> Subject: [PATCH] gnu: Remove unused lambda arguments and prefer separate
>  phases over augmented phases.
>
> * gnu/packages/compression.scm (sharutils) [argumets]: Remove unused

“arguments”

> * gnu/packages/gl.scm (mesa) [arguments]: Same
> * gnu/packages/fltk.scm [arguments]: Same.  Substitute const check
>   phase with #:tests? #f.  Add pre-configure phase.
> * gnu/packages/ghostscript.scm (ghostscript) [arguments]: Put makefile
>   patches in separate phase.  Put so steps oi separate phases.

Typo.

> * gnu/packages/gnupg.scm (gnupg) [arguments]: Put patch in
>   pre-configure phase.
> (pius) [arguments]: Delete const #t configure and build phases.
> (signing-party) [arguments]: Factor patches into post-unpack phase.
> (paperkey) [arguments]: Remove unused lambda args.  Factor out patches
> into pre-check phase.

This (and a couple of others below) should be indented, like those
above.

Thanks!

Ludo’.

      reply	other threads:[~2014-03-31 12:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-30 23:33 [Patch] Remove unused lambda arguments and prefer separate phases over augmented phases Eric Bavier
2014-03-31 12:06 ` Ludovic Courtès [this message]

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=87lhvqh8rk.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=ericbavier@gmail.com \
    --cc=guix-devel@gnu.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.