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 01990DC0B7D for ; Tue, 30 Jun 2015 16:20:11 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id DD5D6DC03D5 for ; Tue, 30 Jun 2015 16:20:10 +0000 (UTC) Received: by oiyy130 with SMTP id y130so11342798oiy.0 for ; Tue, 30 Jun 2015 09:20:10 -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=rm6HanpwCl6NfkW7Z9SDanAP8RbNpYTEv/YUSwpyqvw=; b=z5c4sm2j6wkWWnjYt4CJLiCzu8vLemUXceWnpfFJzWWbPUj9wgbNvX+Pz1x3ziPnp/ +wh9SDe1dVrZfAXq+QWGRA5lK+yEA3yhaQLXK3mCxy4qT7tAO3Z8CCEIvmna5xeinQvW EWJBUvIq2D8wY0Fvp6/8jVuoc6JGqB4VR3BQVEg3LCwklNJJnEUP+M6yg5dprMZORizg D1draQLW0mBVsqXGnqFlM4wdQAMsY/WnA1bcKPjv+l7ODYp03CG0CUCmon5UjJNK1nGO 2vJ8Oq58A8tIPVtu4/QhoAuj6v5di0mYrNvqZL84X/RsSOeMwOPUW1F3iK33Eij4ENhf iQoQ== 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.182.252.99 with SMTP id zr3mr20179929obc.44.1435681210022; Tue, 30 Jun 2015 09:20:10 -0700 (PDT) Received: by 10.76.70.199 with HTTP; Tue, 30 Jun 2015 09:20:09 -0700 (PDT) In-Reply-To: <20150630183840.543112f7@tukaani.org> References: <20150630183840.543112f7@tukaani.org> Date: Tue, 30 Jun 2015 09:20:09 -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 Cc: alpine-devel , ncopa@alpinelinux.org Content-Type: multipart/alternative; boundary=001a1134926688c1130519be9441 X-Virus-Scanned: ClamAV using ClamSMTP --001a1134926688c1130519be9441 Content-Type: text/plain; charset=UTF-8 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: In virtualbox create a new VM, Type: Linux, Version: Linux 2.6 (64 bit); Memory 4096; Do not add a virtual hard drive; Start, select the alpine iso; Login: root setup-interfaces (enter, enter, enter) ifup eth0 setup-dns (enter, enter) setup-apkrepos (enter) apk add alpine-sdk wget http://tukaani.org/xz/xz-5.2.1.tar.gz tar xf xz-5.2.1.tar.gz cd xz-5.2.1 ./configure make && make check On Tue, Jun 30, 2015 at 8:38 AM, Lasse Collin wrote: > On 2015-06-29 Michael Fox wrote: > > > I found this by running make check. It's probably due to xzdiff > > > being a shell script with some hair regexs and musl having some > > > regex incompatibilities in the name of standards compliance. > > Thanks. It wouldn't be a surprise if xzdiff (or xzgrep) has a bug. A > little more information would be useful to find out what exactly is > causing a problem. :-) I already checked for \+ or + in regexes and > there are none in xzdiff or xzgrep. > > -- > Lasse Collin | IRC: Larhzu @ IRCnet & Freenode > -- - Michael --001a1134926688c1130519be9441 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have to admit the xzdiff script is a= little beyond me but the way xzdiff fails is you compare two different fil= es and it just returns 0 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:

In virtualbox create a n= ew VM, Type: Linux, Version: Linux 2.6 (64 bit); Memory 4096; Do not add a = virtual hard drive; Start, select the alpine iso;

Login: root<= br>
setup-interfaces (enter, enter, enter)
ifup eth= 0
setup-dns (enter, enter)
setup-apkrepos (ente= r)
apk add alpine-sdk
tar xf xz-5.2.1.tar.gz
cd xz-5.2.1
.= /configure
make && make check


On Tue, Jun 30, 2015 = at 8:38 AM, Lasse Collin <lasse.collin@tukaani.org> w= rote:
On 2015-06-29 Mich= ael Fox wrote:
> > I found this by running make check. It's probably due to xzdi= ff
> > being a shell script with some hair regexs and musl having some > > regex incompatibilities in the name of standards compliance.

Thanks. It wouldn't be a surprise if xzdiff (or xzgrep) has a bu= g. A
little more information would be useful to find out what exactly is
causing a problem. :-) I already checked for \+ or + in regexes and
there are none in xzdiff or xzgrep.

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



--

-
Michael
--001a1134926688c1130519be9441-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---