From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iIxBGCUsSWDkDAAA0tVLHw (envelope-from ) for ; Wed, 10 Mar 2021 20:29:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QJ/GEyUsSWCCfAAAB5/wlQ (envelope-from ) for ; Wed, 10 Mar 2021 20:29:25 +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 9D9D58BDB for ; Wed, 10 Mar 2021 21:29:24 +0100 (CET) Received: from localhost ([::1]:55432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lK5SN-0001D9-GG for larch@yhetil.org; Wed, 10 Mar 2021 15:29:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lK5PY-0007Wr-5O for help-guix@gnu.org; Wed, 10 Mar 2021 15:26:28 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:39494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lK5PS-0005Qn-0U for help-guix@gnu.org; Wed, 10 Mar 2021 15:26:25 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 124-20020a1c00820000b029010b871409cfso11872064wma.4 for ; Wed, 10 Mar 2021 12:26:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=6ZfMl1Whd4lmVD1X9d3p9XpMQFsKfKsxVuv7k6brV1c=; b=hUD0l5na5BnFOgetX5M5m/JPhPzt/k1o/GMg7BhExI3eHv5x8MpG5zQalrK+7zfVar ZznWAlXiz6tUa4AFTQQzZGeSQabrwPtCRNsnown/sNXIxz4E0Y9grdg+TDbsgU8ODVtl ZFD4JrSqkltlwIaGVBzoyk1whihqDNn2U/rpeLtEqJQSrixXySFbi7ZsMulN/4sg9xcV BBD2VRl4yGkEoYt9xpJIVZhVWf89ElBCzRq6sOHuR29b8qDrE4Q7mxyIhET3N/OqRFCq reqXdOXASaIjaKr2GPwVq7T25VuDBbv3iELR5285/oIv0pLElw9YmU/kaxAQP9zThM9B rycQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=6ZfMl1Whd4lmVD1X9d3p9XpMQFsKfKsxVuv7k6brV1c=; b=UygGbw1E5U4MuvlBakTqVqakJI1R1Kooqi1uSDqJN+05T+Ck3Yx9XWVSvrXyPDGuRZ nIDL0T7aTDWZYKqPFki/oQHyYD2pMTcYeFf8MYMpRZZO4Wwt7zT1hp32kIdXbxs7bqAw vQpjNE/SwCJVCVs3Y+Z3BIwcjtrbdNwaJme4IOro5TNX5Z2SVlJNLYa+wBRn+Wa9hhRi odhLM2unoZHpEgmtF1yFSVQRbsI1Ul/i08iFK6APDWQAeIeAw6OMb09tng4+h/RyuTGq aTtGEC5Qi+3ElcMH9qNhu9DpYufPNvXPcxuc6Z7OWLp7k0lVrglguiYWls9e3Zvz3EG+ ebGw== X-Gm-Message-State: AOAM533IC7isqA4HcJKPLmkcG+OkIB9sr8ASa6l00FyM3RrJoLjw0fvl nEY+6qGtBxyjMj66PSaU3H5kqirDUBo= X-Google-Smtp-Source: ABdhPJx2iKUBDT3zU0NY2Tnv3nlYb4lWyvP6gzlVZKJr1nYGUdgpLrThO1ihcVqZ7VK+llPBs2edgA== X-Received: by 2002:a1c:7704:: with SMTP id t4mr4874679wmi.159.1615407980345; Wed, 10 Mar 2021 12:26:20 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id r26sm544738wmn.28.2021.03.10.12.26.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 12:26:20 -0800 (PST) From: zimoun To: Leo Famulari , Zelphir Kaltstahl Subject: Re: calculate hashes for a new packages In-Reply-To: References: <09886bce-2fb5-ca7a-896a-5f34f486bf40@posteo.de> Date: Wed, 10 Mar 2021 21:19:36 +0100 Message-ID: <86y2eubw2v.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=1615408164; 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=6ZfMl1Whd4lmVD1X9d3p9XpMQFsKfKsxVuv7k6brV1c=; b=ZUIhIb9NDhzfIXmDKTk7pfCKhybnmgTML8yx+GMQ2fQUnkrx26dZIyAV/otZNrGhHc0GSE M3WevBaUOPER9hBBQAI4YW3zJ/oxmJWBXEXljaYxBE7QSDU+fpbMJFdlw6M4IDtYVyeXiw gREF4hpp6GIDAjqWWKxSggO2ZRh9uVxlSE2BM2c/I3HUcSWm9KiHIctZZIZaYp5BDVNIKu i/re1OnseOi+lPpgrskNnl3XVzpnnAnRIlJkazWBenz60SqCdwPKxco1KeTfSnQg//8WPQ 6vk6IfvdtJHFPvYOZPIjETT8aFBwpmcgCkErbgfcF0VCPCpE6gIUPkfVwRPVOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615408164; a=rsa-sha256; cv=none; b=UGukon64aZNV+oR+PtPlfcq/A82ePWxoRqS83codn0oW3AT9PtaI2BKMysmUkMw/TzoRSZ cuxt4CLgycdAGx3e2sVIw9SoS+D4OGV28PdQPiNKvAR3mfi3Nq+qYtU2Xr4SCjLuYOxfOA sPRjE9cmfX6sR/GxAI8TkL61dU1h/uumETSBdwSrLC3oM7sLhXIItYq23LSuUAsgkTCqAp suYMMdmbbwfFHtpa39iPWeZnnl3LZcQOr8+a9ndUevxvp035RLOedsp/tOOMCrOXoOyf63 kLRr7ALFeBuRoFgy6astkM5UV1nsB8IVGsIEssANeK5YjRJWhlK0aSMhdPvF9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=hUD0l5na; dmarc=pass (policy=none) header.from=gmail.com; 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=gmail.com header.s=20161025 header.b=hUD0l5na; dmarc=pass (policy=none) header.from=gmail.com; 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: 9D9D58BDB X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: kGUUU5fXwhkH 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