From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catonano Subject: Re: downloading a tarball Date: Fri, 24 Mar 2017 14:16:46 +0100 Message-ID: References: <87o9wqbzz7.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045f4d0849af1c054b79cea3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crP5J-0003KA-DS for help-guix@gnu.org; Fri, 24 Mar 2017 09:16:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crP5F-000356-1A for help-guix@gnu.org; Fri, 24 Mar 2017 09:16:53 -0400 Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:33644) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1crP5E-00033r-NT for help-guix@gnu.org; Fri, 24 Mar 2017 09:16:48 -0400 Received: by mail-wr0-x22f.google.com with SMTP id y90so1563100wrb.0 for ; Fri, 24 Mar 2017 06:16:48 -0700 (PDT) In-Reply-To: <87o9wqbzz7.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: help-guix --f403045f4d0849af1c054b79cea3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2017-03-24 13:50 GMT+01:00 Ricardo Wurmus : > > Catonano writes: > > > This > > https://sourceforge.net/projects/libxls/files/ > > > > I attempted to build the package several times but every time the hash > > results to be wrong. > > > > I correct it and then it's wrong again > > > > For example, I get > > > > @ build-failed > > /gnu/store/dcaqrf007jxyi0jzlsakr3j7faxm122f-libxsl-1.4.0.tar.gz.drv - 1 > > output path > > `/gnu/store/v6i85v3myb09nbsacq9ghx6yd0spcr67-libxsl-1.4.0.tar.gz' shoul= d > > have sha256 hash `1574bcyagix5fkbs0yi2npi59y1zck23y2aia52vdv6ra3i5raid'= , > > instead has `1zmsb0w6qh4vx7n7r3yijc5p4fwljyk5apzi1hwmrr5rkawmqmks' > > > > so I change it to > > 1zmsb0w6qh4vx7n7r3yijc5p4fwljyk5apzi1hwmrr5rkawmqmks > > > > and then I get > > > > @ build-failed > > /gnu/store/vsl7yz0nyklv0705jb5py015jkz3r6dg-libxsl-1.4.0.tar.gz.drv - 1 > > output path > > `/gnu/store/wjyja461cr7kvvryp6v21q3iagf5rd8m-libxsl-1.4.0.tar.gz' shoul= d > > have sha256 hash `1zmsb0w6qh4vx7n7r3yijc5p4fwljyk5apzi1hwmrr5rkawmqmks'= , > > instead has `0fyd8h4i46qw3xii3pfa12k9k9ndmj59b552pmkpwcq7psyrbf32' > > > > So now it's not 1zmsb0w6qh4vx7n7r3yijc5p4fwljyk5apzi1hwmrr5rkawmqmks > > anymore. It's > > 0fyd8h4i46qw3xii3pfa12k9k9ndmj59b552pmkpwcq7psyrbf32 > > > > I'm doing this with a master checkout. > > > > What am I missing ? > > Have you confirmed that the file you get is actually a tarball? > Sometimes you might get an HTML page and Guix reports the hash for that. > You nailed it I catted /gnu/store/w1wf5d44awk0almrdrbhs8442cnzmw2b-libxsl-1.4.0.zip which is the downloaded tarball and it contains html ! How can this be ? I'm using (uri (string-append "mirror://sourceforge/libxsl/libxsl-" version ".zip")) The url used by icecat is https://netassist.dl.sourceforge.net/project/libxls/libxls-1.4.0.zip and the result is a sound tarball How does it happen that the mirror based url leads to an html page ? > > In general it is better to download the tarball manually and then use > =E2=80=9Cguix hash=E2=80=9D on the result after confirming that the tarba= ll is in fact > okay (e.g. by validating signatures or inspecting it). > I did ! This was my first step, I inspected it ! And I hashed it But then this whirl of hashes began Thanks --f403045f4d0849af1c054b79cea3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2017-03-24 13:50 GMT+01:00 Ricardo Wurmus <rekado@elephly.net>= :

Catonano <catonano@gmail.com&g= t; writes:

> This
> https://sourceforge.net/projects/libxls/file= s/
>
> I attempted to build the package several times but every time the hash=
> results to be wrong.
>
> I correct it and then it's wrong again
>
> For example, I get
>
> @ build-failed
> /gnu/store/dcaqrf007jxyi0jzlsakr3j7faxm122f-libxsl-1.4.0.tar= .gz.drv - 1
> output path
> `/gnu/store/v6i85v3myb09nbsacq9ghx6yd0spcr67-libxsl-1.4.0.ta= r.gz' should
> have sha256 hash `1574bcyagix5fkbs0yi2npi59y1zck23y2aia52vdv= 6ra3i5raid',
> instead has `1zmsb0w6qh4vx7n7r3yijc5p4fwljyk5apzi1hwmrr5rkaw= mqmks'
>
> so I change it to
> 1zmsb0w6qh4vx7n7r3yijc5p4fwljyk5apzi1hwmrr5rkawmqmks
>
> and then I get
>
> @ build-failed
> /gnu/store/vsl7yz0nyklv0705jb5py015jkz3r6dg-libxsl-1.4.0.tar= .gz.drv - 1
> output path
> `/gnu/store/wjyja461cr7kvvryp6v21q3iagf5rd8m-libxsl-1.4.0.ta= r.gz' should
> have sha256 hash `1zmsb0w6qh4vx7n7r3yijc5p4fwljyk5apzi1hwmrr= 5rkawmqmks',
> instead has `0fyd8h4i46qw3xii3pfa12k9k9ndmj59b552pmkpwcq7psy= rbf32'
>
> So now it's not 1zmsb0w6qh4vx7n7r3yijc5p4fwljyk5apzi1hwmrr5rk= awmqmks
> anymore. It's
> 0fyd8h4i46qw3xii3pfa12k9k9ndmj59b552pmkpwcq7psyrbf32
>
> I'm doing this with a master checkout.
>
> What am I missing ?

Have you confirmed that the file you get is actually a tarball?=
Sometimes you might get an HTML page and Guix reports the hash for that.

You nailed it

I catted

/gnu/store/w1wf5d44awk0almrdrbhs8442cnzmw2b-libxsl= -1.4.0.zip

which is the downloaded tarball and it contains html !

How can this be ? I&= #39;m using

(uri (string-append "mirror://sourceforge/libxsl/li= bxsl-"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 version ".zip&q= uot;))

The url used by icecat is
https://netassist.dl.sourc= eforge.net/project/libxls/libxls-1.4.0.zip

and the re= sult is a sound tarball

How d= oes it happen that the mirror based url leads to an html page ?
=C2=A0

In general it is better to download the tarball manually and then use
=E2=80=9Cguix hash=E2=80=9D on the result after confirming that the tarball= is in fact
okay (e.g. by validating signatures or inspecting it).

I did ! This was my first step, I inspected it ! And I hash= ed it

But then this whirl of hashes began

<= div>Thanks
--f403045f4d0849af1c054b79cea3--