From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8DmNDMgqSWClcgAA0tVLHw (envelope-from ) for ; Wed, 10 Mar 2021 20:23:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OJJBCMgqSWCdHAAAbx9fmQ (envelope-from ) for ; Wed, 10 Mar 2021 20:23:36 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9B2718999 for ; Wed, 10 Mar 2021 21:23:35 +0100 (CET) Received: from localhost ([::1]:45892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK5Mk-0004xH-Ha for larch@yhetil.org; Wed, 10 Mar 2021 15:23:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK5M2-0004L5-94 for help-guix@gnu.org; Wed, 10 Mar 2021 15:22:50 -0500 Received: from mout01.posteo.de ([185.67.36.65]:54839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK5Ly-0003bH-Vz for help-guix@gnu.org; Wed, 10 Mar 2021 15:22:49 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id A175816005F for ; Wed, 10 Mar 2021 21:22:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1615407764; bh=zGdP6c2YfNvRQrJ8R8Z90xMz1A4s0gbmY+oPmG77h50=; h=Subject:To:Cc:From:Date:From; b=NXRjHMTkbOl6btzfW7VMXbyqtAIUedv4+3Q5oBfa9BqOQ+HP+12kvVWhEHb+i4ENg d3Duc7VT2wfYBThhGSHTvATBRKeljg9zBDPaCUPCiqUBdewpt4dLQTnHqcCCsHpTDL +UrnjeOtJ+0q1oA6iRrvz2/mOW3wAVDx9YowIAcNZ/Pzsk+y0guGkRD8j6xF1/AZjS vzFNtejPRXIn36BU648XJtriGiAVeakuN8aPI1s5Ecdxh8mc8D5fkWT2RF1a+WCvEh N5I21lgACUs4xFGi5P3PWTUiONaXTml94kgPGAazB4BMIeuhBkvOrPaItFrO2daXbB nRKpEAn3hVu8A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dwk5v5mPQz9rxK; Wed, 10 Mar 2021 21:22:43 +0100 (CET) Subject: Re: calculate hashes for a new packages To: Leo Famulari References: <09886bce-2fb5-ca7a-896a-5f34f486bf40@posteo.de> From: Zelphir Kaltstahl Message-ID: Date: Wed, 10 Mar 2021 21:22:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL=1.623 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615407816; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=rCDJMdbzEmjlD5+InxJrIvZygiryXpmTYZVtxNM3lNY=; b=La/P6Ga8YbRbPROXsCu1g66F3BuJOBRMRCy1UJ9lKXJfrOSv4uOq0l7m+SVQB0qvUdNpus PZrxzsEyc5OAGyp6SdE7M7hoQ9lRBE4JXlW1w5TCgLxHhl/+ZdkQoRNNOEARhmV7c/Q9k4 Se+pjkcdU47MXXaf/5uxMTbHqwquTVx2ai94i6EX+PwUHBphyFQD0AesAEtwVfGT8tQNlR kQsM9oEQx9HQVvrTf7PgG15idG/VPTCytkw9rEqSnAblvAj/tqJ/jxln4OFsFC3o93qulP ktlTXDKPW9MY7mtaQhS2iuGt/lKjFBfuxnrlsIdA30BirBV2i3aPbj1r15w+sw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615407816; a=rsa-sha256; cv=none; b=rfZOXirEfen1jowGeIWB5blBXwJ1/pySbRL9IcFZfzEaPzO3ksYYlxu0FmzaF0VMoIIb3j OyfJ/nb9qY1NuQO1Hxg9TM1YURNXRMX5m3SzZmKGjlfjKRjwRFhQ1LGyN7SorDrXYYc9t0 RGgI+SXfUS0IFQJZQrhr28bWr5CkU5eyJEA4d/z7sQVQcSnrWK5ut8dB5avSth8jb9crT5 fca4ogmw5xvvypGuD//MbgPoc9pkD+wGE6KILkxU54ev3JjhOgL2DfMkAw6esMveyqX40w Yekm6cW3LKhFLrg+UsLVE/FZEoms2SCsg5nEo/GMbxbvLcZMglzlcD3HW7LLZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=NXRjHMTk; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=NXRjHMTk; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 9B2718999 X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: HT5reYoVcAS5 Hi Leo! On 3/10/21 8:21 PM, Leo Famulari wrote: > On Wed, Mar 10, 2021 at 08:14:43PM +0100, Zelphir Kaltstahl wrote: >> How does one calculate the hash for a package one wants to add to GNU Guix? >> >> I know 2 ways, giving me different results. One is for the repository folder and >> one is for the tarball: >> >> ~~~~ >> guix hash --exclude-vcs --recursive . >> guix hash PACKAGE-VERSION-tar.gz # a tarball created by guile-hall > Can you clarify your question? > > It seems to me that you already know the answer: You use the method that > is appropriate for your package. It depends on what kind of source code > your packages uses. I have a GNU Guile package, which I created using guile-hall. I know the 2 commands, but maybe there are others? I don't know which one of the 2 results (they differ) from the 2 commands one should write in ones package definition to add to guix/gnu/packages/guile.scm. I can paste any hash there, but which one will be the correct one? Both commands seem appropriate to me. The tarball is after all built from the sources in the directory and I could calculate the hash of the directory, or the one of the tarball. That is what confuses me. Basically I am asking for a general guideline. How is it usually done? How is it done for packages created using guile-hall? I don't want to send in a patch with a wrong hash in the package definition, which only costs time for anyone, who reviews. Regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl