From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aL1fDLweSWBkEQAA0tVLHw (envelope-from ) for ; Wed, 10 Mar 2021 19:32:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gOYxCLweSWDUVAAAB5/wlQ (envelope-from ) for ; Wed, 10 Mar 2021 19:32:12 +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 7910C163DD for ; Wed, 10 Mar 2021 20:32:11 +0100 (CET) Received: from localhost ([::1]:56322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK4Yy-0003e7-N5 for larch@yhetil.org; Wed, 10 Mar 2021 14:32:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK4OU-0004ih-JN for help-guix@gnu.org; Wed, 10 Mar 2021 14:21:18 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:41117) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK4OL-0001lo-NX for help-guix@gnu.org; Wed, 10 Mar 2021 14:21:18 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 28EFD5C0094; Wed, 10 Mar 2021 14:21:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 10 Mar 2021 14:21:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=+VkMaiFSdvz95JqN+Q86+XDF wsJmuTKhyYOdRCNKpuI=; b=MxyMQ4rKdAqI8RyeWtoefwB6EB/3m3AKv5UH6Z2b gVIrSn+qgt0dkLUUDBJPAyo+fSyEppekL3Qe1NIGR6AgmxXJK2/Aqb0jcELnt/b5 qsjMqScu1SkBKJA2ompuWrSqyHE8MGSGxvZLQBA36bypjVYcVAU7iYn7tZI7LLYj 6PE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=+VkMai FSdvz95JqN+Q86+XDFwsJmuTKhyYOdRCNKpuI=; b=JY+jW9gYyh1xaGxBsbANIp OPH0Fpz5DN14fuUF2XwLLY05sYnzK8TKsPmBhJxdzGaxMPl12tmdUPU9QLkUZ6FV Pe62DIdx9AGfBjr42iUCeIJPi5zAnNhyFFXu98r4ravFBfRsX79M5R49g/ntq+rA l/VgP8zGU4cbzV1FPO7JgAzMo7O6II3h6gwe4zyMxqnoiw6nHy0Jr879sNHAmTDe yJW1RueBKq7X5e493oAxLjQIwQTCqLd7Bx+mpBlO10+KYc2paNrp6xEFDWMHmyhc amwJ/ZxppfB8lcMZIRPSFFVUgv8K05ST0vtrNbCR4CiMGM03wqwQlW88mIKEtNnw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddukedguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepnfgvohcu hfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecuggftrfgrth htvghrnhepueekkedtffdvtddugeejgedtvefhueefiedvjeeitdeigedtveejvdejheff vefgnecukfhppedutddtrdduuddrudeiledruddukeenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: from localhost (pool-100-11-169-118.phlapa.fios.verizon.net [100.11.169.118]) by mail.messagingengine.com (Postfix) with ESMTPA id 93B99240054; Wed, 10 Mar 2021 14:21:07 -0500 (EST) Date: Wed, 10 Mar 2021 14:21:05 -0500 From: Leo Famulari To: Zelphir Kaltstahl Subject: Re: calculate hashes for a new packages Message-ID: References: <09886bce-2fb5-ca7a-896a-5f34f486bf40@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <09886bce-2fb5-ca7a-896a-5f34f486bf40@posteo.de> Received-SPF: pass client-ip=66.111.4.27; envelope-from=leo@famulari.name; helo=out3-smtp.messagingengine.com 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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=1615404731; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+VkMaiFSdvz95JqN+Q86+XDFwsJmuTKhyYOdRCNKpuI=; b=gxJZDqIRYDwzN5OJTs+9pIX5cnmwbBmk2pdWX+bR/xr6lLxx9klWVotT0fTiNMVWMxgQll wYOQTHHXc9qmHC9kxH/AHQwMOP6xaF+N43YkDlg0+1Xsus6mga4ngsvpR2wg7ReCLZHt8x mVjf1pwQtfiBikzQPdzlXvJSLz+WkMer6tprVTdTSewVqsv4lnns9KU7kv7DdWgVC7YTmL s5yPGjE2BSoRxiR4B/W9hv15/vqju0zBgTgxGCcPbR3TdkQMwo1D+uLK3cELlr1xk9rWAl kr8WXEYQrVXZe0Z9TlgvJ1c2KTsKVqpbhdVTDdAEDoghXrfuI7cw4VOTu+m1Bg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615404731; a=rsa-sha256; cv=none; b=ScV4sGx2VPAkXzhTG6lS6+OgruTYWdP4Qy6M1Cd8pjhgcKPhxDQexsb/J9VVQndSuDrHNF 82qS+I17w4l98tTCfR8LWiSJr9gf9yPKYebi/cmZHq+aAIiHAxQmeJ8zo6L3UxQZAt3eOf yyTwiwOtaIAy0eU/cS7ubhqoaeHyhJtOgpMC7NJkCXFo+ZrxlI5UElQw1CFMvV9iZVXZ9h GN/4MXpEDBVuob/XCIpwZ3RuC1+shGQ0XqbsHiPaT+hHBC2U6mUW7UA3qoU1GvHIBbWcBq rKEiTxEG6pgyKkpH5xZBrEakOBaysrunZ6fji8cclQFjb/+0kVzBvZ7A5mcKPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b=MxyMQ4rK; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=JY+jW9gY; 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: -2.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b=MxyMQ4rK; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=JY+jW9gY; dmarc=none; 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: 7910C163DD X-Spam-Score: -2.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: OPMpUPeul49y 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.