all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ben Woodcroft <b.woodcroft@uq.edu.au>
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: Update mafft to 7.245.
Date: Fri, 18 Dec 2015 06:01:59 +1000	[thread overview]
Message-ID: <567314B7.7070605@uq.edu.au> (raw)
In-Reply-To: <idja8p96y2u.fsf@bimsb-sys02.mdc-berlin.net>



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


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


>
>> (although maybe not the result, not sure). How's the attached? I upped
>> version too. OK?
> I think this line may be problematic:
>
>> +               (("([\"`| ])awk" _ prefix)
> Is your intent really to replace “ awk” and “|awk”?
Yes, is that not a good idea?
> In my previous
> patch I tried to more explicit by using alternatives in the group:
>
>> +               (("(\"|`|\| )awk" _ prefix)
> Was there a problem with the version above?  It does not replace “ awk”
> and “|awk” but only “| awk” (in addition to the other two variants).
OK. Seems something went astray though.
> 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..

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.

Thank you.
ben

  reply	other threads:[~2015-12-17 20:02 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 [this message]
2015-12-17 22:29             ` Ricardo Wurmus
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=567314B7.7070605@uq.edu.au \
    --to=b.woodcroft@uq.edu.au \
    --cc=guix-devel@gnu.org \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /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.