From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: downloading a tarball Date: Fri, 24 Mar 2017 13:50:36 +0100 Message-ID: <87o9wqbzz7.fsf@elephly.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crOg3-0004Xv-Ne for help-guix@gnu.org; Fri, 24 Mar 2017 08:50:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crOg0-0000lh-HE for help-guix@gnu.org; Fri, 24 Mar 2017 08:50:47 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21055) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1crOg0-0000kQ-9Z for help-guix@gnu.org; Fri, 24 Mar 2017 08:50:44 -0400 In-reply-to: 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: Catonano Cc: help-guix 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' should > 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' should > 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. 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). -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net