From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:38845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gttj5-0003dm-DV for guix-patches@gnu.org; Wed, 13 Feb 2019 07:33:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gttWE-0005iF-Gk for guix-patches@gnu.org; Wed, 13 Feb 2019 07:20:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gttWE-0005iA-D6 for guix-patches@gnu.org; Wed, 13 Feb 2019 07:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gttWE-0001xV-7F for guix-patches@gnu.org; Wed, 13 Feb 2019 07:20:02 -0500 Subject: [bug#34466] Fwd: Re: [bug#34466] [PATCH] gnu: Add coq-equations. Resent-Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 13 Feb 2019 13:19:32 +0100 From: Julien Lepiller In-Reply-To: References: <7a093050-4495-7650-7b9b-2abf73a2efc7@cs.ru.nl> Message-ID: <3d6474b5553bfe4480dcbfbb558c3b3b@lepiller.eu> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Dan Frumin Cc: 34466@debbugs.gnu.org Le 2019-02-13 12:36, Dan Frumin a écrit : > (sorry, sending this again because I forgot to CC the bugtracker) > > > Hi Julien. > > Thank you for your thorough comments, I really appreciate it! > I hope that the quality of my patches increase in time so please bear > with me for a bit :) > > On 13-02-19 12:04, Julien Lepiller wrote: >> >> We cannot use auto-generated tarballs from github, because we found >> that >> they sometimes get regenerated in an unreproducible way, so it breaks >> the >> checksum test. You can use this instead: >> >> (method git-fetch) >> (uri (git-reference >>        (url "https://githu.com/mattam82/Coq-Equations.git") >>        (commit (string-append "v" version "-8.8")))) >> >> and update the sha256 accordingly. As an added bonus, this means that >> we >> can always fetch from the software heritage in case the repo >> disappears >> one day :) > > I was not aware of that. How can I get the sha256 hash in this case? > Normally I would do `guix download `. you can always try to build the package, which will fail and tell you what the correct hash was. I forgot, the filename should be: (file-name (git-file-name name version)) >> >> Please make sure that these two phases both return #t. > > I thought that `invoke' automatically checks that the return code is > correct? It does, and when the code is not correct, it throws an exception. When it is correct, it returns #, so we need to explicitly return #t. Thank you! I'll try to build the package and take care of the rest before pushing your patch later today.