X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 00002DC791E for ; Fri, 3 Jul 2015 21:41:14 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id C17FADC74A6 for ; Fri, 3 Jul 2015 21:41:14 +0000 (UTC) Received: by oigx81 with SMTP id x81so85068888oig.1 for ; Fri, 03 Jul 2015 14:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WwB6NyzTLPp5qIfUc2zu4TRYsgL73aIJJ0mNmod/m90=; b=VErxHMhmuHS+JChxtKWoCqkrBszGDQL/SM+3cdVtFWXcYhYQzJik+2pju9JeEhplQ8 eyKiCOadqU2VBE7PB97NC2EeLmN7hh8eisj2FB7TYivNoS26bhk6zblPXWbBh/V1cP2Z qZEIh6tJ4cb86KMxCU1e8nd7VB5C3X8AuU1wiecxshCgRn6hT/kPBSf6AWA95U07uXrE 1fcSTTz66TkKCY+Ua99c1H6zO5vYSzDQ2U+io4r8kqbm7UZzeBEJse97PrIhjbAZ8KuZ jG0b7Gj5/EZX8wIHhlz8i4lgeMEj3O33MjdJ2NiQToAAv2YzZWofaZawm5pzXYGql/YN Fpdg== X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-Received: by 10.60.42.42 with SMTP id k10mr16648438oel.82.1435959674044; Fri, 03 Jul 2015 14:41:14 -0700 (PDT) Received: by 10.76.70.199 with HTTP; Fri, 3 Jul 2015 14:41:13 -0700 (PDT) In-Reply-To: <20150703213148.2060418c@tukaani.org> References: <20150630183840.543112f7@tukaani.org> <20150703213148.2060418c@tukaani.org> Date: Fri, 3 Jul 2015 14:41:13 -0700 Message-ID: Subject: [alpine-devel] Re: xzdiff in xz package is broken on alpine linux From: Michael Fox <415fox@gmail.com> To: Lasse Collin , busybox@busybox.net Cc: alpine-devel , Natanael Copa Content-Type: multipart/alternative; boundary=089e0149d14e488ac00519ff6a49 X-Virus-Scanned: ClamAV using ClamSMTP --089e0149d14e488ac00519ff6a49 Content-Type: text/plain; charset=UTF-8 Do you think it's a bug in busybox? I think they follow this opengroup standard http://pubs.opengroup.org/onlinepubs/009695399/utilities/diff.html It's hard to tell from the description of diff in that document whether and how it should deal with two stdin pipes. I'll CC their mailing list and see what they say. On Fri, Jul 3, 2015 at 11:31 AM, Lasse Collin wrote: > On 2015-06-30 Michael Fox wrote: > > I have to admit the xzdiff script is a little beyond me but the way > > xzdiff fails is you compare two different files and it just returns 0 > > as if they were the same. I think the easiest way to see it is to > > download an alpine linux live CD: > > > > http://alpinelinux.org/downloads/ > > > > To make it run in a VM takes just a few minutes. Here is complete > > steps to make it simple as possible: > > Thanks. The diffs you sent didn't help, so I tested it under Alpine > Linux as you suggested. The problem is BusyBox diff which doesn't work > correctly if both arguments are pipes. Installing GNU diffutils makes > the problem go away. > > Here is a simple test case using bash and other shells that support > the <(foo) syntax: > > bash$ echo foo | diff <(echo bar) - ; echo $? > 1c1 > < bar > --- > > foo > 1 > > Switching to BusyBox diff: > > bash$ echo foo | busybox diff <(echo bar) - ; echo $? > 0 > > For me it would be convenient if you could report the bug to the BusyBox > developers, but I can do it too if you prefer so. Thanks! > > -- > Lasse Collin | IRC: Larhzu @ IRCnet & Freenode > -- - Michael --089e0149d14e488ac00519ff6a49 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Do you think it's a bug in busybox? I think = they follow this opengroup standard

http://pubs.opengroup.org/on= linepubs/009695399/utilities/diff.html

It's hard to te= ll from the description of diff in that document whether and how it should = deal with two stdin pipes.

I'll CC their mailing list and = see what they say.


<= div class=3D"gmail_quote">On Fri, Jul 3, 2015 at 11:31 AM, Lasse Collin <lasse.collin@tukaani.org> wrote:
On 2015-06-30 Michael Fox wrote:
> I have to admit the xzdiff script is a little beyond me but the way > xzdiff fails is you compare two different files and it just returns 0<= br> > as if they were the same. I think the easiest way to see it is to
> download=C2=A0 an alpine linux live CD:
>
> http://alpinelinux.org/downloads/
>
> To make it run in a VM takes just a few minutes. Here is complete
> steps to make it simple as possible:

Thanks. The diffs you sent didn't help, so I tested it under Alp= ine
Linux as you suggested. The problem is BusyBox diff which doesn't work<= br> correctly if both arguments are pipes. Installing GNU diffutils makes
the problem go away.

Here is a simple test case using bash and other shells that support
the <(foo) syntax:

=C2=A0 =C2=A0 bash$ echo foo | diff <(echo bar) - ; echo $?
=C2=A0 =C2=A0 1c1
=C2=A0 =C2=A0 < bar
=C2=A0 =C2=A0 ---
=C2=A0 =C2=A0 > foo
=C2=A0 =C2=A0 1

Switching to BusyBox diff:

=C2=A0 =C2=A0 bash$ echo foo | busybox diff <(echo bar) - ; echo $?
=C2=A0 =C2=A0 0

For me it would be convenient if you could report the bug to the BusyBox developers, but I can do it too if you prefer so. Thanks!

--
Lasse Collin=C2=A0 |=C2=A0 IRC: Larhzu @ IRCnet & Freenode



--

-
Michael
--089e0149d14e488ac00519ff6a49-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---