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 39019DC094B for ; Fri, 3 Jul 2015 18:33:08 +0000 (UTC) Received: from mailscanner02.zoner.fi (mailscanner02.zoner.fi [84.34.166.11]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id D9079DC01DF for ; Fri, 3 Jul 2015 18:33:07 +0000 (UTC) Date: Fri, 3 Jul 2015 21:31:48 +0300 From: Lasse Collin To: Michael Fox <415fox@gmail.com> Cc: alpine-devel , ncopa@alpinelinux.org Subject: [alpine-devel] Re: xzdiff in xz package is broken on alpine linux Message-ID: <20150703213148.2060418c@tukaani.org> In-Reply-To: References: <20150630183840.543112f7@tukaani.org> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus Received-SPF: none X-Virus-Scanned: ClamAV using ClamSMTP 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 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---