Mail archive

[alpine-devel] Re: xzdiff in xz package is broken on alpine linux

From: Lasse Collin <>
Date: Fri, 3 Jul 2015 21:31:48 +0300

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:
> 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 $?
    < bar
> foo

Switching to BusyBox diff:

    bash$ echo foo | busybox diff <(echo bar) - ; echo $?

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 _at_ IRCnet & Freenode
Received on Fri Jul 03 2015 - 21:31:48 UTC