From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: Re: downloading a tarball Date: Fri, 24 Mar 2017 22:26:53 +1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crOK1-0007ae-0B for help-guix@gnu.org; Fri, 24 Mar 2017 08:28:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crOJ8-0000UO-I1 for help-guix@gnu.org; Fri, 24 Mar 2017 08:28:00 -0400 Received: from mailhub1.soe.uq.edu.au ([130.102.132.208]:56832 helo=newmailhub.uq.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crOJ7-0000Tk-TD for help-guix@gnu.org; Fri, 24 Mar 2017 08:27:06 -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 , help-guix Hi, On 24/03/17 22:06, Catonano wrote: > 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' I think the mistake is that you are not taking the hash of the downloaded file, that is on the previous line. For instance from this example output path `/gnu/store/7mfyynbzzi15265z92bdb00j7lxfa70y-libxls-1.4.0.zip' should have sha256 hash `0py8hsspvwjlckg2xi7jcpj0frrp2qbmsy9x55fx0knnwbhdg5d2', instead has `1g8ds7wbhsa4hdcn77xc2c0l3vvz5bx2hx9ng9c9n7aii92ymfnk' @ build-failed /gnu/store/cv5nmjcwja91151zmxh9g956if0bl2xl-libxls-1.4.0.zip.drv - 1 output path `/gnu/store/7mfyynbzzi15265z92bdb00j7lxfa70y-libxls-1.4.0.zip' should have sha256 hash `0py8hsspvwjlckg2xi7jcpj0frrp2qbmsy9x55fx0knnwbhdg5d2', instead has `1g8ds7wbhsa4hdcn77xc2c0l3vvz5bx2hx9ng9c9n7aii92ymfnk' The correct hash is 0py8hsspvwjlckg2xi7jcpj0frrp2qbmsy9x55fx0knnwbhdg5d2. HTH - speaking from experience making the same mistake here.. ben