From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +EdpBsxiyWJS7QAAbAwnHQ (envelope-from ) for ; Sat, 09 Jul 2022 13:13:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OC1JBsxiyWI8uwAA9RJhRA (envelope-from ) for ; Sat, 09 Jul 2022 13:13:16 +0200 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 822D93408F for ; Sat, 9 Jul 2022 13:13:15 +0200 (CEST) Received: from localhost ([::1]:49062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oA8Od-0007Id-Mw for larch@yhetil.org; Sat, 09 Jul 2022 07:13:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oA8LO-0006X2-N9 for help-guix@gnu.org; Sat, 09 Jul 2022 07:09:54 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oA8L4-0002Bj-O0 for help-guix@gnu.org; Sat, 09 Jul 2022 07:09:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A902D240108 for ; Sat, 9 Jul 2022 13:09:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1657364968; bh=Fvgep7etu5vR612w3hRW7tRuehbnBUJ3OA+nFZQp5/w=; h=Date:To:From:Subject:From; b=eTdKvy8sDfMlhlmJdJp6nRKV91G1SOjvQL6vA+IuyV3iVYOG9XUr6yrdILFgwmWu7 9WtFFA7Xh6KBQvXUAHRsnvzmMM4mSKt/eoHHFgsyyuvW3FEos/Jao07IeQGLoHXbMP WJrYXqKrTtDB5OyPfqMKTIPU/ZmyssfyCbKanmBxVh6XVwJr9RQ2LvrWVcQZaT1MQU tSCGd9XJq9gB7z+35xDX5dOUskr7bm5rgmw/BuS8K2KX1z6Iz093iTq0GwojIYjGel GktgU/lqVczMZ0eWIfhxPJ8HZXEQiRIXKkSaydqIreQ9Lj+7NC8VQ9bn0NSHoEnI50 Pj4CLGrfybNcQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Lg6qD19Rfz9rxg for ; Sat, 9 Jul 2022 13:09:27 +0200 (CEST) Message-ID: <54cbdaf2-f1ef-7490-7c2a-05f63edf7d56@posteo.de> Date: Sat, 9 Jul 2022 11:09:27 +0000 MIME-Version: 1.0 Content-Language: en-US To: help-guix From: Zelphir Kaltstahl Subject: Package definition hash calculation Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657365195; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/fgw20XERaOt/3xvAMsW6Os43djw9gtw2pzxTRDjQyY=; b=rALmCabhCvlNZsKdwRsYn2odbaXkdcrQcKMB3EGjdW/s4ORdXwCEavfwHBktc4JCju9og0 +4Ow3fp1HrKtthwskh69pdftL3grpuFuHbBv9VkoG9pugEF11JY+zjCCny1BGRU9RP5L/y NnV2RfP3IqsTSLfim6s6V0qvuf6WmtoBXRju0UByo+ViaXgCDZFrauanlgJF0ehUCfGxrm KOLmjdz+bdU8qGwBCChSnEZHSR9ADL9OKt0g6rHGl3oWN+7kJiRI//EQhUr2Wpy2CoM0g+ l/Jm/BKUo1/lIpUDBF3VUcKu/xlCwlor3sa0W4ktZLZDVA9XrZtfT9IQymCKow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657365195; a=rsa-sha256; cv=none; b=VH/jgozRLu2GYiWFYVdbm4lTJvdsc7yb01i3rtVrdeZUpyPCBVl0+Yqhs9lAtxSJ+IonkR XliM2Af+kAE+hH1lCp6OJs++k4eVNmNPf1OCPn+CpHzkyz+CX3c8lEvhT6xjbKRKuU3vZM WgHHETW4IZYJCsLg4bJfhCGSKKd0sfVCJueHz8OgCgz/fAd+mlfQoeWcBq57KD2ua1xVtR tGzvjyNCZhgttP2pOYmj4ZcwJ61A6FKbLorq+mlZ5knQ7aU93WGl2mozLyieHrArluvv0P J/+1eUGsu+lkpj9Xbr+9rfaHpzACoxo7U5+LHArMZ0icenpzVlbQJ57bSFEjuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=eTdKvy8s; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=eTdKvy8s; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 822D93408F X-Spam-Score: -5.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3TQpP4ClK7lq Hello Guix users! I feel a bit stupid to ask about this topic again, however, to me it is not really clear, what I need to do, when calculating the hash of a package, so that I can write it in the package definition. I have a project (https://notabug.org/ZelphirKaltstahl/guile-fslib), which I have packaged before, but that was already a year ago or so, and I forgot the precise process involving the hashes. I have the following questions: (1) When I edit the `guix.scm` file and change the hash in there, make a tarball release on notabug, and then run `guix download `, I get a new hash. If I edit the guix.scm file again and repeat the process, I get a new hash … endless loop of getting a new hash and changing the file accordingly. My guess is, that this is, because `guix download` does not exclude the `guix.scm` file. I would have to manually make a `tar.gz` and upload that as a release to notabug and then reference that. – Is this correct? (2) I guess I should be using `guix hash --exclude-vcs --serializer=nar --format=??? .` instead, since my package definition makes use of the `git-fetch` method of fetching the package. I had totally forgotten about this, until I searched in old e-mails, reading old replies to previous questions I asked on this mailing list. I think it could be made clearer in the docs, which command to use in which case. However, now I am not sure which `--format=` I should use. I would guess `base32`, because in my package definition it says `(sha256 (base32 "..."))`. Is this correct? Or is the default fine? (3) What is the recommended way to update a package's source code and then "in one go" calculate the hash, update the `guix.scm` and make a proper release, which only has the appropriate files in the tarball? (4) Should a release tarball contain a `guix.scm` package definition? (My guess is not, since the hash in that file changes and that would change the tarball. Maybe I am overlooking things/magic though.) I am feeling like I am stuck in what should be a simple process, because I still have some points that are unclear to me. I try updating my guide to packaging a pure Guile package when I learn new things, so that I can read up next time I want to make a release or a new package, but a few things are still missing or unclear. Thank you for all your help! Best regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl