From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OPvlCZYzSWDzSAAA0tVLHw (envelope-from ) for ; Wed, 10 Mar 2021 21:01:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cMaqBZYzSWCJRQAA1q6Kng (envelope-from ) for ; Wed, 10 Mar 2021 21:01:10 +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 68813973B for ; Wed, 10 Mar 2021 22:01:09 +0100 (CET) Received: from localhost ([::1]:58978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK5x6-0006gE-DO for larch@yhetil.org; Wed, 10 Mar 2021 16:01:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK5wm-0006g6-51 for help-guix@gnu.org; Wed, 10 Mar 2021 16:00:48 -0500 Received: from mout02.posteo.de ([185.67.36.66]:45801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK5wj-0006el-Fb for help-guix@gnu.org; Wed, 10 Mar 2021 16:00:47 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id DA7092400FF for ; Wed, 10 Mar 2021 22:00:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1615410042; bh=6EvcptBd7YLW+RO6m4s373SUcRY3G5HUZJfQhPKWnaw=; h=Subject:To:Cc:From:Date:From; b=GajKybC/Us4ErnI73Sw3QGgsWxwS2Q1GRXIw3qepheSBNlgIAyrEpA05nSni4Siyv CtIYhV8/jY120AjBdtQbkHao7oiNtAdJMXwTZAMeanRMHcCxpwOVvoNw26X01isrwf nx8J9GImgJNkdJNMcylBW88z04Un9G3eUInHL2r9gHIP7aI4WeYQCkgpMe0wbNhHMU lz2KfVTKg4NqER9fb5EuxBVaYTu3wDnYl6CRLZHXb/olQAYfYKmC5HkPH6k3L/wEb1 pOJsy0iredWuV+9/fFYsT+qgUhW4Qj0EHSW+RPkHFdmw0sWNzqZxqOaTBOujcuainB VO5IR3BVA18SA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Dwkxk1VcZz9rxh; Wed, 10 Mar 2021 22:00:41 +0100 (CET) Subject: Re: calculate hashes for a new packages To: zimoun , Leo Famulari References: <09886bce-2fb5-ca7a-896a-5f34f486bf40@posteo.de> <86y2eubw2v.fsf@gmail.com> From: Zelphir Kaltstahl Message-ID: Date: Wed, 10 Mar 2021 22:00:41 +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: <86y2eubw2v.fsf@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.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_H3=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=1615410069; 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=KP4nNUDpoSMQW+ig+BcJ72vGB3qShj9qXrqACfNX/UI=; b=twtkbd7nOfVL+BEtMPsNBqmK66Bd7ntEeEkC7y1tDFq5j7GDSOGdkkuxvs2Reu4oYjHEJb piZMVIsRm7Qx1OwbLQLoXETbK38qqaW/7ljkM4+Lq72A8ZIqesgovcT4nMOPWeQL5UTL3m Y894e969uh82obEycRKK1W/VvhvHqFlrTnr6nz7o1VFLG0yZwVfbUwlRL+EA01IVUeAfDK CczmwdMKTyVAzogVgX9RJeimkNS1YYUewemXv7SWlTmS/IRSog90vk41hVYMAN1kWgTH9f T6ObQteT5+Hs6mP4KaQaxqfb/lKeQ37lS34M6j2YuroCGSGNzbKZehrhVQtJTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615410069; a=rsa-sha256; cv=none; b=Ve2343j8MWJ9RENh3oolefPkvf8MQ7FxTJSNA7wePnX4idgtUiSIr1Rz05H7Z0O24fKb98 E9VTEUTB9A4A6SL7UQFd3keYKj496jucNNi1hu58B5cSDt6W3vpbY6kRsZq9qZYiV2nsVd nLihHGVaDs0o1l1GLB/5V8HmpGSzbrYu+iHX27GbxEXr5unYfRD4oWJaZc9aQSnuSY29jI Z8WoCbtb16gy54cMHzZRYdazNH9wA8HDj8NidqX6aNOYOXR3LhcEL37P2jo7+nhyu+xneZ 6x+GdPR8aPY+yHqvjz527GMS558v7DAdgJ/B5qNzmsQPEksP4qQ9fcp4jvr1AQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b="GajKybC/"; 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="GajKybC/"; 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: 68813973B X-Spam-Score: -3.09 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2aV4Zz3kuyGR Hello Zimoun! On 3/10/21 9:19 PM, zimoun wrote: > On Wed, 10 Mar 2021 at 14:21, 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. > Concretely, url-fetch > > guix hash PACKAGE-VERSION-tar.gz > > or git-fetch (or other vcs): > > guix hash . > > > Maybe the question could be clarified. :-) > > > Cheers, > simon Ah, I think I get it now: If I for example created a tag for the version of my package and creation of the tag caused the VCS host to create a tarball as release, I could go the url-fetch way and then I would use `guix hash` on the tarball, which is the release tarball, but if there is no release tarball addressable using a URL, I would use the git-fetch way, which means GNU Guix would have to verify the downloaded repository, so I calculate the hash using the other way. So it all depends on what I specify in my package description, about how GNU Guix is to retrieve my package. Regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl