all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Ben Woodcroft <b.woodcroft@uq.edu.au>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Update mafft to 7.245.
Date: Thu, 17 Dec 2015 23:29:47 +0100	[thread overview]
Message-ID: <87poy4lndw.fsf@elephly.net> (raw)
In-Reply-To: <567314B7.7070605@uq.edu.au>


Ben Woodcroft <b.woodcroft@uq.edu.au> writes:

> On 17/12/15 22:47, Ricardo Wurmus wrote:
>> Ben Woodcroft <b.woodcroft@uq.edu.au> writes:
>>
>>>> What do you think?
>>> I think you are quite valiant. As I say, I cannot be confident in my
>>> testing (even those in the readme). The diff looked mostly fine by eye,
>>> but there was some issues near the end which mangled things somewhat
>> What was mangled?
> Original:
>
> tmpawk=`which nawk 2>/dev/null | awk '{print $1}'`
> if [ -x "$tmpawk" ]; then
>          prog="$tmpawk"
> fi
>
> tmpawk=`which gawk 2>/dev/null | awk '{print $1}'`
> if [ -x "$tmpawk" ]; then
>          prog="$tmpawk"
> fi
>
>
> After your patch:
>
> tmp/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk=`which 
> n/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk 
> 2>/dev/null | /gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/aw
> if [ -x 
> "$tmp/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk" ]; then
> prog="$tmp/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk"
> fi
>
> tmp/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk=`which 
> g/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk 
> 2>/dev/null | /gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/aw
> if [ -x 
> "$tmp/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk" ]; then
> prog="$tmp/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk"
> fi

Oh, yes, that’s terrible.  Thanks for catching this!  (I don’t see why
my regex would do that, but I’m too tired to check this now.)

> The most recent patch:
>
> tmpawk=`which nawk 2>/dev/null | 
> /gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk '{print $1}'`
> if [ -x "$tmpawk" ]; then
>          prog="$tmpawk"
> fi
>
> tmpawk=`which gawk 2>/dev/null | 
> /gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin/awk '{print $1}'`
> if [ -x "$tmpawk" ]; then
>          prog="$tmpawk"
> fi

Nice!

>> Other than that the patch does look fine.  If you confirm that this is
>> what you intended then I’ll push it as is.
> Thanks, if you are happy. This was just supposed to be a simple update..

Sorry for the delay!  It just never feels good to me to propagate
inputs.  If ever this can be avoided with a bit of patching I’d like to
try that first.

> I tried adding a check procedure but this didn't work: mafft refused to 
> run, when it runs just fine from the store. I was loath to debug that. 
> Instead, I was wondering if there was a way to test after installation? 
> If these tests could be run in a container that excluded native-inputs 
> (but perhaps some extra test-specific dependencies if required), then I 
> think such a procedure could be generally quite useful. It would catch 
> the errors I made in the original patch, for instance.

You could reorder the phases such that the check phase runs after
installation.  We do this for some Python packages as well.  It’s just a
matter of

   (delete 'check)
   (add-after 'install 'check
     (lambda ...))

Do you want to give this a try or shall I just apply the latest patch
you sent, leaving this for some time later?

Thank you for your patience!

~~ Ricardo

  reply	other threads:[~2015-12-17 22:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10 12:18 Update mafft to 7.245 Ben Woodcroft
2015-11-10 13:06 ` Ricardo Wurmus
2015-11-10 13:12 ` Efraim Flashner
2015-11-10 22:22   ` Ben Woodcroft
2015-12-10 16:16     ` Ricardo Wurmus
2015-12-15 12:05       ` Ben Woodcroft
2015-12-17 12:47         ` Ricardo Wurmus
2015-12-17 20:01           ` Ben Woodcroft
2015-12-17 22:29             ` Ricardo Wurmus [this message]
2015-12-17 23:27               ` Ben Woodcroft
2015-12-21 14:17                 ` Ricardo Wurmus

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=87poy4lndw.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=b.woodcroft@uq.edu.au \
    --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.